chinese-colors/.eslintrc
2023-09-27 10:06:52 +08:00

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"
}
}
}