-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
214 lines (208 loc) · 5.93 KB
/
.eslintrc.js
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
module.exports = {
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
},
"plugins": [],
"env": {
"browser": true,
"node": true,
},
"extends": "eslint:recommended",
"rules": {
"comma-dangle": [1, "always-multiline"],
"no-console": 1,
"accessor-pairs": [1, { "getWithoutSet": true }],
"array-callback-return": 1,
"block-scoped-var": 1,
"complexity": [1, 6],
"consistent-return": 1,
"curly": 0,
"default-case": 1,
"dot-location": [1, "property"],
"dot-notation": 1,
"eqeqeq": 2,
"guard-for-in": 1,
"no-alert": 1,
"no-caller": 2,
"no-case-declarations": 2,
"no-div-regex": 2,
"no-else-return": 1,
"no-empty-function": 1,
"no-empty-pattern": 1,
"no-eq-null": 0,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-label": 2,
"no-fallthrough": 1,
"no-floating-decimal": 1,
"no-implicit-coercion": [1, {
"allow": ["!!"],
}],
"no-implicit-globals": 2,
"no-implied-eval": 2,
"no-invalid-this": 2,
"no-iterator": 2,
"no-labels": 1,
"no-lone-blocks": 0,
"no-loop-func": 2,
"no-magic-numbers": [1, {
"ignore": [-1, 0, 1, 24, 60, 1000],
"ignoreArrayIndexes": true,
}],
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-native-reassign": 2,
"no-new": 1,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-param-reassign": [1, { "props": true }],
"no-process-env": 0,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 1,
"no-script-url": 1,
"no-self-assign": 1,
"no-self-compare": 1,
"no-sequences": 1,
"no-throw-literal": 1,
"no-unmodified-loop-condition": 1,
"no-unused-expressions": [1, { "allowTernary": true }],
"no-unused-labels": 1,
"no-useless-call": 1,
"no-useless-concat": 1,
"no-void": 2,
"no-warning-comments": 0,
"no-with": 2,
"radix": 1,
"vars-on-top": 0,
"wrap-iife": [1, "inside"],
"yoda": 1,
"strict": 0,
"init-declarations": 1,
"no-catch-shadow": 1,
"no-delete-var": 1,
"no-label-var": 1,
"no-restricted-globals": 1,
"no-shadow": [1, { "allow": ["done", "next", "callback", "err"] }],
"no-shadow-restricted-names": 1,
"no-undef": 1,
"no-undef-init": 1,
"no-undefined": 0,
"no-unused-vars": [1, { "args": "after-used" }],
"no-use-before-define": 1,
"callback-return": [1, ["done", "next", "callback", "resolve", "reject"]],
"global-require": 1,
"handle-callback-err": 1,
"no-mixed-requires": 1,
"no-new-require": 1,
"no-path-concat": 1,
"no-process-exit": 1,
"no-restricted-imports": 0,
"no-restricted-modules": 0,
"no-sync": 1,
"array-bracket-spacing": [1, "never"],
"block-spacing": [1, "always"],
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
"camelcase": 1,
"comma-spacing": [1, { "before": false, "after": true }],
"comma-style": [1, "last"],
"computed-property-spacing": [1, "never"],
"consistent-this": [1, "self"],
"eol-last": 1,
"func-names": 0,
"func-style": [1, "expression", { "allowArrowFunctions": true }],
"id-blacklist": 0,
"id-length": [1, { "min": 0, "max": 32 }],
"id-match": 0,
"indent": [1, 2, { "SwitchCase": 1 }],
"jsx-quotes": [1, "prefer-double"],
"key-spacing": [1, {
"beforeColon": false,
"afterColon": true,
}],
"keyword-spacing": 1,
"linebreak-style": [1, "unix"],
"lines-around-comment": 0,
"max-depth": [1, 8],
"max-len": [1, 80, 2, { "ignoreUrls": true }],
"max-nested-callbacks": [1, 4],
"max-params": [1, 4],
"max-statements": [1, 20],
"new-cap": 1,
"new-parens": 2,
"newline-after-var": [1, "always"],
"newline-before-return": 1,
"newline-per-chained-call": 0,
"no-array-constructor": 1,
"no-bitwise": 1,
"no-continue": 1,
"no-inline-comments": 1,
"no-lonely-if": 1,
"no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"no-multiple-empty-lines": [1, { "max": 2 }],
"no-negated-condition": 1,
"no-nested-ternary": 1,
"no-new-object": 1,
"no-plusplus": [1, { "allowForLoopAfterthoughts": true }],
"no-restricted-syntax": 0,
"no-spaced-func": 1,
"no-ternary": 0,
"no-trailing-spaces": 1,
"no-underscore-dangle": 0,
"no-unneeded-ternary": [1, { "defaultAssignment": true }],
"no-whitespace-before-property": 1,
"object-curly-spacing": [1, "always"],
"one-var": [1, "never"],
"one-var-declaration-per-line": 0,
"operator-assignment": [1, "always"],
"operator-linebreak": [1, "after"],
"padded-blocks": [1, "never"],
"quote-props": [1, "as-needed"],
"quotes": [1, "single", "avoid-escape"],
"require-jsdoc": 0,
"semi": [1, "always"],
"semi-spacing": [1, {
"before": false,
"after": true,
}],
"sort-imports": 1,
"sort-vars": 0,
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, "never"],
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"space-unary-ops": 1,
"spaced-comment": [1, "always"],
"wrap-regex": 0,
"arrow-body-style": [0, "as-needed"],
"arrow-parens": [1, "as-needed"],
"arrow-spacing": [1, { "before": true, "after": true }],
"constructor-super": 2,
"generator-star-spacing": [1, "after"],
"no-class-assign": 1,
"no-confusing-arrow": 1,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-new-symbol": 2,
"no-this-before-super": 2,
"no-useless-constructor": 1,
"no-var": 1,
"object-shorthand": [2, "always", { "ignoreConstructors": true }],
"prefer-arrow-callback": 1,
"prefer-const": 1,
"prefer-reflect": 0,
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
"require-yield": 2,
"template-curly-spacing": [1, "never"],
"yield-star-spacing": [1, "after"],
}
}