Update eslintrc

use react/sort-comp rule in eslintrc (thanks to planet-v3)
This commit is contained in:
Guillaume ARM 2016-11-06 04:22:12 +01:00
parent 90e2a4014f
commit f61b0cec4f

View file

@ -58,9 +58,19 @@
"global-require": [0], "global-require": [0],
// React // React
//"computed-property-spacing": ["warn", "never"], // disallow spaces inside computed properties //"computed-property-spacing": ["warn", "never"], // disallow spaces inside computed properties
"react/jsx-indent-props": ["warn", 4], "react/jsx-indent-props": ["warn", 2],
"react/forbid-prop-types": [0], "react/forbid-prop-types": [0],
"react/no-unescaped-entities": [0], "react/no-unescaped-entities": [0],
"react/no-unused-prop-types": [0] # because broken "react/no-unused-prop-types": [0], # because broken
"react/sort-comp": [1, {
order: [
'static-methods',
'lifecycle',
'/^on.+$/',
'everything-else',
'/^render.+$/',
'render'
]
}]
} }
} }