@eslinted/defaults 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.markdownlint.jsonc +1 -1
- package/LICENSE +0 -1
- package/dist/rules/index.d.ts +1 -0
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.js +7 -7
- package/dist/rules/scopes/css/enable.js.map +1 -1
- package/dist/rules/scopes/html/enable.js +35 -35
- package/dist/rules/scopes/html/enable.js.map +1 -1
- package/dist/rules/scopes/js/enable-stylistic.d.ts +1 -0
- package/dist/rules/scopes/js/enable-stylistic.d.ts.map +1 -1
- package/dist/rules/scopes/js/enable-stylistic.js +71 -67
- package/dist/rules/scopes/js/enable-stylistic.js.map +1 -1
- package/dist/rules/scopes/js/enable.js +148 -148
- package/dist/rules/scopes/js/enable.js.map +1 -1
- package/dist/rules/scopes/js/index.d.ts +1 -0
- package/dist/rules/scopes/js/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable-ext.js +21 -21
- package/dist/rules/scopes/json/enable-ext.js.map +1 -1
- package/dist/rules/scopes/json/enable.js +20 -20
- package/dist/rules/scopes/json/enable.js.map +1 -1
- package/dist/rules/scopes/jsonc/override.js +2 -2
- package/dist/rules/scopes/jsonc/override.js.map +1 -1
- package/dist/rules/scopes/mocha/enable-chai-expect.js +4 -4
- package/dist/rules/scopes/mocha/enable-chai-expect.js.map +1 -1
- package/dist/rules/scopes/mocha/enable-chai.js +2 -2
- package/dist/rules/scopes/mocha/enable-chai.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +18 -18
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/enable-ext.js +3 -3
- package/dist/rules/scopes/svelte/enable-ext.js.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +63 -63
- package/dist/rules/scopes/svelte/enable.js.map +1 -1
- package/dist/rules/scopes/ts/enable-ext.js +16 -16
- package/dist/rules/scopes/ts/enable-ext.js.map +1 -1
- package/dist/rules/scopes/ts/enable.js +89 -89
- package/dist/rules/scopes/ts/enable.js.map +1 -1
- package/dist/rules/scopes/yml/enable-ext.js +9 -9
- package/dist/rules/scopes/yml/enable-ext.js.map +1 -1
- package/dist/rules/scopes/yml/enable.js +17 -17
- package/dist/rules/scopes/yml/enable.js.map +1 -1
- package/dist/rules/strings/state.d.ts +1 -1
- package/dist/rules/strings/state.d.ts.map +1 -1
- package/dist/rules/strings/state.js +1 -1
- package/dist/rules/strings/state.js.map +1 -1
- package/package.json +2 -2
- package/src/rules/scopes/css/enable.ts +7 -7
- package/src/rules/scopes/html/enable.ts +35 -35
- package/src/rules/scopes/js/enable-stylistic.ts +71 -67
- package/src/rules/scopes/js/enable.ts +148 -148
- package/src/rules/scopes/json/enable-ext.ts +21 -21
- package/src/rules/scopes/json/enable.ts +20 -20
- package/src/rules/scopes/jsonc/override.ts +2 -2
- package/src/rules/scopes/mocha/enable-chai-expect.ts +4 -4
- package/src/rules/scopes/mocha/enable-chai.ts +2 -2
- package/src/rules/scopes/mocha/enable.ts +18 -18
- package/src/rules/scopes/svelte/enable-ext.ts +3 -3
- package/src/rules/scopes/svelte/enable.ts +63 -63
- package/src/rules/scopes/ts/enable-ext.ts +16 -16
- package/src/rules/scopes/ts/enable.ts +89 -89
- package/src/rules/scopes/yml/enable-ext.ts +9 -9
- package/src/rules/scopes/yml/enable.ts +17 -17
- package/src/rules/strings/state.ts +1 -1
- package/tsconfig.json +22 -35
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { ID,
|
|
1
|
+
import { ID, ON, OFF, never, always, as_needed, consecutive, allow, all, multi, both, } from "../../strings/index.js";
|
|
2
2
|
export const Enable = {
|
|
3
3
|
id: ID.Enable,
|
|
4
4
|
rules: {
|
|
5
5
|
"array-callback-return": [
|
|
6
|
-
|
|
6
|
+
ON,
|
|
7
7
|
{
|
|
8
8
|
allowImplicit: false,
|
|
9
9
|
checkForEach: true,
|
|
10
10
|
allowVoid: true,
|
|
11
11
|
},
|
|
12
12
|
],
|
|
13
|
-
"constructor-super":
|
|
14
|
-
"for-direction":
|
|
13
|
+
"constructor-super": ON,
|
|
14
|
+
"for-direction": ON,
|
|
15
15
|
"getter-return": [
|
|
16
|
-
|
|
16
|
+
ON,
|
|
17
17
|
{
|
|
18
18
|
allowImplicit: false,
|
|
19
19
|
},
|
|
20
20
|
],
|
|
21
|
-
"no-async-promise-executor":
|
|
22
|
-
"no-await-in-loop":
|
|
23
|
-
"no-class-assign":
|
|
24
|
-
"no-compare-neg-zero":
|
|
21
|
+
"no-async-promise-executor": ON,
|
|
22
|
+
"no-await-in-loop": ON,
|
|
23
|
+
"no-class-assign": ON,
|
|
24
|
+
"no-compare-neg-zero": ON,
|
|
25
25
|
"no-cond-assign": [
|
|
26
|
-
|
|
26
|
+
ON,
|
|
27
27
|
always,
|
|
28
28
|
],
|
|
29
|
-
"no-const-assign":
|
|
30
|
-
"no-constant-binary-expression":
|
|
29
|
+
"no-const-assign": ON,
|
|
30
|
+
"no-constant-binary-expression": ON,
|
|
31
31
|
"no-constant-condition": [
|
|
32
|
-
|
|
32
|
+
ON,
|
|
33
33
|
{
|
|
34
34
|
checkLoops: true,
|
|
35
35
|
},
|
|
36
36
|
],
|
|
37
|
-
"no-constructor-return":
|
|
38
|
-
"no-control-regex":
|
|
39
|
-
"no-debugger":
|
|
40
|
-
"no-dupe-args":
|
|
41
|
-
"no-dupe-class-members":
|
|
42
|
-
"no-dupe-else-if":
|
|
43
|
-
"no-dupe-keys":
|
|
44
|
-
"no-duplicate-case":
|
|
37
|
+
"no-constructor-return": ON,
|
|
38
|
+
"no-control-regex": ON,
|
|
39
|
+
"no-debugger": ON,
|
|
40
|
+
"no-dupe-args": ON,
|
|
41
|
+
"no-dupe-class-members": ON,
|
|
42
|
+
"no-dupe-else-if": ON,
|
|
43
|
+
"no-dupe-keys": ON,
|
|
44
|
+
"no-duplicate-case": ON,
|
|
45
45
|
"no-duplicate-imports": OFF,
|
|
46
|
-
"no-empty-character-class":
|
|
46
|
+
"no-empty-character-class": ON,
|
|
47
47
|
"no-empty-pattern": [
|
|
48
|
-
|
|
48
|
+
ON,
|
|
49
49
|
{
|
|
50
50
|
allowObjectPatternsAsParameters: false,
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
|
-
"no-ex-assign":
|
|
53
|
+
"no-ex-assign": ON,
|
|
54
54
|
"no-fallthrough": [
|
|
55
|
-
|
|
55
|
+
ON,
|
|
56
56
|
{
|
|
57
57
|
allowEmptyCase: true,
|
|
58
58
|
reportUnusedFallthroughComment: true,
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
|
-
"no-func-assign":
|
|
62
|
-
"no-import-assign":
|
|
61
|
+
"no-func-assign": ON,
|
|
62
|
+
"no-import-assign": ON,
|
|
63
63
|
"no-inner-declarations": [
|
|
64
|
-
|
|
64
|
+
ON,
|
|
65
65
|
both,
|
|
66
66
|
{
|
|
67
67
|
blockScopedFunctions: allow,
|
|
68
68
|
},
|
|
69
69
|
],
|
|
70
70
|
"no-invalid-regexp": [
|
|
71
|
-
|
|
71
|
+
ON,
|
|
72
72
|
{
|
|
73
73
|
allowConstructorFlags: [],
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
76
|
"no-irregular-whitespace": [
|
|
77
|
-
|
|
77
|
+
ON,
|
|
78
78
|
{
|
|
79
79
|
skipStrings: true,
|
|
80
80
|
skipComments: true,
|
|
@@ -83,54 +83,54 @@ export const Enable = {
|
|
|
83
83
|
skipJSXText: true,
|
|
84
84
|
},
|
|
85
85
|
],
|
|
86
|
-
"no-loss-of-precision":
|
|
87
|
-
"no-misleading-character-class":
|
|
88
|
-
"no-new-native-nonconstructor":
|
|
89
|
-
"no-obj-calls":
|
|
86
|
+
"no-loss-of-precision": ON,
|
|
87
|
+
"no-misleading-character-class": ON,
|
|
88
|
+
"no-new-native-nonconstructor": ON,
|
|
89
|
+
"no-obj-calls": ON,
|
|
90
90
|
"no-promise-executor-return": [
|
|
91
|
-
|
|
91
|
+
ON,
|
|
92
92
|
{
|
|
93
93
|
allowVoid: true,
|
|
94
94
|
},
|
|
95
95
|
],
|
|
96
|
-
"no-prototype-builtins":
|
|
96
|
+
"no-prototype-builtins": ON,
|
|
97
97
|
"no-self-assign": [
|
|
98
|
-
|
|
98
|
+
ON,
|
|
99
99
|
{
|
|
100
100
|
props: true,
|
|
101
101
|
},
|
|
102
102
|
],
|
|
103
|
-
"no-self-compare":
|
|
104
|
-
"no-setter-return":
|
|
105
|
-
"no-sparse-arrays":
|
|
106
|
-
"no-template-curly-in-string":
|
|
107
|
-
"no-this-before-super":
|
|
108
|
-
"no-undef":
|
|
109
|
-
"no-unexpected-multiline":
|
|
110
|
-
"no-unmodified-loop-condition":
|
|
111
|
-
"no-unreachable":
|
|
103
|
+
"no-self-compare": ON,
|
|
104
|
+
"no-setter-return": ON,
|
|
105
|
+
"no-sparse-arrays": ON,
|
|
106
|
+
"no-template-curly-in-string": ON,
|
|
107
|
+
"no-this-before-super": ON,
|
|
108
|
+
"no-undef": ON,
|
|
109
|
+
"no-unexpected-multiline": ON,
|
|
110
|
+
"no-unmodified-loop-condition": ON,
|
|
111
|
+
"no-unreachable": ON,
|
|
112
112
|
"no-unreachable-loop": [
|
|
113
|
-
|
|
113
|
+
ON,
|
|
114
114
|
{
|
|
115
115
|
ignore: [],
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
|
-
"no-unsafe-finally":
|
|
118
|
+
"no-unsafe-finally": ON,
|
|
119
119
|
"no-unsafe-negation": [
|
|
120
|
-
|
|
120
|
+
ON,
|
|
121
121
|
{
|
|
122
122
|
enforceForOrderingRelations: true,
|
|
123
123
|
},
|
|
124
124
|
],
|
|
125
125
|
"no-unsafe-optional-chaining": [
|
|
126
|
-
|
|
126
|
+
ON,
|
|
127
127
|
{
|
|
128
128
|
disallowArithmeticOperators: true,
|
|
129
129
|
},
|
|
130
130
|
],
|
|
131
|
-
"no-unused-private-class-members":
|
|
131
|
+
"no-unused-private-class-members": ON,
|
|
132
132
|
"no-unused-vars": [
|
|
133
|
-
|
|
133
|
+
ON,
|
|
134
134
|
{
|
|
135
135
|
vars: all,
|
|
136
136
|
args: all,
|
|
@@ -141,7 +141,7 @@ export const Enable = {
|
|
|
141
141
|
},
|
|
142
142
|
],
|
|
143
143
|
"no-use-before-define": [
|
|
144
|
-
|
|
144
|
+
ON,
|
|
145
145
|
{
|
|
146
146
|
functions: true,
|
|
147
147
|
classes: true,
|
|
@@ -149,29 +149,29 @@ export const Enable = {
|
|
|
149
149
|
allowNamedExports: false,
|
|
150
150
|
},
|
|
151
151
|
],
|
|
152
|
-
"no-useless-assignment":
|
|
153
|
-
"no-useless-backreference":
|
|
152
|
+
"no-useless-assignment": ON,
|
|
153
|
+
"no-useless-backreference": ON,
|
|
154
154
|
"require-atomic-updates": [
|
|
155
|
-
|
|
155
|
+
ON,
|
|
156
156
|
{
|
|
157
157
|
allowProperties: false,
|
|
158
158
|
},
|
|
159
159
|
],
|
|
160
160
|
"use-isnan": [
|
|
161
|
-
|
|
161
|
+
ON,
|
|
162
162
|
{
|
|
163
163
|
enforceForSwitchCase: true,
|
|
164
164
|
enforceForIndexOf: true,
|
|
165
165
|
},
|
|
166
166
|
],
|
|
167
167
|
"valid-typeof": [
|
|
168
|
-
|
|
168
|
+
ON,
|
|
169
169
|
{
|
|
170
170
|
requireStringLiterals: true,
|
|
171
171
|
},
|
|
172
172
|
],
|
|
173
173
|
"accessor-pairs": [
|
|
174
|
-
|
|
174
|
+
ON,
|
|
175
175
|
{
|
|
176
176
|
setWithoutGet: true,
|
|
177
177
|
getWithoutSet: false,
|
|
@@ -179,39 +179,39 @@ export const Enable = {
|
|
|
179
179
|
},
|
|
180
180
|
],
|
|
181
181
|
"arrow-body-style": [
|
|
182
|
-
|
|
182
|
+
ON,
|
|
183
183
|
as_needed,
|
|
184
184
|
{
|
|
185
185
|
requireReturnForObjectLiteral: true,
|
|
186
186
|
},
|
|
187
187
|
],
|
|
188
|
-
"block-scoped-var":
|
|
188
|
+
"block-scoped-var": ON,
|
|
189
189
|
camelcase: OFF,
|
|
190
190
|
"capitalized-comments": OFF,
|
|
191
191
|
"class-methods-use-this": OFF,
|
|
192
192
|
complexity: OFF,
|
|
193
193
|
"consistent-return": [
|
|
194
|
-
|
|
194
|
+
ON,
|
|
195
195
|
{
|
|
196
196
|
treatUndefinedAsUnspecified: false,
|
|
197
197
|
},
|
|
198
198
|
],
|
|
199
|
-
"consistent-this":
|
|
199
|
+
"consistent-this": ON,
|
|
200
200
|
curly: [
|
|
201
|
-
|
|
201
|
+
ON,
|
|
202
202
|
multi,
|
|
203
203
|
],
|
|
204
204
|
"default-case": OFF,
|
|
205
|
-
"default-case-last":
|
|
206
|
-
"default-param-last":
|
|
205
|
+
"default-case-last": ON,
|
|
206
|
+
"default-param-last": ON,
|
|
207
207
|
"dot-notation": [
|
|
208
|
-
|
|
208
|
+
ON,
|
|
209
209
|
{
|
|
210
210
|
allowKeywords: true,
|
|
211
211
|
},
|
|
212
212
|
],
|
|
213
213
|
eqeqeq: [
|
|
214
|
-
|
|
214
|
+
ON,
|
|
215
215
|
always,
|
|
216
216
|
],
|
|
217
217
|
"func-name-matching": OFF,
|
|
@@ -223,11 +223,11 @@ export const Enable = {
|
|
|
223
223
|
"id-length": OFF,
|
|
224
224
|
"id-match": OFF,
|
|
225
225
|
"init-declarations": [
|
|
226
|
-
|
|
226
|
+
ON,
|
|
227
227
|
always,
|
|
228
228
|
],
|
|
229
229
|
"logical-assignment-operators": [
|
|
230
|
-
|
|
230
|
+
ON,
|
|
231
231
|
always,
|
|
232
232
|
{
|
|
233
233
|
enforceForIfStatements: true,
|
|
@@ -242,64 +242,64 @@ export const Enable = {
|
|
|
242
242
|
"max-statements": OFF,
|
|
243
243
|
"multiline-comment-style": OFF,
|
|
244
244
|
"new-cap": OFF,
|
|
245
|
-
"no-alert":
|
|
246
|
-
"no-array-constructor":
|
|
245
|
+
"no-alert": ON,
|
|
246
|
+
"no-array-constructor": ON,
|
|
247
247
|
"no-bitwise": [
|
|
248
|
-
|
|
248
|
+
ON,
|
|
249
249
|
{
|
|
250
250
|
allow: [],
|
|
251
251
|
int32Hint: true,
|
|
252
252
|
},
|
|
253
253
|
],
|
|
254
|
-
"no-caller":
|
|
255
|
-
"no-case-declarations":
|
|
254
|
+
"no-caller": ON,
|
|
255
|
+
"no-case-declarations": ON,
|
|
256
256
|
"no-console": OFF,
|
|
257
|
-
"no-continue":
|
|
258
|
-
"no-delete-var":
|
|
259
|
-
"no-div-regex":
|
|
257
|
+
"no-continue": ON,
|
|
258
|
+
"no-delete-var": ON,
|
|
259
|
+
"no-div-regex": ON,
|
|
260
260
|
"no-else-return": OFF,
|
|
261
261
|
"no-empty": [
|
|
262
|
-
|
|
262
|
+
ON,
|
|
263
263
|
{
|
|
264
264
|
allowEmptyCatch: false,
|
|
265
265
|
},
|
|
266
266
|
],
|
|
267
267
|
"no-empty-function": [
|
|
268
|
-
|
|
268
|
+
ON,
|
|
269
269
|
{
|
|
270
270
|
allow: ["constructors"],
|
|
271
271
|
},
|
|
272
272
|
],
|
|
273
|
-
"no-empty-static-block":
|
|
274
|
-
"no-eq-null":
|
|
273
|
+
"no-empty-static-block": ON,
|
|
274
|
+
"no-eq-null": ON,
|
|
275
275
|
"no-eval": [
|
|
276
|
-
|
|
276
|
+
ON,
|
|
277
277
|
{
|
|
278
278
|
allowIndirect: false,
|
|
279
279
|
},
|
|
280
280
|
],
|
|
281
281
|
"no-extend-native": [
|
|
282
|
-
|
|
282
|
+
ON,
|
|
283
283
|
{
|
|
284
284
|
exceptions: [],
|
|
285
285
|
},
|
|
286
286
|
],
|
|
287
|
-
"no-extra-bind":
|
|
287
|
+
"no-extra-bind": ON,
|
|
288
288
|
"no-extra-boolean-cast": [
|
|
289
|
-
|
|
289
|
+
ON,
|
|
290
290
|
{
|
|
291
291
|
enforceForLogicalOperands: true,
|
|
292
292
|
},
|
|
293
293
|
],
|
|
294
|
-
"no-extra-label":
|
|
294
|
+
"no-extra-label": ON,
|
|
295
295
|
"no-global-assign": [
|
|
296
|
-
|
|
296
|
+
ON,
|
|
297
297
|
{
|
|
298
298
|
exceptions: [],
|
|
299
299
|
},
|
|
300
300
|
],
|
|
301
301
|
"no-implicit-coercion": [
|
|
302
|
-
|
|
302
|
+
ON,
|
|
303
303
|
{
|
|
304
304
|
"boolean": true,
|
|
305
305
|
number: true,
|
|
@@ -309,36 +309,36 @@ export const Enable = {
|
|
|
309
309
|
},
|
|
310
310
|
],
|
|
311
311
|
"no-implicit-globals": OFF,
|
|
312
|
-
"no-implied-eval":
|
|
312
|
+
"no-implied-eval": ON,
|
|
313
313
|
"no-inline-comments": OFF,
|
|
314
314
|
"no-invalid-this": [
|
|
315
|
-
|
|
315
|
+
ON,
|
|
316
316
|
{ capIsConstructor: false },
|
|
317
317
|
],
|
|
318
|
-
"no-iterator":
|
|
319
|
-
"no-label-var":
|
|
320
|
-
"no-lone-blocks":
|
|
318
|
+
"no-iterator": ON,
|
|
319
|
+
"no-label-var": ON,
|
|
320
|
+
"no-lone-blocks": ON,
|
|
321
321
|
"no-lonely-if": OFF,
|
|
322
|
-
"no-loop-func":
|
|
322
|
+
"no-loop-func": ON,
|
|
323
323
|
"no-magic-numbers": OFF,
|
|
324
324
|
"no-multi-assign": [
|
|
325
|
-
|
|
325
|
+
ON,
|
|
326
326
|
{
|
|
327
327
|
ignoreNonDeclaration: false,
|
|
328
328
|
},
|
|
329
329
|
],
|
|
330
|
-
"no-multi-str":
|
|
330
|
+
"no-multi-str": ON,
|
|
331
331
|
"no-negated-condition": OFF,
|
|
332
332
|
"no-nested-ternary": OFF,
|
|
333
|
-
"no-new":
|
|
334
|
-
"no-new-func":
|
|
335
|
-
"no-new-wrappers":
|
|
336
|
-
"no-nonoctal-decimal-escape":
|
|
337
|
-
"no-object-constructor":
|
|
338
|
-
"no-octal":
|
|
339
|
-
"no-octal-escape":
|
|
333
|
+
"no-new": ON,
|
|
334
|
+
"no-new-func": ON,
|
|
335
|
+
"no-new-wrappers": ON,
|
|
336
|
+
"no-nonoctal-decimal-escape": ON,
|
|
337
|
+
"no-object-constructor": ON,
|
|
338
|
+
"no-octal": ON,
|
|
339
|
+
"no-octal-escape": ON,
|
|
340
340
|
"no-param-reassign": [
|
|
341
|
-
|
|
341
|
+
ON,
|
|
342
342
|
{
|
|
343
343
|
props: true,
|
|
344
344
|
ignorePropertyModificationsFor: [],
|
|
@@ -346,14 +346,14 @@ export const Enable = {
|
|
|
346
346
|
},
|
|
347
347
|
],
|
|
348
348
|
"no-plusplus": [
|
|
349
|
-
|
|
349
|
+
ON,
|
|
350
350
|
{
|
|
351
351
|
allowForLoopAfterthoughts: true,
|
|
352
352
|
},
|
|
353
353
|
],
|
|
354
|
-
"no-proto":
|
|
354
|
+
"no-proto": ON,
|
|
355
355
|
"no-redeclare": [
|
|
356
|
-
|
|
356
|
+
ON,
|
|
357
357
|
{ builtinGlobals: true },
|
|
358
358
|
],
|
|
359
359
|
"no-regex-spaces": OFF,
|
|
@@ -363,28 +363,28 @@ export const Enable = {
|
|
|
363
363
|
"no-restricted-properties": OFF,
|
|
364
364
|
"no-restricted-syntax": OFF,
|
|
365
365
|
"no-return-assign": OFF,
|
|
366
|
-
"no-script-url":
|
|
366
|
+
"no-script-url": ON,
|
|
367
367
|
"no-sequences": [
|
|
368
|
-
|
|
368
|
+
ON,
|
|
369
369
|
{
|
|
370
370
|
allowInParentheses: true,
|
|
371
371
|
},
|
|
372
372
|
],
|
|
373
373
|
"no-shadow": OFF,
|
|
374
|
-
"no-shadow-restricted-names":
|
|
374
|
+
"no-shadow-restricted-names": ON,
|
|
375
375
|
"no-ternary": OFF,
|
|
376
|
-
"no-throw-literal":
|
|
377
|
-
"no-undef-init":
|
|
376
|
+
"no-throw-literal": ON,
|
|
377
|
+
"no-undef-init": ON,
|
|
378
378
|
"no-undefined": OFF,
|
|
379
379
|
"no-underscore-dangle": OFF,
|
|
380
380
|
"no-unneeded-ternary": [
|
|
381
|
-
|
|
381
|
+
ON,
|
|
382
382
|
{
|
|
383
383
|
defaultAssignment: false,
|
|
384
384
|
},
|
|
385
385
|
],
|
|
386
386
|
"no-unused-expressions": [
|
|
387
|
-
|
|
387
|
+
ON,
|
|
388
388
|
{
|
|
389
389
|
allowShortCircuit: true,
|
|
390
390
|
allowTernary: true,
|
|
@@ -392,38 +392,38 @@ export const Enable = {
|
|
|
392
392
|
enforceForJSX: false,
|
|
393
393
|
},
|
|
394
394
|
],
|
|
395
|
-
"no-unused-labels":
|
|
396
|
-
"no-useless-call":
|
|
397
|
-
"no-useless-catch":
|
|
395
|
+
"no-unused-labels": ON,
|
|
396
|
+
"no-useless-call": ON,
|
|
397
|
+
"no-useless-catch": ON,
|
|
398
398
|
"no-useless-computed-key": [
|
|
399
|
-
|
|
399
|
+
ON,
|
|
400
400
|
{
|
|
401
401
|
enforceForClassMembers: true,
|
|
402
402
|
},
|
|
403
403
|
],
|
|
404
|
-
"no-useless-concat":
|
|
405
|
-
"no-useless-constructor":
|
|
406
|
-
"no-useless-escape":
|
|
404
|
+
"no-useless-concat": ON,
|
|
405
|
+
"no-useless-constructor": ON,
|
|
406
|
+
"no-useless-escape": ON,
|
|
407
407
|
"no-useless-rename": [
|
|
408
|
-
|
|
408
|
+
ON,
|
|
409
409
|
{
|
|
410
410
|
ignoreImport: false,
|
|
411
411
|
ignoreExport: false,
|
|
412
412
|
ignoreDestructuring: false,
|
|
413
413
|
},
|
|
414
414
|
],
|
|
415
|
-
"no-useless-return":
|
|
416
|
-
"no-var":
|
|
415
|
+
"no-useless-return": ON,
|
|
416
|
+
"no-var": ON,
|
|
417
417
|
"no-void": [
|
|
418
|
-
|
|
418
|
+
ON,
|
|
419
419
|
{
|
|
420
420
|
allowAsStatement: true,
|
|
421
421
|
},
|
|
422
422
|
],
|
|
423
423
|
"no-warning-comments": OFF,
|
|
424
|
-
"no-with":
|
|
424
|
+
"no-with": ON,
|
|
425
425
|
"object-shorthand": [
|
|
426
|
-
|
|
426
|
+
ON,
|
|
427
427
|
always,
|
|
428
428
|
{
|
|
429
429
|
avoidQuotes: true,
|
|
@@ -432,7 +432,7 @@ export const Enable = {
|
|
|
432
432
|
},
|
|
433
433
|
],
|
|
434
434
|
"one-var": [
|
|
435
|
-
|
|
435
|
+
ON,
|
|
436
436
|
{
|
|
437
437
|
"var": consecutive,
|
|
438
438
|
let: consecutive,
|
|
@@ -441,25 +441,25 @@ export const Enable = {
|
|
|
441
441
|
},
|
|
442
442
|
],
|
|
443
443
|
"operator-assignment": [
|
|
444
|
-
|
|
444
|
+
ON,
|
|
445
445
|
always,
|
|
446
446
|
],
|
|
447
447
|
"prefer-arrow-callback": [
|
|
448
|
-
|
|
448
|
+
ON,
|
|
449
449
|
{
|
|
450
450
|
allowNamedFunctions: false,
|
|
451
451
|
allowUnboundThis: true,
|
|
452
452
|
},
|
|
453
453
|
],
|
|
454
454
|
"prefer-const": [
|
|
455
|
-
|
|
455
|
+
ON,
|
|
456
456
|
{
|
|
457
457
|
destructuring: all,
|
|
458
458
|
ignoreReadBeforeAssign: false,
|
|
459
459
|
},
|
|
460
460
|
],
|
|
461
461
|
"prefer-destructuring": [
|
|
462
|
-
|
|
462
|
+
ON,
|
|
463
463
|
{
|
|
464
464
|
VariableDeclarator: {
|
|
465
465
|
array: true,
|
|
@@ -472,41 +472,41 @@ export const Enable = {
|
|
|
472
472
|
},
|
|
473
473
|
{ enforceForRenamedProperties: true },
|
|
474
474
|
],
|
|
475
|
-
"prefer-exponentiation-operator":
|
|
475
|
+
"prefer-exponentiation-operator": ON,
|
|
476
476
|
"prefer-named-capture-group": OFF,
|
|
477
|
-
"prefer-numeric-literals":
|
|
478
|
-
"prefer-object-has-own":
|
|
479
|
-
"prefer-object-spread":
|
|
477
|
+
"prefer-numeric-literals": ON,
|
|
478
|
+
"prefer-object-has-own": ON,
|
|
479
|
+
"prefer-object-spread": ON,
|
|
480
480
|
"prefer-promise-reject-errors": [
|
|
481
|
-
|
|
481
|
+
ON,
|
|
482
482
|
{
|
|
483
483
|
allowEmptyReject: false,
|
|
484
484
|
},
|
|
485
485
|
],
|
|
486
486
|
"prefer-regex-literals": [
|
|
487
|
-
|
|
487
|
+
ON,
|
|
488
488
|
{
|
|
489
489
|
disallowRedundantWrapping: true,
|
|
490
490
|
},
|
|
491
491
|
],
|
|
492
|
-
"prefer-rest-params":
|
|
493
|
-
"prefer-spread":
|
|
494
|
-
"prefer-template":
|
|
492
|
+
"prefer-rest-params": ON,
|
|
493
|
+
"prefer-spread": ON,
|
|
494
|
+
"prefer-template": ON,
|
|
495
495
|
radix: [
|
|
496
|
-
|
|
496
|
+
ON,
|
|
497
497
|
as_needed,
|
|
498
498
|
],
|
|
499
|
-
"require-await":
|
|
500
|
-
"require-unicode-regexp":
|
|
501
|
-
"require-yield":
|
|
499
|
+
"require-await": ON,
|
|
500
|
+
"require-unicode-regexp": ON,
|
|
501
|
+
"require-yield": ON,
|
|
502
502
|
"sort-imports": OFF,
|
|
503
503
|
"sort-keys": OFF,
|
|
504
504
|
"sort-vars": OFF,
|
|
505
505
|
strict: OFF,
|
|
506
506
|
"symbol-description": OFF,
|
|
507
|
-
"vars-on-top":
|
|
507
|
+
"vars-on-top": ON,
|
|
508
508
|
yoda: [
|
|
509
|
-
|
|
509
|
+
ON,
|
|
510
510
|
never,
|
|
511
511
|
{
|
|
512
512
|
exceptRange: false,
|