Skip to content

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