2020-02-27 10:02:58 +00:00
|
|
|
{
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 8,
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"experimentalObjectRestSpread": true,
|
|
|
|
"jsx": true,
|
|
|
|
"spread": true
|
|
|
|
},
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"jquery": true,
|
|
|
|
"es6": true,
|
|
|
|
"jest": true
|
|
|
|
},
|
|
|
|
"plugins": ["react", "jsx-a11y"],
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:react/recommended",
|
2020-11-09 09:10:29 +00:00
|
|
|
"plugin:prettier/recommended",
|
2020-11-01 11:37:05 +00:00
|
|
|
"prettier",
|
|
|
|
"prettier/react"
|
2020-02-27 10:02:58 +00:00
|
|
|
],
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"rules": {
|
|
|
|
"no-fallthrough": "error",
|
|
|
|
"no-unreachable": "error",
|
|
|
|
"no-cond-assign": "error",
|
|
|
|
"valid-typeof": "error",
|
|
|
|
"no-func-assign": "error",
|
|
|
|
"no-extra-semi": "error",
|
|
|
|
"linebreak-style": ["error", "unix"],
|
2021-05-14 08:49:00 +00:00
|
|
|
"no-unused-vars": "error",
|
2020-02-27 10:02:58 +00:00
|
|
|
"no-console": "error",
|
|
|
|
"no-undef": "error",
|
|
|
|
"no-empty": "error",
|
|
|
|
"no-case-declarations": "error",
|
|
|
|
"no-mixed-spaces-and-tabs": "error",
|
|
|
|
"no-useless-escape": "error",
|
2021-05-14 08:49:00 +00:00
|
|
|
"prettier/prettier": "error",
|
2020-02-27 10:02:58 +00:00
|
|
|
"react/jsx-no-undef": "error",
|
|
|
|
"react/jsx-no-bind": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowArrowFunctions": true,
|
|
|
|
"allowBind": false,
|
|
|
|
"ignoreRefs": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"react/no-children-prop": "error",
|
|
|
|
"react/no-deprecated": "error",
|
|
|
|
"react/boolean-prop-naming": "error",
|
|
|
|
"react/no-is-mounted": "error",
|
|
|
|
"react/no-find-dom-node": "error",
|
|
|
|
"react/no-did-update-set-state": "error",
|
|
|
|
"react/no-unknown-property": "error",
|
|
|
|
"react/no-unused-prop-types": "error",
|
|
|
|
"react/jsx-no-duplicate-props": "error",
|
|
|
|
"react/no-unused-state": "error",
|
|
|
|
"react/jsx-uses-vars": "error",
|
|
|
|
"react/prop-types": "error",
|
|
|
|
"react/react-in-jsx-scope": "error",
|
|
|
|
"react/no-string-refs": "error",
|
|
|
|
"jsx-a11y/href-no-hash": [0],
|
|
|
|
"react/no-unescaped-entities": "error",
|
2021-05-14 08:49:00 +00:00
|
|
|
"react/display-name": "error",
|
2020-02-27 10:02:58 +00:00
|
|
|
"react/jsx-pascal-case": "error",
|
|
|
|
"array-callback-return": "error",
|
|
|
|
"no-loop-func": "error",
|
|
|
|
"jsx-a11y/anchor-is-valid": "error",
|
|
|
|
"prefer-const": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"destructuring": "any",
|
|
|
|
"ignoreReadBeforeAssign": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-var": "error"
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "16.5"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|