Skip to content

Commit

Permalink
Docs: How to automatically sort-comp compliance
Browse files Browse the repository at this point in the history
Added a note based on the pattern in http://eslint.org/docs/rules/no-trailing-spaces
  • Loading branch information
turadg committed Jan 4, 2016
1 parent 73f056c commit 1966f47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rules/sort-comp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

When creating React components it is more convenient to always follow the same organisation for methods order to helps you to easily find lifecyle methods, event handlers, etc.

**Fixable:** This rule is automatically fixable using the [`sort-comp` transform](https://github.com/reactjs/react-codemod/blob/master/transforms/sort-comp.js) in [react-codemod](https://www.npmjs.com/package/react-codemod).

## Rule Details

With default configuration the following organisation must be followed:
Expand Down

0 comments on commit 1966f47

Please sign in to comment.