Skip to content

Commit

Permalink
Merge pull request #973 from JamesWatling/patch-1
Browse files Browse the repository at this point in the history
Fix minor typos
  • Loading branch information
lencioni committed Nov 23, 2016
2 parents d241bb5 + adce126 commit 0a40c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/sort-comp.md
Expand Up @@ -6,7 +6,7 @@ When creating React components it is more convenient to always follow the same o

## Rule Details

With default configuration the following organisation must be followed:
The default configuration ensures that the following order must be followed:

1. static methods and properties
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).
Expand Down Expand Up @@ -89,7 +89,7 @@ The default configuration is:
* `lifecycle` is referring to the `lifecycle` group defined in `groups`.
* `everything-else` is a special group that match all the methods that do not match any of the other groups.
* `render` is referring to the `render` method.
* `type-annotations`. This group is not speficied by default, but can be used enforce flow annotations to be at the top.
* `type-annotations`. This group is not specified by default, but can be used to enforce flow annotations to be at the top.

You can override this configuration to match your needs.

Expand Down

0 comments on commit 0a40c27

Please sign in to comment.