-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
58 lines (57 loc) · 1.35 KB
/
.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
54
55
56
57
58
{
"plugins": ["prettier"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"react-app",
"plugin:prettier/recommended"
],
"env": { "node": true, "es6": true, "jest": true },
"rules": {
"prettier/prettier": "error",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"no-var": "error",
"no-empty": "error",
"block-scoped-var": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-eval": "error",
"no-empty-function": "error",
"semi": ["error", "never"],
"comma-dangle": ["error", "always-multiline"],
"keyword-spacing": [
"error",
{
"after": true,
"before": true
}
],
"object-curly-spacing": ["error", "always"],
"template-curly-spacing": ["error", "never"],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"object-curly-newline": [
"error",
{
"ObjectExpression": { "consistent": true },
"ObjectPattern": { "multiline": true }
}
],
"max-len": ["error", { "code": 120 }],
"complexity": ["warn", 8],
"react/jsx-curly-spacing": ["error", "always"],
"react/jsx-equals-spacing": ["error", "never"]
},
"settings": {
"react": {
"version": "detect"
}
}
}