Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upRequire JSX closing bracket to be aligned with the opening tag (react/jsx-closing-bracket-location) #1361
Comments
feross
added
accepted
enhancement
labels
Aug 14, 2019
feross
added this to the standard 14 milestone
Aug 14, 2019
This comment has been minimized.
This comment has been minimized.
|
This codifies my personal style preference. I prefer the parallelism and how the alignment makes it really clear where the tag ends. Using this style already on bitmidi.com and webtorrent-deskop. Shipping in |
feross
closed this
in
f8551e9
Aug 14, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
feross commentedAug 14, 2019
•
edited
This rule checks all JSX multiline elements and verifies the location of the closing bracket. By default this one must be aligned with the opening tag.
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md