-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Stop converting empty JSX elements to self-closing elements #6127
Conversation
Co-Authored-By: Simon Lydell <[email protected]>
This PR is said to be merged to |
@duailibe 😮 I don't understand either! I should have uploaded screenshots, it wasn't there when I looked. My brain might have been in some parallel universe or something... I'm very surprised that I missed it somehow. 🤔Maybe I used search that is supposed to find in latest master, maybe its index was not at the latest master, but I also checked the CHANGELOG.md and have not found any mention of this quite significant change in JSX handling, and it's not in CHANGELOG.unreleased.md either. Which version was it released in? |
Found it, according to https://prettier.io/blog/2019/06/06/1.18.0.html#stop-converting-empty-jsx-elements-to-self-closing-elements-6127-by-duailibe it was released in The
|
@sompylasar Changelog for minor releases are blog posts |
Holly Molly!!! Why??? How turn on auto-close tag? |
@Alexzanderk You can use the react/self-closing-comp ESLint rule to achieve that. It has autofix! |
Closes #5442
docs/
directory)CHANGELOG.unreleased.md
file following the template.✨Try the playground for this PR✨