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

Docs: How to automatically sort-comp compliance #381

Merged
merged 1 commit into from
Jan 4, 2016

Conversation

turadg
Copy link
Contributor

@turadg turadg commented Jan 4, 2016

There's now a jstransform codemod to do this automatically,
https://github.com/reactjs/react-codemod/blob/master/transforms/sort-comp.js

Added a note about it based on the pattern in http://eslint.org/docs/rules/no-trailing-spaces

@yannickcr
Copy link
Member

Wow! Great codemod!

Ideally it should be integrated to the rule, using the fixable flag from ESLint (I should really get to work on #245).

But for now referencing it in the documentation could already be a great help for users.

Thanks!

yannickcr added a commit that referenced this pull request Jan 4, 2016
Add sort-comp codemod to sort-comp documentation
@yannickcr yannickcr merged commit dbf17a9 into jsx-eslint:master Jan 4, 2016
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.

2 participants