2018-12-21 22:18:05 +03:00
|
|
|
{
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"standard",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2019-01-08 19:35:12 +03:00
|
|
|
"jest": true,
|
2018-12-21 22:18:05 +03:00
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-restricted-syntax": 0,
|
|
|
|
"comma-dangle": 0,
|
|
|
|
"no-param-reassign": 0,
|
|
|
|
"space-infix-ops": 0,
|
|
|
|
"react/sort-comp": [
|
|
|
|
1, {
|
|
|
|
"order": [
|
|
|
|
"static-methods",
|
|
|
|
"constructor",
|
|
|
|
"lifecycle",
|
|
|
|
"everything-else",
|
|
|
|
"render",
|
|
|
|
"/^handle.+$/"
|
|
|
|
],
|
|
|
|
"groups": {
|
|
|
|
"lifecycle": [
|
|
|
|
"childContextTypes",
|
|
|
|
"getInitialState",
|
|
|
|
"state",
|
|
|
|
"getChildContext",
|
|
|
|
"componentWillMount",
|
|
|
|
"componentDidMount",
|
|
|
|
"componentWillReceiveProps",
|
|
|
|
"shouldComponentUpdate",
|
|
|
|
"componentWillUpdate",
|
|
|
|
"componentDidUpdate",
|
|
|
|
"componentWillUnmount"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"prettier",
|
|
|
|
"standard",
|
|
|
|
"react",
|
|
|
|
"babel"
|
|
|
|
]
|
|
|
|
}
|