-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Autofix for jsx-closing-bracket-location. #511
Autofix for jsx-closing-bracket-location. #511
Conversation
'var x = function() {', | ||
' return <App', | ||
' foo', | ||
'/>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be aligned with the return
keyword in this case.
Thanks for this! I think there is a small issue in a test case though. |
@yannickcr - Thank you for taking a look. I've fixed the test case and resolved this by walking up nodes until it finds one that it's looking for. Commit is here: 0f9ff7f Please let me know if there's a better way of doing this, or if there's anything else you'd like to see here. Thanks! |
Great! Can you squash your commits? Then I think we'll be good to go :) |
0f9ff7f
to
deb8e4e
Compare
This is now squashed, thanks! |
Merged. Thanks! |
@yannickcr - I'm fairly new to eslint and the inner workings of this so this could be wrong, or there could be better ways of doing things. Let me know what you think, thanks!