Skip to content

Remove space after pipe name#14961

Merged
sosukesuzuki merged 4 commits intoprettier:mainfrom
waterplea:fix-13887
Jul 2, 2023
Merged

Remove space after pipe name#14961
sosukesuzuki merged 4 commits intoprettier:mainfrom
waterplea:fix-13887

Conversation

@waterplea
Copy link
Copy Markdown
Contributor

Description

As per discussion in the linked issue, the most desired format was to keep spaces around semicolon separating pipe arguments, but remove space after pipe name.

Closes #13887

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

Comment on lines 105 to 106
| pipeA
: {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not this for consistency?

Suggested change
| pipeA
: {
| pipeA:
{

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just rolled back how prettier treated the first semicolon. I guess this is how it used to work.

Copy link
Copy Markdown
Contributor

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waterplea Thank you for this PR. I've updated the changelog. I'm not familiar with Angular and its community, so I trust you.

@sosukesuzuki sosukesuzuki merged commit fcb6694 into prettier:main Jul 2, 2023
@JounQin
Copy link
Copy Markdown
Member

JounQin commented Jul 5, 2023

@sosukesuzuki Can this be ported into v2?

medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 15, 2024
* Remove space after pipe name

* Add changelog

* Update changelog

* Update changelog

---------

Co-authored-by: Sosuke Suzuki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revert adding spaces in Angular Pipes

5 participants