@eslinted/defaults 10.1.1 → 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 (60) hide show
  1. package/dist/rules/index.d.ts +1 -0
  2. package/dist/rules/index.d.ts.map +1 -1
  3. package/dist/rules/scopes/css/enable.js +7 -7
  4. package/dist/rules/scopes/css/enable.js.map +1 -1
  5. package/dist/rules/scopes/html/enable.js +35 -35
  6. package/dist/rules/scopes/html/enable.js.map +1 -1
  7. package/dist/rules/scopes/js/enable-stylistic.d.ts +1 -0
  8. package/dist/rules/scopes/js/enable-stylistic.d.ts.map +1 -1
  9. package/dist/rules/scopes/js/enable-stylistic.js +71 -67
  10. package/dist/rules/scopes/js/enable-stylistic.js.map +1 -1
  11. package/dist/rules/scopes/js/enable.js +148 -148
  12. package/dist/rules/scopes/js/enable.js.map +1 -1
  13. package/dist/rules/scopes/js/index.d.ts +1 -0
  14. package/dist/rules/scopes/js/index.d.ts.map +1 -1
  15. package/dist/rules/scopes/json/enable-ext.js +21 -21
  16. package/dist/rules/scopes/json/enable-ext.js.map +1 -1
  17. package/dist/rules/scopes/json/enable.js +20 -20
  18. package/dist/rules/scopes/json/enable.js.map +1 -1
  19. package/dist/rules/scopes/jsonc/override.js +2 -2
  20. package/dist/rules/scopes/jsonc/override.js.map +1 -1
  21. package/dist/rules/scopes/mocha/enable-chai-expect.js +4 -4
  22. package/dist/rules/scopes/mocha/enable-chai-expect.js.map +1 -1
  23. package/dist/rules/scopes/mocha/enable-chai.js +2 -2
  24. package/dist/rules/scopes/mocha/enable-chai.js.map +1 -1
  25. package/dist/rules/scopes/mocha/enable.js +18 -18
  26. package/dist/rules/scopes/mocha/enable.js.map +1 -1
  27. package/dist/rules/scopes/svelte/enable-ext.js +3 -3
  28. package/dist/rules/scopes/svelte/enable-ext.js.map +1 -1
  29. package/dist/rules/scopes/svelte/enable.js +63 -63
  30. package/dist/rules/scopes/svelte/enable.js.map +1 -1
  31. package/dist/rules/scopes/ts/enable-ext.js +16 -16
  32. package/dist/rules/scopes/ts/enable-ext.js.map +1 -1
  33. package/dist/rules/scopes/ts/enable.js +89 -89
  34. package/dist/rules/scopes/ts/enable.js.map +1 -1
  35. package/dist/rules/scopes/yml/enable-ext.js +9 -9
  36. package/dist/rules/scopes/yml/enable-ext.js.map +1 -1
  37. package/dist/rules/scopes/yml/enable.js +17 -17
  38. package/dist/rules/scopes/yml/enable.js.map +1 -1
  39. package/dist/rules/strings/state.d.ts +1 -1
  40. package/dist/rules/strings/state.d.ts.map +1 -1
  41. package/dist/rules/strings/state.js +1 -1
  42. package/dist/rules/strings/state.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/rules/scopes/css/enable.ts +7 -7
  45. package/src/rules/scopes/html/enable.ts +35 -35
  46. package/src/rules/scopes/js/enable-stylistic.ts +71 -67
  47. package/src/rules/scopes/js/enable.ts +148 -148
  48. package/src/rules/scopes/json/enable-ext.ts +21 -21
  49. package/src/rules/scopes/json/enable.ts +20 -20
  50. package/src/rules/scopes/jsonc/override.ts +2 -2
  51. package/src/rules/scopes/mocha/enable-chai-expect.ts +4 -4
  52. package/src/rules/scopes/mocha/enable-chai.ts +2 -2
  53. package/src/rules/scopes/mocha/enable.ts +18 -18
  54. package/src/rules/scopes/svelte/enable-ext.ts +3 -3
  55. package/src/rules/scopes/svelte/enable.ts +63 -63
  56. package/src/rules/scopes/ts/enable-ext.ts +16 -16
  57. package/src/rules/scopes/ts/enable.ts +89 -89
  58. package/src/rules/scopes/yml/enable-ext.ts +9 -9
  59. package/src/rules/scopes/yml/enable.ts +17 -17
  60. package/src/rules/strings/state.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ID,
