-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
99 lines (99 loc) · 1.91 KB
/
.eslintrc.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"root": true,
"parser": "@babel/eslint-parser",
"settings": {
"react": {
"version": "detect"
}
},
"plugins": [
"react",
"react-hooks",
"import",
"export",
"jest",
"jsx-a11y"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module",
"babelOptions": {
"presets": [
"@babel/preset-react"
]
}
},
"rules": {
"no-alert": "warn",
"no-console": [
"warn",
{
"allow": [
"error",
"info"
]
}
],
"no-undef": "warn",
"no-else-return": "warn",
"no-unused-vars": "warn",
"no-undefined": "warn",
"no-unreachable": "warn",
"no-extra-semi": "warn",
"no-duplicate-case": "warn",
"no-useless-escape": "warn",
"no-multi-spaces": [
"warn",
{
"ignoreEOLComments": true
}
],
"eqeqeq": "warn",
"semi": "warn",
"no-delete-var": "warn",
"prefer-const": "warn",
"prefer-arrow-callback": "error",
"react/prefer-stateless-function": "warn",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/no-unused-prop-types": "warn",
"react/react-in-jsx-scope": "off",
"import/export": "warn",
"react/jsx-fragments": "warn",
"space-before-function-paren": "warn",
"react/jsx-handler-names": "warn",
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".js",
".jsx"
]
}
],
"curly": "error"
},
"overrides": [
{
"files": [
"**/*.spec.js",
"**/*.spec.jsx",
"**/*.test.jsx",
"**/*.test.js"
],
"env": {
"jest": true
}
}
]
}