Skip to content

Commit 0a40c27

Browse files
authored
Merge pull request #973 from JamesWatling/patch-1
Fix minor typos
2 parents d241bb5 + adce126 commit 0a40c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/sort-comp.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ When creating React components it is more convenient to always follow the same o
66

77
## Rule Details
88

9-
With default configuration the following organisation must be followed:
9+
The default configuration ensures that the following order must be followed:
1010

1111
1. static methods and properties
1212
2. lifecycle methods: `displayName`, `propTypes`, `contextTypes`, `childContextTypes`, `mixins`, `statics`,`defaultProps`, `constructor`, `getDefaultProps`, `getInitialState`, `state`, `getChildContext`, `componentWillMount`, `componentDidMount`, `componentWillReceiveProps`, `shouldComponentUpdate`, `componentWillUpdate`, `componentDidUpdate`, `componentWillUnmount` (in this order).
@@ -89,7 +89,7 @@ The default configuration is:
8989
* `lifecycle` is referring to the `lifecycle` group defined in `groups`.
9090
* `everything-else` is a special group that match all the methods that do not match any of the other groups.
9191
* `render` is referring to the `render` method.
92-
* `type-annotations`. This group is not speficied by default, but can be used enforce flow annotations to be at the top.
92+
* `type-annotations`. This group is not specified by default, but can be used to enforce flow annotations to be at the top.
9393

9494
You can override this configuration to match your needs.
9595

0 commit comments

Comments
 (0)