-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
38 lines (38 loc) · 1.01 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:cypress/recommended"
],
"rules": {
"indent": ["error", 4, { "SwitchCase": 1 }],
"space-before-function-paren": ["error", "never"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"no-constant-condition": ["off"],
"no-undef": ["error"],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": [2, "always"],
// react
"react/react-in-jsx-scope": "off",
"react/prop-types": "off"
},
"parserOptions": {
"restParams": true,
"spread": true,
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {},
"overrides": [],
"settings": {
"react": {
"version": "detect"
}
}
}