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 tag to be aligned with the opening tag (react/jsx-closing-tag-location) #1358
Comments
feross
added
enhancement
accepted
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.
|
I know this is not controversial so I am going to ship it in |
feross
closed this
in
71134bf
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
This rule checks all JSX multiline elements with children (non-self-closing) and verifies the location of the closing tag. The expectation is that the closing tag is aligned with the opening tag on its own line.
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
The following patterns are considered warnings:
The following are not considered warnings: