linted 16.1.0-rc.1 → 16.1.1-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/dist/imports/index.d.ts +1 -1
  2. package/dist/imports/index.d.ts.map +1 -1
  3. package/dist/imports/index.js +1 -1
  4. package/dist/imports/index.js.map +1 -1
  5. package/dist/index.d.ts +5 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/statics/index.d.ts +1 -1
  10. package/dist/statics/index.d.ts.map +1 -1
  11. package/dist/statics/index.js +1 -1
  12. package/dist/statics/index.js.map +1 -1
  13. package/dist/statics/rules/index.d.ts +23 -23
  14. package/dist/statics/rules/presets/Html.d.ts.map +1 -1
  15. package/dist/statics/rules/presets/Html.js +1 -4
  16. package/dist/statics/rules/presets/Html.js.map +1 -1
  17. package/dist/statics/rules/presets/Js.d.ts +4 -4
  18. package/dist/statics/rules/presets/Js.d.ts.map +1 -1
  19. package/dist/statics/rules/presets/Js.js +1 -4
  20. package/dist/statics/rules/presets/Js.js.map +1 -1
  21. package/dist/statics/rules/presets/Json.d.ts +1 -1
  22. package/dist/statics/rules/presets/Json.d.ts.map +1 -1
  23. package/dist/statics/rules/presets/Json.js +1 -4
  24. package/dist/statics/rules/presets/Json.js.map +1 -1
  25. package/dist/statics/rules/presets/Jsonc.d.ts +1 -1
  26. package/dist/statics/rules/presets/Jsonc.d.ts.map +1 -1
  27. package/dist/statics/rules/presets/Jsonc.js +1 -4
  28. package/dist/statics/rules/presets/Jsonc.js.map +1 -1
  29. package/dist/statics/rules/presets/Mocha.d.ts.map +1 -1
  30. package/dist/statics/rules/presets/Mocha.js +1 -4
  31. package/dist/statics/rules/presets/Mocha.js.map +1 -1
  32. package/dist/statics/rules/presets/Svelte.d.ts +8 -8
  33. package/dist/statics/rules/presets/Ts.d.ts +8 -8
  34. package/dist/statics/rules/presets/Yml.d.ts +1 -1
  35. package/dist/statics/rules/presets/Yml.d.ts.map +1 -1
  36. package/dist/statics/rules/presets/Yml.js +1 -4
  37. package/dist/statics/rules/presets/Yml.js.map +1 -1
  38. package/dist/statics/rules/presets/html/Enable.d.ts.map +1 -1
  39. package/dist/statics/rules/presets/html/Enable.js +1 -4
  40. package/dist/statics/rules/presets/html/Enable.js.map +1 -1
  41. package/dist/statics/rules/presets/html/Recommended.d.ts.map +1 -1
  42. package/dist/statics/rules/presets/html/Recommended.js +1 -4
  43. package/dist/statics/rules/presets/html/Recommended.js.map +1 -1
  44. package/dist/statics/rules/presets/index.d.ts +1 -1
  45. package/dist/statics/rules/presets/index.d.ts.map +1 -1
  46. package/dist/statics/rules/presets/index.js.map +1 -1
  47. package/dist/statics/rules/presets/js/Enable.d.ts.map +1 -1
  48. package/dist/statics/rules/presets/js/Enable.js +51 -254
  49. package/dist/statics/rules/presets/js/Enable.js.map +1 -1
  50. package/dist/statics/rules/presets/js/EnableStylistic.d.ts +4 -4
  51. package/dist/statics/rules/presets/js/EnableStylistic.d.ts.map +1 -1
  52. package/dist/statics/rules/presets/js/EnableStylistic.js +85 -486
  53. package/dist/statics/rules/presets/js/EnableStylistic.js.map +1 -1
  54. package/dist/statics/rules/presets/json/Enable.d.ts.map +1 -1
  55. package/dist/statics/rules/presets/json/Enable.js.map +1 -1
  56. package/dist/statics/rules/presets/json/EnableX.d.ts +1 -1
  57. package/dist/statics/rules/presets/json/EnableX.d.ts.map +1 -1
  58. package/dist/statics/rules/presets/json/EnableX.js +12 -66
  59. package/dist/statics/rules/presets/json/EnableX.js.map +1 -1
  60. package/dist/statics/rules/presets/jsonc/OverrideJson.d.ts.map +1 -1
  61. package/dist/statics/rules/presets/jsonc/OverrideJson.js +2 -11
  62. package/dist/statics/rules/presets/jsonc/OverrideJson.js.map +1 -1
  63. package/dist/statics/rules/presets/md/Enable.d.ts.map +1 -1
  64. package/dist/statics/rules/presets/md/Enable.js +11 -49
  65. package/dist/statics/rules/presets/md/Enable.js.map +1 -1
  66. package/dist/statics/rules/presets/mocha/Enable.d.ts.map +1 -1
  67. package/dist/statics/rules/presets/mocha/Enable.js +1 -4
  68. package/dist/statics/rules/presets/mocha/Enable.js.map +1 -1
  69. package/dist/statics/rules/presets/mocha/Recommended.d.ts.map +1 -1
  70. package/dist/statics/rules/presets/mocha/Recommended.js +1 -4
  71. package/dist/statics/rules/presets/mocha/Recommended.js.map +1 -1
  72. package/dist/statics/rules/presets/svelte/DisableJS.d.ts.map +1 -1
  73. package/dist/statics/rules/presets/svelte/DisableJS.js +1 -7
  74. package/dist/statics/rules/presets/svelte/DisableJS.js.map +1 -1
  75. package/dist/statics/rules/presets/svelte/DisableTS.d.ts.map +1 -1
  76. package/dist/statics/rules/presets/svelte/DisableTS.js +1 -7
  77. package/dist/statics/rules/presets/svelte/DisableTS.js.map +1 -1
  78. package/dist/statics/rules/presets/svelte/DisableX.d.ts.map +1 -1
  79. package/dist/statics/rules/presets/svelte/DisableX.js +1 -6
  80. package/dist/statics/rules/presets/svelte/DisableX.js.map +1 -1
  81. package/dist/statics/rules/presets/svelte/Enable.d.ts.map +1 -1
  82. package/dist/statics/rules/presets/svelte/Enable.js +19 -108
  83. package/dist/statics/rules/presets/svelte/Enable.js.map +1 -1
  84. package/dist/statics/rules/presets/svelte/EnableX.d.ts.map +1 -1
  85. package/dist/statics/rules/presets/svelte/EnableX.js +2 -12
  86. package/dist/statics/rules/presets/svelte/EnableX.js.map +1 -1
  87. package/dist/statics/rules/presets/ts/DisableX.d.ts.map +1 -1
  88. package/dist/statics/rules/presets/ts/DisableX.js.map +1 -1
  89. package/dist/statics/rules/presets/ts/Enable.d.ts +4 -4
  90. package/dist/statics/rules/presets/ts/Enable.d.ts.map +1 -1
  91. package/dist/statics/rules/presets/ts/Enable.js +38 -175
  92. package/dist/statics/rules/presets/ts/Enable.js.map +1 -1
  93. package/dist/statics/rules/presets/ts/EnableX.d.ts.map +1 -1
  94. package/dist/statics/rules/presets/ts/EnableX.js +4 -29
  95. package/dist/statics/rules/presets/ts/EnableX.js.map +1 -1
  96. package/dist/statics/rules/presets/yml/Enable.d.ts.map +1 -1
  97. package/dist/statics/rules/presets/yml/Enable.js +9 -50
  98. package/dist/statics/rules/presets/yml/Enable.js.map +1 -1
  99. package/dist/statics/rules/presets/yml/EnableX.d.ts +1 -1
  100. package/dist/statics/rules/presets/yml/EnableX.d.ts.map +1 -1
  101. package/dist/statics/rules/presets/yml/EnableX.js +9 -60
  102. package/dist/statics/rules/presets/yml/EnableX.js.map +1 -1
  103. package/dist/statics/rules/strings/level/index.d.ts +1 -1
  104. package/dist/statics/rules/strings/level/index.d.ts.map +1 -1
  105. package/dist/statics/rules/strings/level/index.js +1 -1
  106. package/dist/statics/rules/strings/level/index.js.map +1 -1
  107. package/dist/statics/rules/strings/state/index.d.ts +2 -2
  108. package/dist/statics/rules/strings/state/index.d.ts.map +1 -1
  109. package/dist/statics/rules/strings/state/index.js +2 -2
  110. package/dist/statics/rules/strings/state/index.js.map +1 -1
  111. package/package.json +3 -2
  112. package/src/imports/index.ts +1 -4
  113. package/src/index.ts +18 -7
  114. package/src/statics/index.ts +1 -4
  115. package/src/statics/rules/presets/Html.ts +1 -4
  116. package/src/statics/rules/presets/Js.ts +1 -4
  117. package/src/statics/rules/presets/Json.ts +1 -4
  118. package/src/statics/rules/presets/Jsonc.ts +1 -4
  119. package/src/statics/rules/presets/Mocha.ts +1 -4
  120. package/src/statics/rules/presets/Yml.ts +1 -4
  121. package/src/statics/rules/presets/html/Enable.ts +1 -4
  122. package/src/statics/rules/presets/html/Recommended.ts +2 -4
  123. package/src/statics/rules/presets/index.ts +1 -4
  124. package/src/statics/rules/presets/js/Enable.ts +53 -257
  125. package/src/statics/rules/presets/js/EnableStylistic.ts +86 -490
  126. package/src/statics/rules/presets/json/Enable.ts +0 -1
  127. package/src/statics/rules/presets/json/EnableX.ts +12 -67
  128. package/src/statics/rules/presets/jsonc/OverrideJson.ts +3 -19
  129. package/src/statics/rules/presets/md/Enable.ts +11 -50
  130. package/src/statics/rules/presets/mocha/Enable.ts +1 -4
  131. package/src/statics/rules/presets/mocha/Recommended.ts +2 -4
  132. package/src/statics/rules/presets/svelte/DisableJS.ts +3 -10
  133. package/src/statics/rules/presets/svelte/DisableTS.ts +1 -7
  134. package/src/statics/rules/presets/svelte/DisableX.ts +2 -11
  135. package/src/statics/rules/presets/svelte/Enable.ts +50 -137
  136. package/src/statics/rules/presets/svelte/EnableX.ts +3 -21
  137. package/src/statics/rules/presets/ts/DisableX.ts +1 -2
  138. package/src/statics/rules/presets/ts/Enable.ts +39 -191
  139. package/src/statics/rules/presets/ts/EnableX.ts +9 -41
  140. package/src/statics/rules/presets/yml/Enable.ts +9 -59
  141. package/src/statics/rules/presets/yml/EnableX.ts +9 -69
  142. package/src/statics/rules/strings/level/index.ts +1 -5
  143. package/src/statics/rules/strings/state/index.ts +2 -0
