Skip to content

Fix minor typos #973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/rules/sort-comp.md
Original file line number Diff line number Diff line change
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