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

Autofix for jsx-closing-bracket-location. #511

Merged
merged 1 commit into from
Mar 28, 2016

Conversation

KevinGrandon
Copy link
Contributor

@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!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 96.966% when pulling e189d19 on KevinGrandon:closing_bracket_autofix into e3c27f9 on yannickcr:master.

'var x = function() {',
' return <App',
' foo',
'/>',
Copy link
Member

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.

@yannickcr
Copy link
Member

Thanks for this! I think there is a small issue in a test case though.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.945% when pulling 0f9ff7f on KevinGrandon:closing_bracket_autofix into 57a59cd on yannickcr:master.

@KevinGrandon
Copy link
Contributor Author

@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!

@yannickcr
Copy link
Member

Great! Can you squash your commits? Then I think we'll be good to go :)

@KevinGrandon
Copy link
Contributor Author

This is now squashed, thanks!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.945% when pulling deb8e4e on KevinGrandon:closing_bracket_autofix into 57a59cd on yannickcr:master.

@yannickcr yannickcr merged commit 85511ad into jsx-eslint:master Mar 28, 2016
@yannickcr
Copy link
Member

Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants