Skip to content

Commit a70000b

Browse files
committed
Merge pull request airbnb#372 from 0xCMP/patch-1
Update .eslintrc with other react class properties
2 parents 2626e0b + fe42d0b commit a70000b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

linters/.eslintrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,21 @@
191191
"react/sort-comp": [2, {
192192
"order": [
193193
"displayName",
194+
"propTypes",
195+
"contextTypes",
196+
"childContextTypes",
194197
"mixins",
195198
"statics",
196-
"propTypes",
199+
"defaultProps",
197200
"getDefaultProps",
198201
"getInitialState",
202+
"getChildContext",
199203
"componentWillMount",
200204
"componentDidMount",
201205
"componentWillReceiveProps",
202206
"shouldComponentUpdate",
203207
"componentWillUpdate",
208+
"componentDidUpdate",
204209
"componentWillUnmount",
205210
"/^on.+$/",
206211
"/^get.+$/",

0 commit comments

Comments
 (0)