redux-devtools/packages/react-json-tree/.eslintrc
Mihail Diordiev b80cc9e5b9
Merge react-json-tree package (#428)
* Merge react-json-tree from alexkuz/react-json-tree

* Npm package config

* Add credits

* Stick `eslint-plugin-react` to `7.4.0` till change deprecated `componentWillReceiveProps`
2018-12-21 21:18:05 +02:00

54 lines
1.1 KiB
Plaintext

{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"standard",
"plugin:react/recommended",
"prettier"
],
"env": {
"browser": true,
"mocha": true,
"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"
]
}