3
- ERROR,
3
+ ON,
4
4
  OFF,
5
5
  always,
6
6
  all,
@@ -12,9 +12,9 @@ export const TsEnableExtension = {
12
12
  // DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
13
13
  "@typescript-eslint/class-methods-use-this": OFF /* preference -- eslint:off */,
14
14
  "@typescript-eslint/consistent-return": OFF /* tsconfig: noImplicitReturns */,
15
- "@typescript-eslint/default-param-last": ERROR,
15
+ "@typescript-eslint/default-param-last": ON,
16
16
  "@typescript-eslint/dot-notation": [
17
- ERROR,
17
+ ON,
18
18
  {
19
19
  allowKeywords: true,
20
20
 
@@ -25,14 +25,14 @@ export const TsEnableExtension = {
25
25
  },
26
26
  ],
27
27
  "@typescript-eslint/init-declarations": [
28
- ERROR,
28
+ ON,
29
29
  always,
30
30
  ],
31
31
  "@typescript-eslint/max-params": OFF /* preference */,
32
- "@typescript-eslint/no-array-constructor": ERROR,
32
+ "@typescript-eslint/no-array-constructor": ON,
33
33
  "@typescript-eslint/no-dupe-class-members": OFF /* tsc */,
34
34
  "@typescript-eslint/no-empty-function": [
35
- ERROR,
35
+ ON,
36
36
  {
37
37
  allow: [
38
38
  "constructors",
@@ -42,15 +42,15 @@ export const TsEnableExtension = {
42
42
  ],
43
43
  }, /* functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */
44
44
  ],
45
- "@typescript-eslint/no-implied-eval": ERROR,
45
+ "@typescript-eslint/no-implied-eval": ON,
46
46
  "@typescript-eslint/no-invalid-this": OFF /* tsconfig: { strict, noImplicitThis } */,
47
- "@typescript-eslint/no-loop-func": ERROR,
47
+ "@typescript-eslint/no-loop-func": ON,
48
48
  "@typescript-eslint/no-magic-numbers": OFF,
49
49
  "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
50
50
  "@typescript-eslint/no-restricted-imports": OFF /* preference */,
51
51
  "@typescript-eslint/no-shadow": OFF /* investigate */,
52
52
  "@typescript-eslint/no-unused-expressions": [
53
- ERROR,
53
+ ON,
54
54
  {
55
55
  allowShortCircuit: true,
56
56
  allowTernary: true,
@@ -59,7 +59,7 @@ export const TsEnableExtension = {
59
59
  },
60
60
  ],
61
61
  "@typescript-eslint/no-unused-vars": [
62
- ERROR,
62
+ ON,
63
63
  {
64
64
  vars: all,
65
65
  args: all,
@@ -70,7 +70,7 @@ export const TsEnableExtension = {
70
70
  },
71
71
  ],
72
72
  "@typescript-eslint/no-use-before-define": [
73
- ERROR,
73
+ ON,
74
74
  {
75
75
  functions: true,
76
76
  classes: true,
@@ -81,16 +81,16 @@ export const TsEnableExtension = {
81
81
  ignoreTypeReferences: true,
82
82
  },
83
83
  ],
84
- "@typescript-eslint/no-useless-constructor": ERROR,
84
+ "@typescript-eslint/no-useless-constructor": ON,
85
85
  "@typescript-eslint/only-throw-error": [
86
- ERROR,
86
+ ON,
87
87
  {
88
88
  allowThrowingAny: false,
89
89
  allowThrowingUnknown: false,
90
90
  },
91
91
  ],
92
92
  "@typescript-eslint/prefer-destructuring": [
93
- ERROR,
93
+ ON,
94
94
  {
95
95
  VariableDeclarator: {
96
96
  array: true,
@@ -107,13 +107,13 @@ export const TsEnableExtension = {
107
107
  },
108
108
  ],
109
109
  "@typescript-eslint/prefer-promise-reject-errors": [
110
- ERROR,
110
+ ON,
111
111
  {
112
112
  allowEmptyReject: false,
113
113
  allowThrowingAny: false,
114
114
  allowThrowingUnknown: true,
115
115
  },
116
116
  ],
117
- "@typescript-eslint/require-await": ERROR,
117
+ "@typescript-eslint/require-await": ON,
118
118
  } as const,
119
119
  } as const;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ID,
3
- ERROR,
3
+ ON,
4
4
  OFF,
5
5
  never,
6
6
  explicit,
@@ -12,15 +12,15 @@ export const TsEnable = {
12
12
  // DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
13
13
  "@typescript-eslint/adjacent-overload-signatures": OFF,
14
14
  "@typescript-eslint/array-type": [
15
- ERROR,
15
+ ON,
16
16
  {
17
17
  "default": "array",
18
18
  readonly: "array",
19
19
  },
20
20
  ],
21
- "@typescript-eslint/await-thenable": ERROR,
21
+ "@typescript-eslint/await-thenable": ON,
22
22
  "@typescript-eslint/ban-ts-comment": [
23
- ERROR,
23
+ ON,
24
24
  {
25
25
  "ts-check": false,
26
26
  "ts-expect-error": {
@@ -31,21 +31,21 @@ export const TsEnable = {
31
31
  minimumDescriptionLength: 10,
32
32
  },
33
33
  ],
34
- "@typescript-eslint/ban-tslint-comment": ERROR,
34
+ "@typescript-eslint/ban-tslint-comment": ON,
35
35
  "@typescript-eslint/class-literal-property-style": [
36
- ERROR,
36
+ ON,
37
37
  "fields",
38
38
  ],
39
39
  "@typescript-eslint/consistent-generic-constructors": [
40
- ERROR,
40
+ ON,
41
41
  "constructor",
42
42
  ],
43
43
  "@typescript-eslint/consistent-indexed-object-style": [
44
- ERROR,
44
+ ON,
45
45
  "record",
46
46
  ],
47
47
  "@typescript-eslint/consistent-type-assertions": [
48
- ERROR,
48
+ ON,
49
49
  {
50
50
  assertionStyle: "as",
51
51
  arrayLiteralTypeAssertions: never,
@@ -54,13 +54,13 @@ export const TsEnable = {
54
54
  ],
55
55
  "@typescript-eslint/consistent-type-definitions": OFF,
56
56
  "@typescript-eslint/consistent-type-exports": [
57
- ERROR,
57
+ ON,
58
58
  {
59
59
  fixMixedExportsWithInlineTypeSpecifier: false,
60
60
  },
61
61
  ],
62
62
  "@typescript-eslint/consistent-type-imports": [
63
- ERROR,
63
+ ON,
64
64
  {
65
65
  disallowTypeAnnotations: true,
66
66
  fixStyle: "separate-type-imports",
@@ -69,7 +69,7 @@ export const TsEnable = {
69
69
  ],
70
70
  "@typescript-eslint/explicit-function-return-type": OFF,
71
71
  "@typescript-eslint/explicit-member-accessibility": [
72
- ERROR,
72
+ ON,
73
73
  {
74
74
  accessibility: explicit,
75
75
  ignoredMethodNames: [],
@@ -84,7 +84,7 @@ export const TsEnable = {
84
84
  ],
85
85
  "@typescript-eslint/explicit-module-boundary-types": OFF,
86
86
  "@typescript-eslint/member-ordering": [
87
- ERROR,
87
+ ON,
88
88
  {
89
89
  "default": {
90
90
  memberTypes: [
@@ -253,13 +253,13 @@ export const TsEnable = {
253
253
  },
254
254
  ],
255
255
  "@typescript-eslint/method-signature-style": [
256
- ERROR,
256
+ ON,
257
257
  "property",
258
258
  ],
259
259
  "@typescript-eslint/naming-convention": OFF,
260
- "@typescript-eslint/no-array-delete": ERROR,
260
+ "@typescript-eslint/no-array-delete": ON,
261
261
  "@typescript-eslint/no-base-to-string": [
262
- ERROR,
262
+ ON,
263
263
  {
264
264
  ignoredTypeNames: [
265
265
  "Error",
@@ -269,9 +269,9 @@ export const TsEnable = {
269
269
  ],
270
270
  },
271
271
  ],
272
- "@typescript-eslint/no-confusing-non-null-assertion": ERROR,
272
+ "@typescript-eslint/no-confusing-non-null-assertion": ON,
273
273
  "@typescript-eslint/no-confusing-void-expression": [
274
- ERROR,
274
+ ON,
275
275
  {
276
276
  ignoreArrowShorthand: true,
277
277
  ignoreVoidOperator: true,
@@ -279,17 +279,17 @@ export const TsEnable = {
279
279
  },
280
280
  ],
281
281
  "@typescript-eslint/no-deprecated": OFF /* incompatible: Cannot be used with jsDocParsingMode: "none" */,
282
- "@typescript-eslint/no-duplicate-enum-values": ERROR,
282
+ "@typescript-eslint/no-duplicate-enum-values": ON,
283
283
  "@typescript-eslint/no-duplicate-type-constituents": [
284
- ERROR,
284
+ ON,
285
285
  {
286
286
  ignoreIntersections: false,
287
287
  ignoreUnions: false,
288
288
  },
289
289
  ],
290
- "@typescript-eslint/no-dynamic-delete": ERROR,
290
+ "@typescript-eslint/no-dynamic-delete": ON,
291
291
  "@typescript-eslint/no-empty-object-type": [
292
- ERROR,
292
+ ON,
293
293
  {
294
294
  // allowWithName: /regex/,
295
295
  allowInterfaces: never,
@@ -297,15 +297,15 @@ export const TsEnable = {
297
297
  },
298
298
  ],
299
299
  "@typescript-eslint/no-explicit-any": [
300
- ERROR,
300
+ ON,
301
301
  {
302
302
  fixToUnknown: true,
303
303
  ignoreRestArgs: false,
304
304
  },
305
305
  ],
306
- "@typescript-eslint/no-extra-non-null-assertion": ERROR,
306
+ "@typescript-eslint/no-extra-non-null-assertion": ON,
307
307
  "@typescript-eslint/no-extraneous-class": [
308
- ERROR,
308
+ ON,
309
309
  {
310
310
  allowConstructorOnly: false,
311
311
  allowEmpty: true,
@@ -314,38 +314,38 @@ export const TsEnable = {
314
314
  },
315
315
  ],
316
316
  "@typescript-eslint/no-floating-promises": [
317
- ERROR,
317
+ ON,
318
318
  {
319
319
  checkThenables: true,
320
320
  ignoreVoid: true,
321
321
  ignoreIIFE: false,
322
322
  },
323
323
  ],
324
- "@typescript-eslint/no-for-in-array": ERROR,
325
- "@typescript-eslint/no-import-type-side-effects": ERROR,
324
+ "@typescript-eslint/no-for-in-array": ON,
325
+ "@typescript-eslint/no-import-type-side-effects": ON,
326
326
  "@typescript-eslint/no-inferrable-types": [
327
- ERROR,
327
+ ON,
328
328
  {
329
329
  ignoreParameters: false,
330
330
  ignoreProperties: false,
331
331
  },
332
332
  ],
333
333
  "@typescript-eslint/no-invalid-void-type": [
334
- ERROR,
334
+ ON,
335
335
  {
336
336
  allowInGenericTypeArguments: true,
337
337
  allowAsThisParameter: false,
338
338
  },
339
339
  ],
340
340
  "@typescript-eslint/no-meaningless-void-operator": [
341
- ERROR,
341
+ ON,
342
342
  {
343
343
  checkNever: true,
344
344
  },
345
345
  ],
346
- "@typescript-eslint/no-misused-new": ERROR,
346
+ "@typescript-eslint/no-misused-new": ON,
347
347
  "@typescript-eslint/no-misused-promises": [
348
- ERROR,
348
+ ON,
349
349
  {
350
350
  checksConditionals: true,
351
351
  checksSpreads: true,
@@ -359,91 +359,91 @@ export const TsEnable = {
359
359
  },
360
360
  ],
361
361
  "@typescript-eslint/no-misused-spread": [
362
- ERROR,
362
+ ON,
363
363
  {
364
364
  allow: [],
365
365
  },
366
366
  ],
367
- "@typescript-eslint/no-mixed-enums": ERROR,
367
+ "@typescript-eslint/no-mixed-enums": ON,
368
368
  "@typescript-eslint/no-namespace": OFF,
369
- "@typescript-eslint/no-non-null-asserted-nullish-coalescing": ERROR,
370
- "@typescript-eslint/no-non-null-asserted-optional-chain": ERROR,
371
- "@typescript-eslint/no-non-null-assertion": ERROR,
372
- "@typescript-eslint/no-redundant-type-constituents": ERROR,
369
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": ON,
370
+ "@typescript-eslint/no-non-null-asserted-optional-chain": ON,
371
+ "@typescript-eslint/no-non-null-assertion": ON,
372
+ "@typescript-eslint/no-redundant-type-constituents": ON,
373
373
  "@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban*/,
374
374
  "@typescript-eslint/no-require-imports": [
375
- ERROR,
375
+ ON,
376
376
  {
377
377
  allow: [],
378
378
  },
379
379
  ],
380
380
  "@typescript-eslint/no-this-alias": [
381
- ERROR,
381
+ ON,
382
382
  {
383
383
  allowDestructuring: true,
384
384
  allowedNames: [],
385
385
  },
386
386
  ],
387
387
  "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
388
- ERROR,
388
+ ON,
389
389
  {
390
390
  allowComparingNullableBooleansToTrue: true,
391
391
  allowComparingNullableBooleansToFalse: true,
392
392
  },
393
393
  ],
394
394
  "@typescript-eslint/no-unnecessary-condition": [
395
- ERROR,
395
+ ON,
396
396
  {
397
397
  allowConstantLoopConditions: never,
398
398
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
399
399
  },
400
400
  ],
401
- "@typescript-eslint/no-unnecessary-parameter-property-assignment": ERROR,
402
- "@typescript-eslint/no-unnecessary-qualifier": ERROR,
403
- "@typescript-eslint/no-unnecessary-template-expression": ERROR,
404
- "@typescript-eslint/no-unnecessary-type-arguments": ERROR,
401
+ "@typescript-eslint/no-unnecessary-parameter-property-assignment": ON,
402
+ "@typescript-eslint/no-unnecessary-qualifier": ON,
403
+ "@typescript-eslint/no-unnecessary-template-expression": ON,
404
+ "@typescript-eslint/no-unnecessary-type-arguments": ON,
405
405
  "@typescript-eslint/no-unnecessary-type-assertion": [
406
- ERROR,
406
+ ON,
407
407
  {
408
408
  typesToIgnore: [],
409
409
  },
410
410
  ],
411
- "@typescript-eslint/no-unnecessary-type-constraint": ERROR,
412
- "@typescript-eslint/no-unnecessary-type-parameters": ERROR,
413
- "@typescript-eslint/no-unsafe-argument": ERROR,
414
- "@typescript-eslint/no-unsafe-assignment": ERROR,
415
- "@typescript-eslint/no-unsafe-call": ERROR,
416
- "@typescript-eslint/no-unsafe-declaration-merging": ERROR,
417
- "@typescript-eslint/no-unsafe-enum-comparison": ERROR,
418
- "@typescript-eslint/no-unsafe-function-type": ERROR,
419
- "@typescript-eslint/no-unsafe-member-access": ERROR,
420
- "@typescript-eslint/no-unsafe-return": ERROR,
411
+ "@typescript-eslint/no-unnecessary-type-constraint": ON,
412
+ "@typescript-eslint/no-unnecessary-type-parameters": ON,
413
+ "@typescript-eslint/no-unsafe-argument": ON,
414
+ "@typescript-eslint/no-unsafe-assignment": ON,
415
+ "@typescript-eslint/no-unsafe-call": ON,
416
+ "@typescript-eslint/no-unsafe-declaration-merging": ON,
417
+ "@typescript-eslint/no-unsafe-enum-comparison": ON,
418
+ "@typescript-eslint/no-unsafe-function-type": ON,
419
+ "@typescript-eslint/no-unsafe-member-access": ON,
420
+ "@typescript-eslint/no-unsafe-return": ON,
421
421
  "@typescript-eslint/no-unsafe-type-assertion": OFF,
422
- "@typescript-eslint/no-unsafe-unary-minus": ERROR,
423
- "@typescript-eslint/no-useless-empty-export": ERROR,
424
- "@typescript-eslint/no-wrapper-object-types": ERROR,
422
+ "@typescript-eslint/no-unsafe-unary-minus": ON,
423
+ "@typescript-eslint/no-useless-empty-export": ON,
424
+ "@typescript-eslint/no-wrapper-object-types": ON,
425
425
  "@typescript-eslint/non-nullable-type-assertion-style": OFF,
426
426
  "@typescript-eslint/parameter-properties": [
427
- ERROR,
427
+ ON,
428
428
  {
429
429
  prefer: "parameter-property" /* "parameter-property" | "class-property" */,
430
430
  },
431
431
  ],
432
- "@typescript-eslint/prefer-as-const": ERROR,
433
- "@typescript-eslint/prefer-enum-initializers": ERROR,
434
- "@typescript-eslint/prefer-find": ERROR,
435
- "@typescript-eslint/prefer-for-of": ERROR,
436
- "@typescript-eslint/prefer-function-type": ERROR,
437
- "@typescript-eslint/prefer-includes": ERROR,
432
+ "@typescript-eslint/prefer-as-const": ON,
433
+ "@typescript-eslint/prefer-enum-initializers": ON,
434
+ "@typescript-eslint/prefer-find": ON,
435
+ "@typescript-eslint/prefer-for-of": ON,
436
+ "@typescript-eslint/prefer-function-type": ON,
437
+ "@typescript-eslint/prefer-includes": ON,
438
438
  "@typescript-eslint/prefer-literal-enum-member": [
439
- ERROR,
439
+ ON,
440
440
  {
441
441
  allowBitwiseExpressions: false,
442
442
  },
443
443
  ],
444
- "@typescript-eslint/prefer-namespace-keyword": ERROR,
444
+ "@typescript-eslint/prefer-namespace-keyword": ON,
445
445
  "@typescript-eslint/prefer-nullish-coalescing": [
446
- ERROR,
446
+ ON,
447
447
  {
448
448
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
449
449
  ignoreBooleanCoercion: false,
@@ -459,7 +459,7 @@ export const TsEnable = {
459
459
  },
460
460
  ], /* requires tsconfig: strictNullChecks */
461
461
  "@typescript-eslint/prefer-optional-chain": [
462
- ERROR,
462
+ ON,
463
463
  {
464
464
  allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,
465
465
  checkAny: true,
@@ -472,23 +472,23 @@ export const TsEnable = {
472
472
  },
473
473
  ],
474
474
  "@typescript-eslint/prefer-readonly": [
475
- ERROR,
475
+ ON,
476
476
  {
477
477
  onlyInlineLambdas: false,
478
478
  },
479
479
  ],
480
480
  "@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
481
- "@typescript-eslint/prefer-reduce-type-parameter": ERROR,
482
- "@typescript-eslint/prefer-regexp-exec": ERROR,
483
- "@typescript-eslint/prefer-return-this-type": ERROR,
481
+ "@typescript-eslint/prefer-reduce-type-parameter": ON,
482
+ "@typescript-eslint/prefer-regexp-exec": ON,
483
+ "@typescript-eslint/prefer-return-this-type": ON,
484
484
  "@typescript-eslint/prefer-string-starts-ends-with": [
485
- ERROR,
485
+ ON,
486
486
  {
487
487
  allowSingleElementEquality: never,
488
488
  },
489
489
  ],
490
490
  "@typescript-eslint/promise-function-async": [
491
- ERROR,
491
+ ON,
492
492
  {
493
493
  allowAny: false,
494
494
  allowedPromiseNames: [],
@@ -498,15 +498,15 @@ export const TsEnable = {
498
498
  checkMethodDeclarations: true,
499
499
  },
500
500
  ],
501
- "@typescript-eslint/related-getter-setter-pairs": ERROR,
501
+ "@typescript-eslint/related-getter-setter-pairs": ON,
502
502
  "@typescript-eslint/require-array-sort-compare": [
503
- ERROR,
503
+ ON,
504
504
  {
505
505
  ignoreStringArrays: true,
506
506
  },
507
507
  ],
508
508
  "@typescript-eslint/restrict-plus-operands": [
509
- ERROR,
509
+ ON,
510
510
  {
511
511
  allowAny: false,
512
512
  allowBoolean: false,
@@ -517,7 +517,7 @@ export const TsEnable = {
517
517
  },
518
518
  ],
519
519
  "@typescript-eslint/restrict-template-expressions": [
520
- ERROR,
520
+ ON,
521
521
  {
522
522
  allowAny: true,
523
523
  allowArray: true,
@@ -529,11 +529,11 @@ export const TsEnable = {
529
529
  }, /* investigate: make stricter */
530
530
  ],
531
531
  "@typescript-eslint/return-await": [
532
- ERROR,
532
+ ON,
533
533
  "in-try-catch",
534
534
  ] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
535
535
  "@typescript-eslint/strict-boolean-expressions": [
536
- ERROR,
536
+ ON,
537
537
  {
538
538
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
539
539
  allowAny: false,
@@ -547,7 +547,7 @@ export const TsEnable = {
547
547
  },
548
548
  ], /* requires tsconfig: strictNullChecks */
549
549
  "@typescript-eslint/switch-exhaustiveness-check": [
550
- ERROR,
550
+ ON,
551
551
  {
552
552
  allowDefaultCaseForExhaustiveSwitch: false,
553
553
  considerDefaultExhaustiveForUnions: true,
@@ -555,7 +555,7 @@ export const TsEnable = {
555
555
  },
556
556
  ],
557
557
  "@typescript-eslint/triple-slash-reference": [
558
- ERROR,
558
+ ON,
559
559
  {
560
560
  lib: never /** always | never */,
561
561
  path: never /** always | never */,
@@ -564,17 +564,17 @@ export const TsEnable = {
564
564
  ],
565
565
  "@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
566
566
  "@typescript-eslint/unbound-method": [
567
- ERROR,
567
+ ON,
568
568
  {
569
569
  ignoreStatic: false,
570
570
  },
571
571
  ],
572
572
  "@typescript-eslint/unified-signatures": [
573
- ERROR,
573
+ ON,
574
574
  {
575
575
  ignoreDifferentlyNamedParameters: false,
576
576
  },
577
577
  ],
578
- "@typescript-eslint/use-unknown-in-catch-callback-variable": ERROR,
578
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": ON,
579
579
  } as const,
580
580
  } as const;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ID,
3
- ERROR,
3
+ ON,
4
4
  never,
5
5
  always,
6
6
  strict,
@@ -11,7 +11,7 @@ export const YmlEnableExtension = {
11
11
  rules: {
12
12
  // DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
13
13
  "yml/flow-mapping-curly-newline": [
14
- ERROR,
14
+ ON,
15
15
  {
16
16
  consistent: false,
17
17
  multiline: true,
@@ -19,7 +19,7 @@ export const YmlEnableExtension = {
19
19
  },
20
20
  ],
21
21
  "yml/flow-mapping-curly-spacing": [
22
- ERROR,
22
+ ON,
23
23
  always,
24
24
  {
25
25
  arraysInObjects: true,
@@ -27,14 +27,14 @@ export const YmlEnableExtension = {
27
27
  },
28
28
  ],
29
29
  "yml/flow-sequence-bracket-newline": [
30
- ERROR,
30
+ ON,
31
31
  {
32
32
  multiline: true,
33
33
  minItems: null,
34
34
  },
35
35
  ],
36
36
  "yml/flow-sequence-bracket-spacing": [
37
- ERROR,
37
+ ON,
38
38
  never,
39
39
  {
40
40
  singleValue: false,
@@ -43,7 +43,7 @@ export const YmlEnableExtension = {
43
43
  },
44
44
  ],
45
45
  "yml/key-spacing": [
46
- ERROR,
46
+ ON,
47
47
  {
48
48
  beforeColon: false,
49
49
  afterColon: true,
@@ -51,14 +51,14 @@ export const YmlEnableExtension = {
51
51
  },
52
52
  ],
53
53
  "yml/no-irregular-whitespace": [
54
- ERROR,
54
+ ON,
55
55
  {
56
56
  skipQuotedScalars: true,
57
57
  skipComments: false,
58
58
  },
59
59
  ],
60
60
  "yml/no-multiple-empty-lines": [
61
- ERROR,
61
+ ON,
62
62
  {
63
63
  max: 1,
64
64
  maxEOF: 1,
@@ -66,7 +66,7 @@ export const YmlEnableExtension = {
66
66
  },
67
67
  ],
68
68
  "yml/spaced-comment": [
69
- ERROR,
69
+ ON,
70
70
  always,
71
71
  ],
72
72
  } as const,