-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
116 lines (115 loc) · 2.57 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"env": {
"es6": true
},
"parserOptions": {
"sourceType": "module"
},
"extends": "react-app",
"rules": {
"jsx-a11y/anchor-is-valid": 0,
"semi": ["error", "always"],
"curly": "error",
"no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"prefer-const": "error",
"brace-style": "error",
"no-debugger": "error",
"no-useless-return": "error",
"block-scoped-var": "error",
"default-case": "error",
"no-else-return": "error",
"no-eq-null": "error",
"no-floating-decimal": "error",
"no-loop-func": "error",
"prefer-template": "error",
"spaced-comment": "error",
"space-before-blocks": ["error", "always"],
"keyword-spacing": [
"error",
{
"after": true
}
],
"max-len": [
"error",
{
"code": 220,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"space-infix-ops": "error",
"template-curly-spacing": "off",
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"semi-spacing": [
"error",
{
"before": false,
"after": true
}
],
"object-curly-spacing": ["error", "always"],
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true,
"mode": "strict",
"align": "colon"
}
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": true,
"allowUnboundThis": true
}
],
"quotes": ["error", "single"],
"no-var": "error",
// "no-console": [
// "warn",
// {
// "allow": ["error", "warn"]
// }
// ],
"no-alert": "error",
"indent": [
"error",
2,
{
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral"]
}
],
"space-in-parens": ["error", "never"],
"no-extra-semi": "error",
"no-multi-spaces": ["error"],
"no-unmodified-loop-condition": "error",
"no-useless-concat": "error",
"prefer-spread": "error",
"complexity": ["error", 42]
}
}