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

Add an exception so a linebreak should happen before the pipeline operator #121

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

laurentdesmet
Copy link
Contributor

Babel 7 has support for the proposed pipeline operator. See

Right now, standard requires this linebreak to occur at the end of the line, which is an uncommon place for a pipeline operator compared to other languages implementing them (the previous link to the TC39 proposal links out to various examples of other languages), where it is very common to see this operator occurring at the start of a new line.

This PR adds an exception for the pipeline operator, next to the ternary operator exception already being part of standard.

Copy link
Member

@LinusU LinusU left a comment

Choose a reason for hiding this comment

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

Sounds good to me 👍

@laurentdesmet
Copy link
Contributor Author

laurentdesmet commented Oct 16, 2018

Any idea if/when this will be merged and published?

@feross
Copy link
Member

feross commented Aug 12, 2019

@laurentdesmet Thank you for the pull request. Sorry for the delay. Just ran the test suite. No packages fail with this change. This will be released in standard v14.

@feross feross merged commit 88b041a into standard:master Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants