@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.
Files changed (63) hide show
  1. package/.markdownlint.jsonc +1 -1
  2. package/LICENSE +0 -1
  3. package/dist/rules/index.d.ts +1 -0
  4. package/dist/rules/index.d.ts.map +1 -1
  5. package/dist/rules/scopes/css/enable.js +7 -7
  6. package/dist/rules/scopes/css/enable.js.map +1 -1
  7. package/dist/rules/scopes/html/enable.js +35 -35
  8. package/dist/rules/scopes/html/enable.js.map +1 -1
  9. package/dist/rules/scopes/js/enable-stylistic.d.ts +1 -0
  10. package/dist/rules/scopes/js/enable-stylistic.d.ts.map +1 -1
  11. package/dist/rules/scopes/js/enable-stylistic.js +71 -67
  12. package/dist/rules/scopes/js/enable-stylistic.js.map +1 -1
  13. package/dist/rules/scopes/js/enable.js +148 -148
  14. package/dist/rules/scopes/js/enable.js.map +1 -1
  15. package/dist/rules/scopes/js/index.d.ts +1 -0
  16. package/dist/rules/scopes/js/index.d.ts.map +1 -1
  17. package/dist/rules/scopes/json/enable-ext.js +21 -21
  18. package/dist/rules/scopes/json/enable-ext.js.map +1 -1
  19. package/dist/rules/scopes/json/enable.js +20 -20
  20. package/dist/rules/scopes/json/enable.js.map +1 -1
  21. package/dist/rules/scopes/jsonc/override.js +2 -2
  22. package/dist/rules/scopes/jsonc/override.js.map +1 -1
  23. package/dist/rules/scopes/mocha/enable-chai-expect.js +4 -4
  24. package/dist/rules/scopes/mocha/enable-chai-expect.js.map +1 -1
  25. package/dist/rules/scopes/mocha/enable-chai.js +2 -2
  26. package/dist/rules/scopes/mocha/enable-chai.js.map +1 -1
  27. package/dist/rules/scopes/mocha/enable.js +18 -18
  28. package/dist/rules/scopes/mocha/enable.js.map +1 -1
  29. package/dist/rules/scopes/svelte/enable-ext.js +3 -3
  30. package/dist/rules/scopes/svelte/enable-ext.js.map +1 -1
  31. package/dist/rules/scopes/svelte/enable.js +63 -63
  32. package/dist/rules/scopes/svelte/enable.js.map +1 -1
  33. package/dist/rules/scopes/ts/enable-ext.js +16 -16
  34. package/dist/rules/scopes/ts/enable-ext.js.map +1 -1
  35. package/dist/rules/scopes/ts/enable.js +89 -89
  36. package/dist/rules/scopes/ts/enable.js.map +1 -1
  37. package/dist/rules/scopes/yml/enable-ext.js +9 -9
  38. package/dist/rules/scopes/yml/enable-ext.js.map +1 -1
  39. package/dist/rules/scopes/yml/enable.js +17 -17
  40. package/dist/rules/scopes/yml/enable.js.map +1 -1
  41. package/dist/rules/strings/state.d.ts +1 -1
  42. package/dist/rules/strings/state.d.ts.map +1 -1
  43. package/dist/rules/strings/state.js +1 -1
  44. package/dist/rules/strings/state.js.map +1 -1
  45. package/package.json +2 -2
  46. package/src/rules/scopes/css/enable.ts +7 -7
  47. package/src/rules/scopes/html/enable.ts +35 -35
  48. package/src/rules/scopes/js/enable-stylistic.ts +71 -67
  49. package/src/rules/scopes/js/enable.ts +148 -148
  50. package/src/rules/scopes/json/enable-ext.ts +21 -21
  51. package/src/rules/scopes/json/enable.ts +20 -20
  52. package/src/rules/scopes/jsonc/override.ts +2 -2
  53. package/src/rules/scopes/mocha/enable-chai-expect.ts +4 -4
  54. package/src/rules/scopes/mocha/enable-chai.ts +2 -2
  55. package/src/rules/scopes/mocha/enable.ts +18 -18
  56. package/src/rules/scopes/svelte/enable-ext.ts +3 -3
  57. package/src/rules/scopes/svelte/enable.ts +63 -63
  58. package/src/rules/scopes/ts/enable-ext.ts +16 -16
  59. package/src/rules/scopes/ts/enable.ts +89 -89
  60. package/src/rules/scopes/yml/enable-ext.ts +9 -9
  61. package/src/rules/scopes/yml/enable.ts +17 -17
  62. package/src/rules/strings/state.ts +1 -1
  63. package/tsconfig.json +22 -35
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ID,
3
- ERROR,
3
+ ON,
4
4
  OFF,
