mirror of
https://github.com/zerosoul/chinese-colors.git
synced 2024-11-27 04:40:12 +08:00
38 lines
806 B
Plaintext
38 lines
806 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", { "max": 500 }],
|
|
"react/display-name": 0,
|
|
"react/react-in-jsx-scope": "off"
|
|
},
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"globals": {
|
|
"UE": true
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"es6": true,
|
|
"serviceworker": true
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "18"
|
|
}
|
|
}
|
|
}
|