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

Require JSX closing tag to be aligned with the opening tag (react/jsx-closing-tag-location) #1358

Closed
feross opened this issue Aug 14, 2019 · 1 comment

Comments

@feross
Copy link
Member

commented Aug 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:

<Hello>
  marklar
  </Hello>
<Hello>
  marklar</Hello>

The following are not considered warnings:

<Hello>
  marklar
</Hello>
<Hello>marklar</Hello>

@feross feross added this to the standard 14 milestone Aug 14, 2019

@feross

This comment has been minimized.

Copy link
Member Author

commented Aug 14, 2019

I know this is not controversial so I am going to ship it in standard 14. No ecosystem repos fail.

@feross 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
1 participant
You can’t perform that action at this time.