5
5
  never,
6
6
  always,
@@ -18,78 +18,78 @@ export const Enable = {
18
18
  // #region PROBLEMS
19
19
  // DOC: https://eslint.org/docs/latest/rules/#possible-problems
20
20
  "array-callback-return": [
21
- ERROR,
21
+ ON,
22
22
  {
23
23
  allowImplicit: false,
24
24
  checkForEach: true,
25
25
  allowVoid: true,
26
26
  },
27
27
  ],
28
- "constructor-super": ERROR /* tsc */,
29
- "for-direction": ERROR,
28
+ "constructor-super": ON /* tsc */,
29
+ "for-direction": ON,
30
30
  "getter-return": [
31
- ERROR,
31
+ ON,
32
32
  {
33
33
  allowImplicit: false,
34
34
  },
35
35
  ] /* tsc */,
36
- "no-async-promise-executor": ERROR,
37
- "no-await-in-loop": ERROR,
38
- "no-class-assign": ERROR,
39
- "no-compare-neg-zero": ERROR,
36
+ "no-async-promise-executor": ON,
37
+ "no-await-in-loop": ON,
38
+ "no-class-assign": ON,
39
+ "no-compare-neg-zero": ON,
40
40
  "no-cond-assign": [
41
- ERROR,
41
+ ON,
42
42
  always,
43
43
  ],
44
- "no-const-assign": ERROR /* tsc */,
45
- "no-constant-binary-expression": ERROR,
44
+ "no-const-assign": ON /* tsc */,
45
+ "no-constant-binary-expression": ON,
46
46
  "no-constant-condition": [
47
- ERROR,
47
+ ON,
48
48
  {
49
49
  checkLoops: true,
50
50
  },
51
51
  ] /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */,
52
- "no-constructor-return": ERROR,
53
- "no-control-regex": ERROR,
54
- "no-debugger": ERROR,
55
- "no-dupe-args": ERROR /* tsc */,
56
- "no-dupe-class-members": ERROR /* tsc -- TSLint:off: tsc */,
57
- "no-dupe-else-if": ERROR,
58
- "no-dupe-keys": ERROR /* tsc */,
59
- "no-duplicate-case": ERROR,
52
+ "no-constructor-return": ON,
53
+ "no-control-regex": ON,
54
+ "no-debugger": ON,
55
+ "no-dupe-args": ON /* tsc */,
56
+ "no-dupe-class-members": ON /* tsc -- TSLint:off: tsc */,
57
+ "no-dupe-else-if": ON,
58
+ "no-dupe-keys": ON /* tsc */,
59
+ "no-duplicate-case": ON,
60
60
  "no-duplicate-imports": OFF /* BUG: breaks separation of TS type-only imports from value imports */,
61
- "no-empty-character-class": ERROR,
61
+ "no-empty-character-class": ON,
62
62
  "no-empty-pattern": [
63
- ERROR,
63
+ ON,
64
64
  {
65
65
  allowObjectPatternsAsParameters: false,
66
66
  },
67
67
  ],
68
- "no-ex-assign": ERROR,
68
+ "no-ex-assign": ON,
69
69
  "no-fallthrough": [
70
- ERROR,
70
+ ON,
71
71
  {
72
72
  allowEmptyCase: true,
73
73
  reportUnusedFallthroughComment: true,
74
74
  },
75
75
  ],
76
- "no-func-assign": ERROR /* tsc */,
77
- "no-import-assign": ERROR /* tsc (except Object.assign()) */,
76
+ "no-func-assign": ON /* tsc */,
77
+ "no-import-assign": ON /* tsc (except Object.assign()) */,
78
78
  "no-inner-declarations": [
79
- ERROR,
79
+ ON,
80
80
  both,
81
81
  {
82
82
  blockScopedFunctions: allow,
83
83
  },
84
84
  ],
85
85
  "no-invalid-regexp": [
86
- ERROR,
86
+ ON,
87
87
  {
88
88
  allowConstructorFlags: [],
89
89
  },
90
90
  ],
91
91
  "no-irregular-whitespace": [
92
- ERROR,
92
+ ON,
93
93
  {
94
94
  skipStrings: true,
95
95
  skipComments: true,
@@ -98,54 +98,54 @@ export const Enable = {
98
98
  skipJSXText: true,
99
99
  },
100
100
  ],
101
- "no-loss-of-precision": ERROR /* TSLint */,
102
- "no-misleading-character-class": ERROR,
103
- "no-new-native-nonconstructor": ERROR,
104
- "no-obj-calls": ERROR /* tsc */,
101
+ "no-loss-of-precision": ON /* TSLint */,
102
+ "no-misleading-character-class": ON,
103
+ "no-new-native-nonconstructor": ON,
104
+ "no-obj-calls": ON /* tsc */,
105
105
  "no-promise-executor-return": [
106
- ERROR,
106
+ ON,
107
107
  {
108
108
  allowVoid: true,
109
109
  },
110
110
  ],
111
- "no-prototype-builtins": ERROR,
111
+ "no-prototype-builtins": ON,
112
112
  "no-self-assign": [
113
- ERROR,
113
+ ON,
114
114
  {
115
115
  props: true,
116
116
  },
117
117
  ],
118
- "no-self-compare": ERROR,
119
- "no-setter-return": ERROR /* tsc */,
120
- "no-sparse-arrays": ERROR,
121
- "no-template-curly-in-string": ERROR,
122
- "no-this-before-super": ERROR /* tsc */,
123
- "no-undef": ERROR /* tsc */,
124
- "no-unexpected-multiline": ERROR,
125
- "no-unmodified-loop-condition": ERROR,
126
- "no-unreachable": ERROR /* tsc */,
118
+ "no-self-compare": ON,
119
+ "no-setter-return": ON /* tsc */,
120
+ "no-sparse-arrays": ON,
121
+ "no-template-curly-in-string": ON,
122
+ "no-this-before-super": ON /* tsc */,
123
+ "no-undef": ON /* tsc */,
124
+ "no-unexpected-multiline": ON,
125
+ "no-unmodified-loop-condition": ON,
126
+ "no-unreachable": ON /* tsc */,
127
127
  "no-unreachable-loop": [
128
- ERROR,
128
+ ON,
129
129
  {
130
130
  ignore: [] /* WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement */,
131
131
  },
132
132
  ],
133
- "no-unsafe-finally": ERROR,
133
+ "no-unsafe-finally": ON,
134
134
  "no-unsafe-negation": [
135
- ERROR,
135
+ ON,
136
136
  {
137
137
  enforceForOrderingRelations: true,
138
138
  },
139
139
  ] /* tsc */,
140
140
  "no-unsafe-optional-chaining": [
141
- ERROR,
141
+ ON,
142
142
  {
143
143
  disallowArithmeticOperators: true,
144
144
  },
145
145
  ],
146
- "no-unused-private-class-members": ERROR,
146
+ "no-unused-private-class-members": ON,
147
147
  "no-unused-vars": [
148
- ERROR,
148
+ ON,
149
149
  {
150
150
  vars: all,
151
151
  args: all,
@@ -156,7 +156,7 @@ export const Enable = {
156
156
  },
157
157
  ] /* TSLint */,
158
158
  "no-use-before-define": [
159
- ERROR,
159
+ ON,
160
160
  {
161
161
  functions: true,
162
162
  classes: true,
@@ -164,23 +164,23 @@ export const Enable = {
164
164
  allowNamedExports: false,
165
165
  },
166
166
  ] /* TSLint */,
167
- "no-useless-assignment": ERROR,
168
- "no-useless-backreference": ERROR,
167
+ "no-useless-assignment": ON,
168
+ "no-useless-backreference": ON,
169
169
  "require-atomic-updates": [
170
- ERROR,
170
+ ON,
171
171
  {
172
172
  allowProperties: false,
173
173
  },
174
174
  ],
175
175
  "use-isnan": [
176
- ERROR,
176
+ ON,
177
177
  {
178
178
  enforceForSwitchCase: true,
179
179
  enforceForIndexOf: true,
180
180
  },
181
181
  ],
182
182
  "valid-typeof": [
183
- ERROR,
183
+ ON,
184
184
  {
185
185
  requireStringLiterals: true,
186
186
  },
@@ -191,7 +191,7 @@ export const Enable = {
191
191
  // #region SUGGESTIONS
192
192
  // [ https://eslint.org/docs/latest/rules/#suggestions ]
193
193
  "accessor-pairs": [
194
- ERROR,
194
+ ON,
195
195
  {
196
196
  setWithoutGet: true,
197
197
  getWithoutSet: false,
@@ -199,39 +199,39 @@ export const Enable = {
199
199
  },
200
200
  ],
201
201
  "arrow-body-style": [
202
- ERROR,
202
+ ON,
203
203
  as_needed,
204
204
  {
205
205
  requireReturnForObjectLiteral: true,
206
206
  },
207
207
  ],
208
- "block-scoped-var": ERROR,
208
+ "block-scoped-var": ON,
209
209
  camelcase: OFF /* preference */,
210
210
  "capitalized-comments": OFF /* preference */,
211
211
  "class-methods-use-this": OFF /* preference -- TSLint */,
212
212
  complexity: OFF /* preference */,
213
213
  "consistent-return": [
214
- ERROR,
214
+ ON,
215
215
  {
216
216
  treatUndefinedAsUnspecified: false,
217
217
  },
218
218
  ] /* tsc -- TSLint:off: tsconfig: noImplicitReturns */,
219
- "consistent-this": ERROR,
219
+ "consistent-this": ON,
220
220
  curly: [
221
- ERROR,
221
+ ON,
222
222
  multi,
223
223
  ],
224
224
  "default-case": OFF /* preference: don't care */,
225
- "default-case-last": ERROR,
226
- "default-param-last": ERROR /* TSLint */,
225
+ "default-case-last": ON,
226
+ "default-param-last": ON /* TSLint */,
227
227
  "dot-notation": [
228
- ERROR,
228
+ ON,
229
229
  {
230
230
  allowKeywords: true,
231
231
  },
232
232
  ] /* TSLint */,
233
233
  eqeqeq: [
234
- ERROR,
234
+ ON,
235
235
  always,
236
236
  ],
237
237
  "func-name-matching": OFF /* preference */,
@@ -243,11 +243,11 @@ export const Enable = {
243
243
  "id-length": OFF /* preference */,
244
244
  "id-match": OFF /* preference */,
245
245
  "init-declarations": [
246
- ERROR,
246
+ ON,
247
247
  always,
248
248
  ] /* TSLint */,
249
249
  "logical-assignment-operators": [
250
- ERROR,
250
+ ON,
251
251
  always,
252
252
  {
253
253
  enforceForIfStatements: true,
@@ -262,65 +262,65 @@ export const Enable = {
262
262
  "max-statements": OFF /* preference */,
263
263
  "multiline-comment-style": OFF /* preference */,
264
264
  "new-cap": OFF /* preference -- breaks Scriptable */,
265
- "no-alert": ERROR,
266
- "no-array-constructor": ERROR /* TSLint */,
265
+ "no-alert": ON,
266
+ "no-array-constructor": ON /* TSLint */,
267
267
  "no-bitwise": [
268
- ERROR,
268
+ ON,
269
269
  {
270
270
  allow: [],
271
271
  int32Hint: true,
272
272
  },
273
273
  ],
274
- "no-caller": ERROR,
275
- "no-case-declarations": ERROR,
274
+ "no-caller": ON,
275
+ "no-case-declarations": ON,
276
276
  "no-console": OFF /* preference -- breaks Node.js console applications and Scriptable, and otherwise unnecessarily hampers browser test code */,
277
- "no-continue": ERROR,
278
- "no-delete-var": ERROR,
279
- "no-div-regex": ERROR,
277
+ "no-continue": ON,
278
+ "no-delete-var": ON,
279
+ "no-div-regex": ON,
280
280
  "no-else-return": OFF /* preference */,
281
281
  "no-empty": [
282
- ERROR,
282
+ ON,
283
283
  {
284
284
  allowEmptyCatch: false,
285
285
  },
286
286
  ],
287
287
  "no-empty-function": [
288
- ERROR,
288
+ ON,
289
289
  {
290
290
  allow:
291
291
  ["constructors"] /** functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */,
292
292
  },
293
293
  ] /* TSLint */,
294
- "no-empty-static-block": ERROR,
295
- "no-eq-null": ERROR,
294
+ "no-empty-static-block": ON,
295
+ "no-eq-null": ON,
296
296
  "no-eval": [
297
- ERROR,
297
+ ON,
298
298
  {
299
299
  allowIndirect: false,
300
300
  },
301
301
  ],
302
302
  "no-extend-native": [
303
- ERROR,
303
+ ON,
304
304
  {
305
305
  exceptions: [],
306
306
  },
307
307
  ],
308
- "no-extra-bind": ERROR,
308
+ "no-extra-bind": ON,
309
309
  "no-extra-boolean-cast": [
310
- ERROR,
310
+ ON,
311
311
  {
312
312
  enforceForLogicalOperands: true,
313
313
  },
314
314
  ],
315
- "no-extra-label": ERROR,
315
+ "no-extra-label": ON,
316
316
  "no-global-assign": [
317
- ERROR,
317
+ ON,
318
318
  {
319
319
  exceptions: [],
320
320
  },
321
321
  ],
322
322
  "no-implicit-coercion": [
323
- ERROR,
323
+ ON,
324
324
  {
325
325
  "boolean": true,
326
326
  number: true,
@@ -330,36 +330,36 @@ export const Enable = {
330
330
  },
331
331
  ],
332
332
  "no-implicit-globals": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
333
- "no-implied-eval": ERROR /* TSLint */,
333
+ "no-implied-eval": ON /* TSLint */,
334
334
  "no-inline-comments": OFF /* preference */,
335
335
  "no-invalid-this": [
336
- ERROR,
336
+ ON,
337
337
  { capIsConstructor: false },
338
338
  ] /* TSLint:off: tsconfig: { strict, noImplicitThis } */,
339
- "no-iterator": ERROR,
340
- "no-label-var": ERROR,
341
- "no-lone-blocks": ERROR,
339
+ "no-iterator": ON,
340
+ "no-label-var": ON,
341
+ "no-lone-blocks": ON,
342
342
  "no-lonely-if": OFF /* preference */,
343
- "no-loop-func": ERROR /* TSLint */,
343
+ "no-loop-func": ON /* TSLint */,
344
344
  "no-magic-numbers": OFF /* preference - breaks TypeScript number literals, even with most liberal exceptions */,
345
345
  "no-multi-assign": [
346
- ERROR,
346
+ ON,
347
347
  {
348
348
  ignoreNonDeclaration: false,
349
349
  },
350
350
  ],
351
- "no-multi-str": ERROR,
351
+ "no-multi-str": ON,
352
352
  "no-negated-condition": OFF /* preference */,
353
353
  "no-nested-ternary": OFF /* preference */,
354
- "no-new": ERROR,
355
- "no-new-func": ERROR,
356
- "no-new-wrappers": ERROR,
357
- "no-nonoctal-decimal-escape": ERROR,
358
- "no-object-constructor": ERROR,
359
- "no-octal": ERROR,
360
- "no-octal-escape": ERROR,
354
+ "no-new": ON,
355
+ "no-new-func": ON,
356
+ "no-new-wrappers": ON,
357
+ "no-nonoctal-decimal-escape": ON,
358
+ "no-object-constructor": ON,
359
+ "no-octal": ON,
360
+ "no-octal-escape": ON,
361
361
  "no-param-reassign": [
362
- ERROR,
362
+ ON,
363
363
  {
364
364
  props: true,
365
365
  ignorePropertyModificationsFor: [],
@@ -367,14 +367,14 @@ export const Enable = {
367
367
  },
368
368
  ],
369
369
  "no-plusplus": [
370
- ERROR,
370
+ ON,
371
371
  {
372
372
  allowForLoopAfterthoughts: true,
373
373
  },
374
374
  ],
375
- "no-proto": ERROR,
375
+ "no-proto": ON,
376
376
  "no-redeclare": [
377
- ERROR,
377
+ ON,
378
378
  { builtinGlobals: true },
379
379
  ] /* tsc -- TSLint:off: tsc (let, const, -var) */,
380
380
  "no-regex-spaces": OFF /* preference */,
@@ -384,28 +384,28 @@ export const Enable = {
384
384
  "no-restricted-properties": OFF /* preference */,
385
385
  "no-restricted-syntax": OFF /* preference */,
386
386
  "no-return-assign": OFF /* "always" | "except-parens" (disallow assignments unless enclosed in parens) */,
387
- "no-script-url": ERROR,
387
+ "no-script-url": ON,
388
388
  "no-sequences": [
389
- ERROR,
389
+ ON,
390
390
  {
391
391
  allowInParentheses: true,
392
392
  },
393
393
  ],
394
394
  "no-shadow": OFF /* investigate -- TSLint:off: investigate */,
395
- "no-shadow-restricted-names": ERROR,
395
+ "no-shadow-restricted-names": ON,
396
396
  "no-ternary": OFF /* preference */,
397
- "no-throw-literal": ERROR /* TSLint */,
398
- "no-undef-init": ERROR,
397
+ "no-throw-literal": ON /* TSLint */,
398
+ "no-undef-init": ON,
399
399
  "no-undefined": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
400
400
  "no-underscore-dangle": OFF /* preference */,
401
401
  "no-unneeded-ternary": [
402
- ERROR,
402
+ ON,
403
403
  {
404
404
  defaultAssignment: false,
405
405
  },
406
406
  ],
407
407
  "no-unused-expressions": [
408
- ERROR,
408
+ ON,
409
409
  {
410
410
  allowShortCircuit: true,
411
411
  allowTernary: true,
@@ -413,39 +413,39 @@ export const Enable = {
413
413
  enforceForJSX: false,
414
414
  },
415
415
  ] /* TSLint */,
416
- "no-unused-labels": ERROR,
417
- "no-useless-call": ERROR,
418
- "no-useless-catch": ERROR,
416
+ "no-unused-labels": ON,
417
+ "no-useless-call": ON,
418
+ "no-useless-catch": ON,
419
419
  "no-useless-computed-key": [
420
- ERROR,
420
+ ON,
421
421
  {
422
422
  enforceForClassMembers: true,
423
423
  },
424
424
  ],
425
- "no-useless-concat": ERROR,
426
- "no-useless-constructor": ERROR /* TSLint */,
427
- "no-useless-escape": ERROR,
425
+ "no-useless-concat": ON,
426
+ "no-useless-constructor": ON /* TSLint */,
427
+ "no-useless-escape": ON,
428
428
  "no-useless-rename": [
429
- ERROR,
429
+ ON,
430
430
  {
431
431
  ignoreImport: false,
432
432
  ignoreExport: false,
433
433
  ignoreDestructuring: false,
434
434
  },
435
435
  ],
436
- "no-useless-return": ERROR,
437
- "no-var": ERROR,
436
+ "no-useless-return": ON,
437
+ "no-var": ON,
438
438
  "no-void": [
439
- ERROR,
439
+ ON,
440
440
  {
441
441
  allowAsStatement: true,
442
442
 
443
443
  },
444
444
  ],
445
445
  "no-warning-comments": OFF /* preference */,
446
- "no-with": ERROR,
446
+ "no-with": ON,
447
447
  "object-shorthand": [
448
- ERROR,
448
+ ON,
449
449
  always,
450
450
  {
451
451
  avoidQuotes: true,
@@ -454,7 +454,7 @@ export const Enable = {
454
454
  },
455
455
  ],
456
456
  "one-var": [
457
- ERROR,
457
+ ON,
458
458
  {
459
459
  "var": consecutive,
460
460
  let: consecutive,
@@ -463,25 +463,25 @@ export const Enable = {
463
463
  },
464
464
  ],
465
465
  "operator-assignment": [
466
- ERROR,
466
+ ON,
467
467
  always,
468
468
  ],
469
469
  "prefer-arrow-callback": [
470
- ERROR,
470
+ ON,
471
471
  {
472
472
  allowNamedFunctions: false,
473
473
  allowUnboundThis: true,
474
474
  },
475
475
  ],
476
476
  "prefer-const": [
477
- ERROR,
477
+ ON,
478
478
  {
479
479
  destructuring: all,
480
480
  ignoreReadBeforeAssign: false,
481
481
  },
482
482
  ],
483
483
  "prefer-destructuring": [
484
- ERROR,
484
+ ON,
485
485
  {
486
486
  VariableDeclarator: {
487
487
  array: true,
@@ -494,41 +494,41 @@ export const Enable = {
494
494
  },
495
495
  { enforceForRenamedProperties: true },
496
496
  ] /* TSLint */,
497
- "prefer-exponentiation-operator": ERROR,
497
+ "prefer-exponentiation-operator": ON,
498
498
  "prefer-named-capture-group": OFF,
499
- "prefer-numeric-literals": ERROR,
500
- "prefer-object-has-own": ERROR,
501
- "prefer-object-spread": ERROR,
499
+ "prefer-numeric-literals": ON,
500
+ "prefer-object-has-own": ON,
501
+ "prefer-object-spread": ON,
502
502
  "prefer-promise-reject-errors": [
503
- ERROR,
503
+ ON,
504
504
  {
505
505
  allowEmptyReject: false,
506
506
  },
507
507
  ],
508
508
  "prefer-regex-literals": [
509
- ERROR,
509
+ ON,
510
510
  {
511
511
  disallowRedundantWrapping: true,
512
512
  },
513
513
  ] /* TSLint */,
514
- "prefer-rest-params": ERROR,
515
- "prefer-spread": ERROR,
516
- "prefer-template": ERROR,
514
+ "prefer-rest-params": ON,
515
+ "prefer-spread": ON,
516
+ "prefer-template": ON,
517
517
  radix: [
518
- ERROR,
518
+ ON,
519
519
  as_needed,
520
520
  ],
521
- "require-await": ERROR /* TSLint */,
522
- "require-unicode-regexp": ERROR,
523
- "require-yield": ERROR,
521
+ "require-await": ON /* TSLint */,
522
+ "require-unicode-regexp": ON,
523
+ "require-yield": ON,
524
524
  "sort-imports": OFF /* preference */,
525
525
  "sort-keys": OFF /* preference */,
526
526
  "sort-vars": OFF /* preference */,
527
527
  strict: OFF /* preference */,
528
528
  "symbol-description": OFF /* preference */,
529
- "vars-on-top": ERROR,
529
+ "vars-on-top": ON,
530
530
  yoda: [
531
- ERROR,
531
+ ON,
532
532
  never,
533
533
  {
534
534
  exceptRange: false,