mirror of
https://github.com/zerosoul/chinese-colors.git
synced 2024-11-21 01:13:53 +08:00
33 lines
694 B
Plaintext
33 lines
694 B
Plaintext
|
{
|
||
|
"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",
|
||
|
"max-lines": ["warn", 400]
|
||
|
},
|
||
|
"parser": "babel-eslint",
|
||
|
"parserOptions": {
|
||
|
"ecmaVersion": 2018,
|
||
|
"sourceType": "module",
|
||
|
"ecmaFeatures": {
|
||
|
"jsx": true
|
||
|
}
|
||
|
},
|
||
|
"env": {
|
||
|
"browser": true,
|
||
|
"node": true,
|
||
|
"es6": true,
|
||
|
"serviceworker": true
|
||
|
},
|
||
|
"settings": {
|
||
|
"react": {
|
||
|
"version": "16.8"
|
||
|
}
|
||
|
}
|
||
|
}
|