forked from deckitron/deckitron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
282 lines (282 loc) · 9.83 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
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"angular": true
},
"rules": {
"no-cond-assign": ["warn"],
"no-console": ["off"],
"no-constant-condition": ["error"],
"no-control-regex": ["error"],
"no-debugger": ["error"],
"no-dupe-args": ["error"],
"no-dupe-keys": ["error"],
"no-duplicate-case": ["error"],
"no-empty-character-class": ["error"],
"no-empty": ["error"],
"no-ex-assign": ["error"],
"no-extra-boolean-cast": ["warn"],
"no-extra-parens": ["warn"],
"no-extra-semi": ["error"],
"no-func-assign": ["error"],
"no-inner-declarations": ["error"],
"no-invalid-regexp": ["error"],
"no-irregular-whitespace": ["error"],
"no-obj-calls": ["error"],
"no-prototype-builtins": ["off"],
"no-regex-spaces": ["warn"],
"no-sparse-arrays": ["error"],
"no-template-curly-in-string": ["warn"],
"no-unexpected-multiline": ["error"],
"no-unreachable": ["warn"],
"no-unsafe-finally": ["error"],
"no-unsafe-negation": ["warn"],
"use-isnan": ["error"],
"valid-jsdoc": ["off", {
"prefer": {
"return": "returns"
},
"preferType": {
"number": "Number",
"object": "Object",
"boolean": "Boolean",
"bool": "Boolean",
"array": "Array",
"regexp": "RegExp"
},
"requireReturn": false,
"requireReturnType": true,
"requireParamDescription": true,
"requireReturnDescription": true
}],
"valid-typeof": ["error"],
"accessor-pairs": ["error"],
"array-callback-return": ["error"],
"block-scoped-var": ["error"],
"class-methods-use-this": ["warn"],
"complexity": ["warn", 10],
"consistent-return": ["error"],
"curly": ["error", "all"],
"default-case": ["warn"],
"dot-location": ["warn", "property"],
"dot-notation": ["warn"],
"eqeqeq": ["error", "allow-null"],
"guard-for-in": ["error"],
"no-alert": ["error"],
"no-caller": ["error"],
"no-case-declarations": ["error"],
"no-div-regex": ["error"],
"no-else-return": ["error"],
"no-empty-function": ["error"],
"no-empty-pattern": ["error"],
"no-eq-null": ["off"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-label": ["error"],
"no-fallthrough": ["warn"],
"no-floating-decimal": ["error"],
"no-global-assign": ["warn"],
"no-implicit-coercion": ["warn"],
"no-implicit-globals": ["warn"],
"no-implied-eval": ["error"],
"no-invalid-this": ["off"],
"no-iterator": ["warn"],
"no-labels": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-magic-numbers": ["off"],
"no-multi-spaces": ["warn"],
"no-multi-str": ["error"],
"no-new-func": ["error"],
"no-new-wrappers": ["error"],
"no-new": ["error"],
"no-octal-escape": ["error"],
"no-octal": ["error"],
"no-param-reassign": ["error"],
"no-proto": ["error"],
"no-redeclare": ["error"],
"no-restricted-properties": ["error"],
"no-return-assign": ["error"],
"no-script-url": ["error"],
"no-self-assign": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-throw-literal": ["error"],
"no-unmodified-loop-condition": ["warn"],
"no-unused-expressions": ["warn"],
"no-unused-labels": ["error"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-useless-escape": ["error"],
"no-void": ["error"],
"no-warning-comments": ["warn", {
"terms": ["warn", "todo", "hack", "issue", "fixme"]
}],
"no-with": ["error"],
"radix": ["warn"],
"vars-on-top": ["warn"],
"wrap-iife": ["warn"],
"yoda": ["error"],
"init-declarations": ["warn", "always"],
"no-catch-shadow": ["error"],
"no-delete-var": ["error"],
"no-label-var": ["error"],
"no-restricted-globals": ["error"],
"no-shadow-restricted-names": ["error"],
"no-shadow": ["warn"],
"no-undef-init": ["error"],
"no-undef": ["error"],
"no-undefined": ["error"],
"no-unused-vars": ["warn"],
"no-use-before-define": ["off"],
"callback-return": ["warn"],
"global-require": ["off"],
"handle-callback-err": ["warn"],
"no-mixed-requires": ["warn"],
"no-new-require": ["error"],
"no-path-concat": ["warn"],
"no-process-env": ["off"],
"no-process-exit": ["error"],
"no-restricted-modules": ["warn"],
"no-sync": ["warn"],
"array-bracket-spacing": ["warn", "never"],
"block-spacing": ["warn", "never"],
"brace-style": ["warn", "1tbs"],
"camelcase": ["error"],
"comma-dangle": ["error"],
"comma-spacing": ["warn"],
"comma-style": ["warn"],
"computed-property-spacing": ["warn"],
"consistent-this": ["error", "self"],
"eol-last": ["error"],
"func-call-spacing": ["warn"],
"func-name-matching": ["error"],
"func-names": ["off"],
"func-style": ["warn", "declaration", {
"allowArrowFunctions": true
}],
"id-blacklist": ["error"],
"id-length": ["off"],
"id-match": ["warn", "^([mp]_)?([A-Za-z$])([A-Za-z0-9_-]+)?$"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"jsx-quotes": ["warn", "prefer-single"],
"keyword-spacing": ["warn"],
"line-comment-position": ["warn"],
"linebreak-style": ["error", "unix"],
"lines-around-comment": ["off"],
"lines-around-directive": ["warn", {
"before": "never",
"after": "always"
}],
"max-depth": ["warn"],
"max-len": ["off", {
"code": 80,
"tabWidth": 4,
"ignoreUrls": true
}],
"max-lines": ["warn", 500],
"max-nested-callbacks": ["warn"],
"max-params": ["warn", 4],
"max-statements-per-line": ["warn"],
"max-statements": ["off"],
"multiline-ternary": ["off"],
"new-cap": ["error"],
"new-parens": ["error"],
"newline-after-var": ["off"],
"newline-before-return": ["off"],
"newline-per-chained-call": ["warn", {
"ignoreChainWithDepth": 1
}],
"no-array-constructor": ["error"],
"no-bitwise": ["off"],
"no-continue": ["off"],
"no-inline-comments": ["warn"],
"no-lonely-if": ["warn"],
"no-mixed-operators": ["warn"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multiple-empty-lines": ["off"],
"no-negated-condition": ["off"],
"no-nested-ternary": ["off"],
"no-new-object": ["error"],
"no-plusplus": ["off"],
"no-restricted-syntax": ["off"],
"no-tabs": ["error"],
"no-ternary": ["off"],
"no-trailing-spaces": ["error"],
"no-underscore-dangle": ["off"],
"no-unneeded-ternary": ["warn"],
"no-whitespace-before-property": ["error"],
"object-curly-newline": ["warn", {
"ObjectExpression": {
"minProperties": 1
},
"ObjectPattern": {
"multiline": true
}
}],
"object-curly-spacing": ["warn"],
"object-property-newline": ["warn"],
"one-var-declaration-per-line": ["warn"],
"one-var": ["error", "never"],
"operator-assignment": ["warn"],
"operator-linebreak": ["warn"],
"padded-blocks": ["warn", "never"],
"quote-props": ["error", "as-needed"],
"quotes": ["warn", "single", {
"allowTemplateLiterals": true
}],
"require-jsdoc": ["off"],
"semi-spacing": ["warn"],
"semi": ["error"],
"sort-keys": ["off"],
"sort-vars": ["off"],
"space-before-blocks": ["off"],
"space-before-function-paren": ["warn"],
"space-in-parens": ["warn"],
"space-infix-ops": ["warn"],
"space-unary-ops": ["warn"],
"spaced-comment": ["warn"],
"unicode-bom": ["warn"],
"wrap-regex": ["warn"],
"arrow-body-style": ["error", "always"],
"arrow-parens": ["error", "always"],
"arrow-spacing": ["warn"],
"constructor-super": ["error"],
"generator-star-spacing": ["warn"],
"no-class-assign": ["error"],
"no-confusing-arrow": ["warn"],
"no-const-assign": ["error"],
"no-dupe-class-members": ["error"],
"no-duplicate-imports": ["error", {
"includeExports": true
}],
"no-new-symbol": ["error"],
"no-restricted-imports": ["error"],
"no-this-before-super": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-constructor": ["warn"],
"no-useless-rename": ["warn"],
"no-var": ["warn"],
"object-shorthand": ["off"],
"prefer-arrow-callback": ["off"],
"prefer-const": ["off"],
"prefer-numeric-literals": ["warn"],
"prefer-reflect": ["warn"],
"prefer-rest-params": ["warn"],
"prefer-spread": ["warn"],
"prefer-template": ["off"],
"require-yield": ["warn"],
"rest-spread-spacing": ["warn"],
"sort-imports": ["warn"],
"symbol-description": ["warn"],
"template-curly-spacing": ["warn"],
"yield-star-spacing": ["warn"]
}
}