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

jsx-closing-bracket-location props-aligned/after-props documentation wrong #612

Closed
anthonator opened this issue May 23, 2016 · 1 comment

Comments

@anthonator
Copy link

Not sure if this is a bug or documentation issue. Either way something needs to be switched.

Here's the rule I'm using:

"react/jsx-closing-bracket-location": [2, "after-props"]

to make this valid:

<Hello 
  firstName="John"
  lastName="Smith" />;

Documentation states the opposite.

// 'jsx-closing-bracket-location': [1, 'after-props']
<Hello 
  firstName="John"
  lastName="Smith"
  />;
// 'jsx-closing-bracket-location': [1, 'props-aligned']
<Hello 
  firstName="John"
  lastName="Smith" />;
@ljharb
Copy link
Member

ljharb commented Feb 2, 2022

The docs were fixed in #1005.

@ljharb ljharb closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants