2017-12-13 22:35:07 +01:00
|
|
|
{
|
2019-03-18 06:09:50 +01:00
|
|
|
"parser": "babel-eslint",
|
2019-05-07 04:35:04 +02:00
|
|
|
"extends": ["standard", "standard-jsx", "plugin:react/recommended", "plugin:flowtype/recommended"],
|
|
|
|
"plugins": ["flowtype", "import", "react-hooks"],
|
2019-03-07 22:46:15 +01:00
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"webpack": {
|
|
|
|
"config": "webpack.base.config.js"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-12-13 22:35:07 +01:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"__static": true,
|
2019-03-05 05:46:57 +01:00
|
|
|
"i18n": true,
|
2017-12-20 16:34:18 +01:00
|
|
|
"__": true,
|
2019-03-18 06:06:41 +01:00
|
|
|
"app": true,
|
2019-05-09 06:35:43 +02:00
|
|
|
"IS_WEB": true,
|
|
|
|
"WEBPACK_PORT": true
|
2017-12-20 16:35:13 +01:00
|
|
|
},
|
|
|
|
"rules": {
|
2019-06-28 09:33:07 +02:00
|
|
|
"brace-style": 0,
|
2019-05-07 04:35:04 +02:00
|
|
|
"comma-dangle": ["error", "always-multiline"],
|
2019-03-18 06:09:50 +01:00
|
|
|
"handle-callback-err": 0,
|
2019-05-10 16:50:33 +02:00
|
|
|
"indent": 0,
|
2019-05-07 04:35:04 +02:00
|
|
|
"jsx-quotes": ["error", "prefer-double"],
|
|
|
|
"new-cap": 0,
|
2019-07-09 08:02:08 +02:00
|
|
|
"no-console": 1,
|
2019-05-07 04:35:04 +02:00
|
|
|
"no-multi-spaces": 0,
|
2019-03-18 06:09:50 +01:00
|
|
|
"no-redeclare": 0,
|
|
|
|
"no-return-await": 0,
|
2019-05-07 04:35:04 +02:00
|
|
|
"object-curly-spacing": 0,
|
|
|
|
"one-var": 0,
|
|
|
|
"prefer-promise-reject-errors": 0,
|
2019-07-22 04:05:37 +02:00
|
|
|
"react/jsx-indent": 0,
|
2019-05-07 04:35:04 +02:00
|
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
|
|
"react-hooks/rules-of-hooks": "error",
|
2019-08-26 23:31:17 +02:00
|
|
|
"space-before-function-paren": ["error", {
|
|
|
|
"anonymous": "never",
|
|
|
|
"named": "never",
|
|
|
|
"asyncArrow": "always"
|
|
|
|
}],
|
2019-05-07 04:35:04 +02:00
|
|
|
"standard/object-curly-even-spacing": 0,
|
|
|
|
"standard/no-callback-literal": 0,
|
2019-06-28 09:27:55 +02:00
|
|
|
"react/display-name": 0,
|
2019-03-18 06:09:50 +01:00
|
|
|
"semi": [
|
2019-02-22 06:01:59 +01:00
|
|
|
"error",
|
2019-03-18 06:09:50 +01:00
|
|
|
"always",
|
2019-02-22 06:01:59 +01:00
|
|
|
{
|
2019-03-18 06:09:50 +01:00
|
|
|
"omitLastInOneLineBlock": true
|
2019-02-22 06:01:59 +01:00
|
|
|
}
|
2019-03-18 06:09:50 +01:00
|
|
|
]
|
2017-12-13 22:35:07 +01:00
|
|
|
}
|
2017-12-28 01:09:13 +01:00
|
|
|
}
|