mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 07:47:54 -05:00
[eslint-v2][react] add static-methods to top of sort-comp order
This commit is contained in:
committed by
Jordan Harband
parent
ff0adbe291
commit
133fc51e21
1
packages/eslint-config-airbnb/rules/react.js
vendored
1
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -123,6 +123,7 @@ module.exports = {
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md
|
||||
'react/sort-comp': [2, {
|
||||
'order': [
|
||||
'static-methods',
|
||||
'lifecycle',
|
||||
'/^on.+$/',
|
||||
'/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/',
|
||||
|
||||
Reference in New Issue
Block a user