Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove space after pipe name #14961

Merged
merged 4 commits into from Jul 2, 2023
Merged

Remove space after pipe name #14961

merged 4 commits into from Jul 2, 2023

Conversation

waterplea
Copy link
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
: {

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
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
Member

@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
29 checks passed
@JounQin
Copy link
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 <sosuke.suzuki@dr-ubie.com>
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