2019-08-27 17:27:26 +08:00
|
|
|
{
|
|
|
|
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
|
|
|
|
"plugins": ["react-hooks"],
|
|
|
|
"rules": {
|
|
|
|
"semi": 2,
|
|
|
|
"no-console": "off",
|
|
|
|
"react/prop-types": 0,
|
|
|
|
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
|
|
|
|
"react-hooks/rules-of-hooks": "error",
|
|
|
|
"react-hooks/exhaustive-deps": "warn",
|
2021-01-04 11:45:44 +08:00
|
|
|
"max-lines": ["warn", { "max": 500 }],
|
|
|
|
"react/display-name": 0,
|
|
|
|
"react/react-in-jsx-scope": "off"
|
2019-08-27 17:27:26 +08:00
|
|
|
},
|
|
|
|
"parser": "babel-eslint",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2018,
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
2021-01-04 11:45:44 +08:00
|
|
|
"globals": {
|
|
|
|
"UE": true
|
|
|
|
},
|
2019-08-27 17:27:26 +08:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"es6": true,
|
|
|
|
"serviceworker": true
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "16.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|