Skip to content

Commit

Permalink
Merge pull request #381 from turadg/patch-1
Browse files Browse the repository at this point in the history
Add sort-comp codemod to sort-comp documentation
  • Loading branch information
yannickcr committed Jan 4, 2016
2 parents 73f056c + 1966f47 commit dbf17a9
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 dbf17a9

Please sign in to comment.