Skip to content

Commit 1966f47

Browse files
committed
Docs: How to automatically sort-comp compliance
Added a note based on the pattern in http://eslint.org/docs/rules/no-trailing-spaces
1 parent 73f056c commit 1966f47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rules/sort-comp.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
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.
44

5+
**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).
6+
57
## Rule Details
68

79
With default configuration the following organisation must be followed:

0 commit comments

Comments
 (0)