[eslint-v2][react] add static-methods to top of sort-comp order

This commit is contained in:
Harrison Shoff
2016-02-20 13:02:15 -08:00
committed by Jordan Harband
parent ff0adbe291
commit 133fc51e21

View File

@@ -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$)).+$/',