/
.eslintrc
53 lines (53 loc) 路 921 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"plugins": [
"react-hooks"
],
"rules": {
"react/react-in-jsx-scope": 0,
"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/jsx-no-target-blank": 0
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"UE": true
},
"env": {
"browser": true,
"node": true,
"es6": true,
"serviceworker": true
},
"settings": {
"react": {
"version": "16.8"
}
}
}