@@ -3,80 +3,46 @@ import { Strings, type RuleEntry } from "../index.js";
3
3
  const {
4
4
  Id: { Enable },
5
5
  Level: { ERROR, OFF },
6
- State: {
7
- NEVER,
8
- },
6
+ State: { NEVER, EXPLICIT },
9
7
  } = Strings;
10
8
 
11
9
  export default [
12
10
  Enable,
13
11
  {
14
-
15
12
  // https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules ]
16
13
  "@typescript-eslint/adjacent-overload-signatures": OFF,
17
- "@typescript-eslint/array-type": [
18
- ERROR,
19
- {
20
- "default": "array",
21
- readonly: "array",
22
- },
23
- ],
14
+ "@typescript-eslint/array-type": [ERROR, { "default": "array", readonly: "array" }],
24
15
  "@typescript-eslint/await-thenable": ERROR,
25
16
  "@typescript-eslint/ban-ts-comment": [
26
17
  ERROR,
27
18
  {
28
19
  "ts-check": false,
29
- "ts-expect-error": true,
20
+ "ts-expect-error": { descriptionFormat: "^: BUG: .+$" },
30
21
  "ts-ignore": true,
31
22
  "ts-nocheck": true,
32
- minimumDescriptionLength: 10,
23
+ minimumDescriptionLength: 32,
33
24
  },
34
25
  ],
35
26
  "@typescript-eslint/ban-tslint-comment": ERROR,
36
- "@typescript-eslint/class-literal-property-style": [
37
- ERROR,
38
- "fields",
39
- ],
40
- "@typescript-eslint/consistent-generic-constructors": [
41
- ERROR,
42
- "constructor",
43
- ],
44
- "@typescript-eslint/consistent-indexed-object-style": [
45
- ERROR,
46
- "record",
47
- ],
48
- "@typescript-eslint/consistent-type-assertions": [
49
- ERROR,
50
- {
51
- assertionStyle: "as",
52
- objectLiteralTypeAssertions: NEVER,
53
- },
54
- ],
27
+ "@typescript-eslint/class-literal-property-style": [ERROR, "fields"],
28
+ "@typescript-eslint/consistent-generic-constructors": [ERROR, "constructor"],
29
+ "@typescript-eslint/consistent-indexed-object-style": [ERROR, "record"],
30
+ "@typescript-eslint/consistent-type-assertions": [ERROR, { assertionStyle: "as", objectLiteralTypeAssertions: NEVER }],
55
31
  "@typescript-eslint/consistent-type-definitions": OFF,
56
- "@typescript-eslint/consistent-type-exports": [
57
- ERROR,
58
- { fixMixedExportsWithInlineTypeSpecifier: false },
59
- ],
60
- "@typescript-eslint/consistent-type-imports": [
61
- ERROR,
62
- {
63
- disallowTypeAnnotations: true,
64
- fixStyle: "separate-type-imports",
65
- prefer: "type-imports",
66
- },
67
- ],
32
+ "@typescript-eslint/consistent-type-exports": [ERROR, { fixMixedExportsWithInlineTypeSpecifier: false }],
33
+ "@typescript-eslint/consistent-type-imports": [ERROR, { disallowTypeAnnotations: true, fixStyle: "separate-type-imports", prefer: "type-imports" }],
68
34
  "@typescript-eslint/explicit-function-return-type": OFF,
69
35
  "@typescript-eslint/explicit-member-accessibility": [
70
36
  ERROR,
71
37
  {
72
- accessibility: "explicit",
38
+ accessibility: EXPLICIT,
73
39
  ignoredMethodNames: [],
74
40
  overrides: {
75
- properties: "explicit",
41
+ properties: EXPLICIT,
76
42
  constructors: "no-public",
77
- accessors: "explicit",
78
- methods: "explicit",
79
- parameterProperties: "explicit",
43
+ accessors: EXPLICIT,
44
+ methods: EXPLICIT,
45
+ parameterProperties: EXPLICIT,
80
46
  },
81
47
  },
82
48
  ],
@@ -116,9 +82,7 @@ export default [
116
82
  "static-field",
117
83
  "instance-field",
118
84
  "abstract-field",
119
-
120
85
  "decorated-field",
121
-
122
86
  "field",
123
87
 
124
88
  // Static initialization
@@ -128,7 +92,6 @@ export default [
128
92
  "public-constructor",
129
93
  "protected-constructor",
130
94
  "private-constructor",
131
-
132
95
  "constructor",
133
96
 
134
97
  // Accessors
@@ -157,9 +120,7 @@ export default [
157
120
  "static-accessor",
158
121
  "instance-accessor",
159
122
  "abstract-accessor",
160
-
161
123
  "decorated-accessor",
162
-
163
124
  "accessor",
164
125
 
165
126
  // Getters
@@ -188,9 +149,7 @@ export default [
188
149
  "static-get",
189
150
  "instance-get",
190
151
  "abstract-get",
191
-
192
152
  "decorated-get",
193
-
194
153
  "get",
195
154
 
196
155
  // Setters
@@ -219,9 +178,7 @@ export default [
219
178
  "static-set",
220
179
  "instance-set",
221
180
  "abstract-set",
222
-
223
181
  "decorated-set",
224
-
225
182
  "set",
226
183
 
227
184
  // Methods
@@ -250,9 +207,7 @@ export default [
250
207
  "static-method",
251
208
  "instance-method",
252
209
  "abstract-method",
253
-
254
210
  "decorated-method",
255
-
256
211
  "method",
257
212
  ],
258
213
  optionalityOrder: "required-first",
@@ -261,10 +216,7 @@ export default [
261
216
 
262
217
  },
263
218
  ],
264
- "@typescript-eslint/method-signature-style": [
265
- ERROR,
266
- "property",
267
- ],
219
+ "@typescript-eslint/method-signature-style": [ERROR, "property"],
268
220
  "@typescript-eslint/naming-convention": OFF,
269
221
  "@typescript-eslint/no-array-delete": ERROR,
270
222
  "@typescript-eslint/no-base-to-string": [
@@ -279,38 +231,19 @@ export default [
279
231
  },
280
232
  ],
281
233
  "@typescript-eslint/no-confusing-non-null-assertion": ERROR,
282
- "@typescript-eslint/no-confusing-void-expression": [
283
- ERROR,
284
- {
285
- ignoreArrowShorthand: true,
286
- ignoreVoidOperator: true,
287
- },
288
- ],
234
+ "@typescript-eslint/no-confusing-void-expression": [ERROR, { ignoreArrowShorthand: true, ignoreVoidOperator: true }],
289
235
  "@typescript-eslint/no-duplicate-enum-values": ERROR,
290
- "@typescript-eslint/no-duplicate-type-constituents": [
291
- ERROR,
292
- {
293
- ignoreIntersections: false,
294
- ignoreUnions: false,
295
- },
296
- ],
236
+ "@typescript-eslint/no-duplicate-type-constituents": [ERROR, { ignoreIntersections: false, ignoreUnions: false }],
297
237
  "@typescript-eslint/no-dynamic-delete": ERROR,
298
238
  "@typescript-eslint/no-empty-object-type": [
299
239
  ERROR,
300
240
  {
241
+ // allowWithName: /regex/,
301
242
  allowInterfaces: NEVER,
302
243
  allowObjectTypes: NEVER,
303
-
304
- // allowWithName: /regex/,
305
- },
306
- ],
307
- "@typescript-eslint/no-explicit-any": [
308
- ERROR,
309
- {
310
- fixToUnknown: true,
311
- ignoreRestArgs: false,
312
244
  },
313
245
  ],
246
+ "@typescript-eslint/no-explicit-any": [ERROR, { fixToUnknown: true, ignoreRestArgs: false }],
314
247
  "@typescript-eslint/no-extra-non-null-assertion": ERROR,
315
248
  "@typescript-eslint/no-extraneous-class": [
316
249
  ERROR,
@@ -321,34 +254,12 @@ export default [
321
254
  allowWithDecorator: false,
322
255
  },
323
256
  ],
324
- "@typescript-eslint/no-floating-promises": [
325
- ERROR,
326
- {
327
- checkThenables: true,
328
- ignoreVoid: true,
329
- ignoreIIFE: false,
330
- },
331
- ],
257
+ "@typescript-eslint/no-floating-promises": [ERROR, { checkThenables: true, ignoreVoid: true, ignoreIIFE: false }],
332
258
  "@typescript-eslint/no-for-in-array": ERROR,
333
259
  "@typescript-eslint/no-import-type-side-effects": ERROR,
334
- "@typescript-eslint/no-inferrable-types": [
335
- ERROR,
336
- {
337
- ignoreParameters: false,
338
- ignoreProperties: false,
339
- },
340
- ],
341
- "@typescript-eslint/no-invalid-void-type": [
342
- ERROR,
343
- {
344
- allowInGenericTypeArguments: true,
345
- allowAsThisParameter: false,
346
- },
347
- ],
348
- "@typescript-eslint/no-meaningless-void-operator": [
349
- ERROR,
350
- { checkNever: true },
351
- ],
260
+ "@typescript-eslint/no-inferrable-types": [ERROR, { ignoreParameters: false, ignoreProperties: false }],
261
+ "@typescript-eslint/no-invalid-void-type": [ERROR, { allowInGenericTypeArguments: true, allowAsThisParameter: false }],
262
+ "@typescript-eslint/no-meaningless-void-operator": [ERROR, { checkNever: true }],
352
263
  "@typescript-eslint/no-misused-new": ERROR,
353
264
  "@typescript-eslint/no-misused-promises": [
354
265
  ERROR,
@@ -371,38 +282,14 @@ export default [
371
282
  "@typescript-eslint/no-non-null-assertion": ERROR,
372
283
  "@typescript-eslint/no-redundant-type-constituents": ERROR,
373
284
  "@typescript-eslint/no-restricted-types": OFF, /* preference - no shared custom types across all projects that I wish to ban*/
374
- "@typescript-eslint/no-require-imports": [
375
- ERROR,
376
- { allow: [] },
377
- ],
378
- "@typescript-eslint/no-this-alias": [
379
- ERROR,
380
- {
381
- allowDestructuring: true,
382
- allowedNames: [],
383
- },
384
- ],
385
- "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
386
- ERROR,
387
- {
388
- allowComparingNullableBooleansToTrue: true,
389
- allowComparingNullableBooleansToFalse: true,
390
- },
391
- ],
392
- "@typescript-eslint/no-unnecessary-condition": [
393
- ERROR,
394
- {
395
- allowConstantLoopConditions: false,
396
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
397
- },
398
- ],
285
+ "@typescript-eslint/no-require-imports": [ERROR, { allow: [] }],
286
+ "@typescript-eslint/no-this-alias": [ERROR, { allowDestructuring: true, allowedNames: [] }],
287
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": [ERROR, { allowComparingNullableBooleansToTrue: true, allowComparingNullableBooleansToFalse: true }],
288
+ "@typescript-eslint/no-unnecessary-condition": [ERROR, { allowConstantLoopConditions: false, allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false }],
399
289
  "@typescript-eslint/no-unnecessary-qualifier": ERROR,
400
290
  "@typescript-eslint/no-unnecessary-template-expression": ERROR,
401
291
  "@typescript-eslint/no-unnecessary-type-arguments": ERROR,
402
- "@typescript-eslint/no-unnecessary-type-assertion": [
403
- ERROR,
404
- { typesToIgnore: [] },
405
- ],
292
+ "@typescript-eslint/no-unnecessary-type-assertion": [ERROR, { typesToIgnore: [] }],
406
293
  "@typescript-eslint/no-unnecessary-type-constraint": ERROR,
407
294
  "@typescript-eslint/no-unnecessary-type-parameters": ERROR,
408
295
  "@typescript-eslint/no-unsafe-argument": ERROR,
@@ -416,22 +303,15 @@ export default [
416
303
  "@typescript-eslint/no-unsafe-unary-minus": ERROR,
417
304
  "@typescript-eslint/no-useless-empty-export": ERROR,
418
305
  "@typescript-eslint/no-wrapper-object-types": ERROR,
419
- "@typescript-eslint/no-var-requires": OFF,
420
306
  "@typescript-eslint/non-nullable-type-assertion-style": OFF,
421
- "@typescript-eslint/parameter-properties": [
422
- ERROR,
423
- { prefer: "parameter-property" /* "parameter-property" | "class-property" */ },
424
- ],
307
+ "@typescript-eslint/parameter-properties": [ERROR, { prefer: "parameter-property" /* "parameter-property" | "class-property" */ }],
425
308
  "@typescript-eslint/prefer-as-const": ERROR,
426
309
  "@typescript-eslint/prefer-enum-initializers": ERROR,
427
310
  "@typescript-eslint/prefer-find": ERROR,
428
311
  "@typescript-eslint/prefer-for-of": ERROR,
429
312
  "@typescript-eslint/prefer-function-type": ERROR,
430
313
  "@typescript-eslint/prefer-includes": ERROR,
431
- "@typescript-eslint/prefer-literal-enum-member": [
432
- ERROR,
433
- { allowBitwiseExpressions: false },
434
- ],
314
+ "@typescript-eslint/prefer-literal-enum-member": [ERROR, { allowBitwiseExpressions: false }],
435
315
  "@typescript-eslint/prefer-namespace-keyword": ERROR,
436
316
  "@typescript-eslint/prefer-nullish-coalescing": [
437
317
  ERROR,
@@ -461,19 +341,12 @@ export default [
461
341
  requireNullish: false,
462
342
  },
463
343
  ],
464
- "@typescript-eslint/prefer-readonly": [
465
- ERROR,
466
- { onlyInlineLambdas: false },
467
- ],
344
+ "@typescript-eslint/prefer-readonly": [ERROR, { onlyInlineLambdas: false }],
468
345
  "@typescript-eslint/prefer-readonly-parameter-types": OFF, /* preference - WAY too restrictive */
469
346
  "@typescript-eslint/prefer-reduce-type-parameter": ERROR,
470
347
  "@typescript-eslint/prefer-regexp-exec": ERROR,
471
348
  "@typescript-eslint/prefer-return-this-type": ERROR,
472
- "@typescript-eslint/prefer-string-starts-ends-with": [
473
- ERROR,
474
- { allowSingleElementEquality: NEVER },
475
- ],
476
- "@typescript-eslint/prefer-ts-expect-error": ERROR,
349
+ "@typescript-eslint/prefer-string-starts-ends-with": [ERROR, { allowSingleElementEquality: NEVER }],
477
350
  "@typescript-eslint/promise-function-async": [
478
351
  ERROR,
479
352
  {
@@ -485,10 +358,7 @@ export default [
485
358
  checkMethodDeclarations: true,
486
359
  },
487
360
  ],
488
- "@typescript-eslint/require-array-sort-compare": [
489
- ERROR,
490
- { ignoreStringArrays: true },
491
- ],
361
+ "@typescript-eslint/require-array-sort-compare": [ERROR, { ignoreStringArrays: true }],
492
362
  "@typescript-eslint/restrict-plus-operands": [
493
363
  ERROR,
494
364
  {
@@ -512,10 +382,7 @@ export default [
512
382
  allowRegExp: false,
513
383
  }, /* investigate: make stricter */
514
384
  ],
515
- "@typescript-eslint/return-await": [
516
- ERROR,
517
- "in-try-catch",
518
- ], /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */
385
+ "@typescript-eslint/return-await": [ERROR, "in-try-catch"], /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */
519
386
  "@typescript-eslint/strict-boolean-expressions": [
520
387
  ERROR,
521
388
  {
@@ -530,30 +397,11 @@ export default [
530
397
  allowNullableString: false,
531
398
  },
532
399
  ], /* requires tsconfig: strictNullChecks */
533
- "@typescript-eslint/switch-exhaustiveness-check": [
534
- ERROR,
535
- {
536
- allowDefaultCaseForExhaustiveSwitch: false,
537
- requireDefaultForNonUnion: true,
538
- },
539
- ],
540
- "@typescript-eslint/triple-slash-reference": [
541
- ERROR,
542
- {
543
- lib: NEVER, /** always | never */
544
- path: NEVER, /** always | never */
545
- types: NEVER, /** always | never | prefer-import */
546
- },
547
- ],
400
+ "@typescript-eslint/switch-exhaustiveness-check": [ERROR, { allowDefaultCaseForExhaustiveSwitch: false, requireDefaultForNonUnion: true }],
401
+ "@typescript-eslint/triple-slash-reference": [ERROR, { lib: NEVER /** always | never */, path: NEVER /** always | never */, types: NEVER /** always | never | prefer-import */ }],
548
402
  "@typescript-eslint/typedef": OFF, /* tsconfig: { noImplicitAny, strictPropertyInitialization } */
549
- "@typescript-eslint/unbound-method": [
550
- ERROR,
551
- { ignoreStatic: false },
552
- ],
553
- "@typescript-eslint/unified-signatures": [
554
- ERROR,
555
- { ignoreDifferentlyNamedParameters: false },
556
- ],
403
+ "@typescript-eslint/unbound-method": [ERROR, { ignoreStatic: false }],
404
+ "@typescript-eslint/unified-signatures": [ERROR, { ignoreDifferentlyNamedParameters: false }],
557
405
  "@typescript-eslint/use-unknown-in-catch-callback-variable": ERROR,
558
406
  },
559
407
  ] as const satisfies RuleEntry;
@@ -1,13 +1,6 @@
1
1
  import { Strings, type RuleEntry } from "../index.js";
2
2
 
3
- const {
4
- Id: { EnableX },
5
- Level: { ERROR, OFF },
6
- State: {
7
- ALWAYS,
8
- ALL,
9
- },
10
- } = Strings;
3
+ const { Id: { EnableX }, Level: { ERROR, OFF }, State: { ALWAYS, ALL } } = Strings;
11
4
 
12
5
  export default [
13
6
  EnableX,
@@ -32,9 +25,9 @@ export default [
32
25
  ERROR,
33
26
  ALWAYS,
34
27
  ],
35
- "@typescript-eslint/max-params": OFF, /* preference */
28
+ "@typescript-eslint/max-params": OFF /* preference */,
36
29
  "@typescript-eslint/no-array-constructor": ERROR,
37
- "@typescript-eslint/no-dupe-class-members": OFF, /* tsc */
30
+ "@typescript-eslint/no-dupe-class-members": OFF /* tsc */,
38
31
  "@typescript-eslint/no-empty-function": [
39
32
  ERROR,
40
33
  {
@@ -44,13 +37,13 @@ export default [
44
37
  "protected-constructors",
45
38
  "decoratedFunctions",
46
39
  ],
47
- }, // functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods
40
+ }, /* functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */
48
41
  ],
49
42
  "@typescript-eslint/no-implied-eval": ERROR,
50
- "@typescript-eslint/no-invalid-this": OFF, /* tsconfig: { strict, noImplicitThis } */
43
+ "@typescript-eslint/no-invalid-this": OFF /* tsconfig: { strict, noImplicitThis } */,
51
44
  "@typescript-eslint/no-loop-func": ERROR,
52
45
  "@typescript-eslint/no-magic-numbers": OFF,
53
- "@typescript-eslint/no-redeclare": OFF, /* tsc (let, const, -var) */
46
+ "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
54
47
  "@typescript-eslint/no-restricted-imports": OFF, /* preference */
55
48
  "@typescript-eslint/no-shadow": OFF, /* investigate */
56
49
  "@typescript-eslint/no-unused-expressions": [
@@ -86,34 +79,9 @@ export default [
86
79
  },
87
80
  ],
88
81
  "@typescript-eslint/no-useless-constructor": ERROR,
89
- "@typescript-eslint/only-throw-error": [
90
- ERROR,
91
- {
92
- allowThrowingAny: false,
93
- allowThrowingUnknown: false,
94
- },
95
- ],
96
- "@typescript-eslint/prefer-destructuring": [
97
- ERROR,
98
- {
99
- VariableDeclarator: {
100
- array: true,
101
- object: true,
102
- },
103
- AssignmentExpression: {
104
- array: false,
105
- object: false,
106
- },
107
- },
108
- {
109
- enforceForRenamedProperties: false,
110
- enforceForDeclarationWithTypeAnnotation: false,
111
- },
112
- ],
113
- "@typescript-eslint/prefer-promise-reject-errors": [
114
- ERROR,
115
- { allowEmptyReject: false },
116
- ],
82
+ "@typescript-eslint/only-throw-error": [ERROR, { allowThrowingAny: false, allowThrowingUnknown: false }],
83
+ "@typescript-eslint/prefer-destructuring": [ERROR, { VariableDeclarator: { array: true, object: true }, AssignmentExpression: { array: false, object: false } }, { enforceForRenamedProperties: false, enforceForDeclarationWithTypeAnnotation: false }],
84
+ "@typescript-eslint/prefer-promise-reject-errors": [ERROR, { allowEmptyReject: false }],
117
85
  "@typescript-eslint/require-await": ERROR,
118
86
  },
119
87
  ] as const satisfies RuleEntry;
@@ -1,59 +1,18 @@
1
1
  import { Strings, type RuleEntry } from "../index.js";
2
2
 
3
- const {
4
- Id: { Enable },
5
- Level: { ERROR, OFF },
6
- State: {
7
- NEVER,
8
- ALWAYS,
9
- DOUBLE,
10
- },
11
- } = Strings;
3
+ const { Id: { Enable }, Level: { ERROR, OFF }, State: { NEVER, ALWAYS, DOUBLE } } = Strings;
12
4
 
13
5
  export default [
14
6
  Enable,
15
7
  {
16
-
17
8
  // https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
18
- "yml/block-mapping-colon-indicator-newline": [
19
- ERROR,
20
- NEVER,
21
- ],
22
- "yml/block-mapping-question-indicator-newline": [
23
- ERROR,
24
- NEVER,
25
- ],
26
- "yml/block-mapping": [
27
- ERROR,
28
- {
29
- singleline: NEVER,
30
- multiline: ALWAYS,
31
- },
32
- ],
33
- "yml/block-sequence-hyphen-indicator-newline": [
34
- ERROR,
35
- NEVER,
36
- {
37
- nestedHyphen: ALWAYS,
38
- blockMapping: NEVER,
39
- },
40
- ],
41
- "yml/block-sequence": [
42
- ERROR,
43
- {
44
- singleline: ALWAYS,
45
- multiline: ALWAYS,
46
- },
47
- ],
9
+ "yml/block-mapping-colon-indicator-newline": [ERROR, NEVER],
10
+ "yml/block-mapping-question-indicator-newline": [ERROR, NEVER],
11
+ "yml/block-mapping": [ERROR, { singleline: NEVER, multiline: ALWAYS }],
12
+ "yml/block-sequence-hyphen-indicator-newline": [ERROR, NEVER, { nestedHyphen: ALWAYS, blockMapping: NEVER }],
13
+ "yml/block-sequence": [ERROR, { singleline: ALWAYS, multiline: ALWAYS }],
48
14
  "yml/file-extension": OFF,
49
- "yml/indent": [
50
- ERROR,
51
- 2,
52
- {
53
- indentBlockSequences: true,
54
- indicatorValueIndent: 2,
55
- },
56
- ],
15
+ "yml/indent": [ERROR, 2, { indentBlockSequences: true, indicatorValueIndent: 2 }],
57
16
  "yml/key-name-casing": OFF,
58
17
  "yml/no-empty-document": ERROR,
59
18
  "yml/no-empty-key": ERROR,
@@ -61,17 +20,8 @@ export default [
61
20
  "yml/no-empty-sequence-entry": ERROR,
62
21
  "yml/no-tab-indent": ERROR,
63
22
  "yml/no-trailing-zeros": ERROR,
64
- "yml/plain-scalar": [
65
- ERROR,
66
- ALWAYS,
67
- ],
68
- "yml/quotes": [
69
- ERROR,
70
- {
71
- prefer: DOUBLE,
72
- avoidEscape: true,
73
- },
74
- ],
23
+ "yml/plain-scalar": [ERROR, ALWAYS],
24
+ "yml/quotes": [ERROR, { prefer: DOUBLE, avoidEscape: true }],
75
25
  "yml/require-string-key": ERROR,
76
26
  "yml/sort-keys": OFF,
77
27
  "yml/sort-sequence-values": OFF,
@@ -1,78 +1,18 @@
1
1
  import { Strings, type RuleEntry } from "../index.js";
2
2
 
3
- const {
4
- Id: { EnableX },
5
- Level: { ERROR },
6
- State: {
7
- NEVER,
8
- ALWAYS,
9
- STRICT,
10
- },
11
- } = Strings;
3
+ const { Id: { EnableX }, Level: { ERROR }, State: { NEVER, ALWAYS, STRICT } } = Strings;
12
4
 
13
5
  export default [
14
6
  EnableX,
15
7
  {
16
-
17
8
  // https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
18
- "yml/flow-mapping-curly-newline": [
19
- ERROR,
20
- {
21
- multiline: true,
22
- minProperties: 2,
23
- consistent: false,
24
- },
25
- ],
26
- "yml/flow-mapping-curly-spacing": [
27
- ERROR,
28
- ALWAYS,
29
- {
30
- arraysInObjects: true,
31
- objectsInObjects: true,
32
- },
33
- ],
34
- "yml/flow-sequence-bracket-newline": [
35
- ERROR,
36
- {
37
- multiline: true,
38
- minItems: null,
39
- },
40
- ],
41
- "yml/flow-sequence-bracket-spacing": [
42
- ERROR,
43
- NEVER,
44
- {
45
- singleValue: false,
46
- objectsInArrays: false,
47
- arraysInArrays: false,
48
- },
49
- ],
50
- "yml/key-spacing": [
51
- ERROR,
52
- {
53
- beforeColon: false,
54
- afterColon: true,
55
- mode: STRICT,
56
- },
57
- ],
58
- "yml/no-irregular-whitespace": [
59
- ERROR,
60
- {
61
- skipQuotedScalars: true,
62
- skipComments: false,
63
- },
64
- ],
65
- "yml/no-multiple-empty-lines": [
66
- ERROR,
67
- {
68
- max: 1,
69
- maxEOF: 1,
70
- maxBOF: 0,
71
- },
72
- ],
73
- "yml/spaced-comment": [
74
- ERROR,
75
- ALWAYS,
76
- ],
9
+ "yml/flow-mapping-curly-newline": [ERROR, { consistent: false, multiline: true, minProperties: 2 }],
10
+ "yml/flow-mapping-curly-spacing": [ERROR, ALWAYS, { arraysInObjects: true, objectsInObjects: true }],
11
+ "yml/flow-sequence-bracket-newline": [ERROR, { multiline: true, minItems: null }],
12
+ "yml/flow-sequence-bracket-spacing": [ERROR, NEVER, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
13
+ "yml/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: STRICT }],
14
+ "yml/no-irregular-whitespace": [ERROR, { skipQuotedScalars: true, skipComments: false }],
15
+ "yml/no-multiple-empty-lines": [ERROR, { max: 1, maxEOF: 1, maxBOF: 0 }],
16
+ "yml/spaced-comment": [ERROR, ALWAYS],
77
17
  },
78
18
  ] as const satisfies RuleEntry;
@@ -2,8 +2,4 @@ const ERROR = "error",
2
2
  WARN = "warn",
3
3
  OFF = "off";
4
4
 
5
- export {
6
- ERROR,
7
- WARN,
8
- OFF,
9
- };
5
+ export { ERROR, WARN, OFF };
@@ -5,6 +5,7 @@ MULTILINE = "multiline",
5
5
  CONSISTENT = "consistent",
6
6
  CONSECUTIVE = "consecutive",
7
7
  AS_NEEDED = "as-needed",
8
+ EXPLICIT = "explicit",
8
9
  ALLOW = "allow",
9
10
  STRICT = "strict",
10
11
  ANY = "any",
@@ -32,6 +33,7 @@ export {
32
33
  CONSISTENT,
33
34
  CONSECUTIVE,
34
35
  AS_NEEDED,
36
+ EXPLICIT,
35
37
  ALLOW,
36
38
  STRICT,
37
39
  ANY,