-
Notifications
You must be signed in to change notification settings - Fork 456
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
Allow single empty line between JSX expressions #7246
Conversation
Ohhhhhhhhh, nice one! |
@shulhi Very nice, thanks a lot! I would like to release alpha.8 soon and include this if possible. Could you fix the tests and add a CHANGELOG entry? |
There's a bit of an edge case that I'm currently investigating. |
1ec6560
to
90cf7d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
@shulhi I just noticed the following "side effect" that was not clear to me before: This does not only allow empty lines between JSX expressions, but there is a case where it adds an empty line: When the JSX expression has a proceeding comment. For example, (
<>
<A />
// Comment
<B />
</>
) gets reformatted to (
<>
<A />
// Comment
<B />
</>
) Maybe this is a good thing though? |
Fix #7204