linted 16.12.2-rc.0 → 16.12.2-rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/.github/workflows/RELEASE.yml +35 -35
  2. package/.github/workflows/rc.yml +35 -35
  3. package/LICENSE +21 -21
  4. package/README.md +390 -390
  5. package/SECURITY.md +9 -9
  6. package/dist/imports/plugins.d.ts.map +1 -1
  7. package/dist/imports.d.ts.map +1 -1
  8. package/dist/rules/html/enable.d.ts +8 -0
  9. package/dist/rules/html/enable.d.ts.map +1 -0
  10. package/dist/rules/html/enable.js +15 -0
  11. package/dist/rules/html/enable.js.map +1 -0
  12. package/dist/rules/html/enable_recommended.d.ts +3 -0
  13. package/dist/rules/html/enable_recommended.d.ts.map +1 -0
  14. package/dist/rules/html/enable_recommended.js +8 -0
  15. package/dist/rules/html/enable_recommended.js.map +1 -0
  16. package/dist/rules/html.d.ts +8 -0
  17. package/dist/rules/html.d.ts.map +1 -0
  18. package/dist/rules/html.js +4 -0
  19. package/dist/rules/html.js.map +1 -0
  20. package/dist/rules/js/enable.d.ts +348 -0
  21. package/dist/rules/js/enable.d.ts.map +1 -0
  22. package/dist/rules/js/enable.js +496 -0
  23. package/dist/rules/js/enable.js.map +1 -0
  24. package/dist/rules/js/enable_stylistic.d.ts +420 -0
  25. package/dist/rules/js/enable_stylistic.d.ts.map +1 -0
  26. package/dist/rules/js/enable_stylistic.js +585 -0
  27. package/dist/rules/js/enable_stylistic.js.map +1 -0
  28. package/dist/rules/js.d.ts +765 -0
  29. package/dist/rules/js.d.ts.map +1 -0
  30. package/dist/rules/js.js +4 -0
  31. package/dist/rules/js.js.map +1 -0
  32. package/dist/rules/json/enable.d.ts +27 -0
  33. package/dist/rules/json/enable.d.ts.map +1 -0
  34. package/dist/rules/json/enable.js +31 -0
  35. package/dist/rules/json/enable.js.map +1 -0
  36. package/dist/rules/json/enable_x.d.ts.map +1 -1
  37. package/dist/rules/json/enable_x.js +48 -8
  38. package/dist/rules/json/enable_x.js.map +1 -1
  39. package/dist/rules/json.d.ts +74 -0
  40. package/dist/rules/json.d.ts.map +1 -0
  41. package/dist/rules/json.js +4 -0
  42. package/dist/rules/json.js.map +1 -0
  43. package/dist/rules/jsonc/override.d.ts.map +1 -1
  44. package/dist/rules/jsonc/override.js +12 -3
  45. package/dist/rules/jsonc/override.js.map +1 -1
  46. package/dist/rules/jsonc.d.ts +77 -0
  47. package/dist/rules/jsonc.d.ts.map +1 -0
  48. package/dist/rules/jsonc.js +4 -0
  49. package/dist/rules/jsonc.js.map +1 -0
  50. package/dist/rules/md/enable.d.ts +7 -0
  51. package/dist/rules/md/enable.d.ts.map +1 -0
  52. package/dist/rules/md/enable.js +14 -0
  53. package/dist/rules/md/enable.js.map +1 -0
  54. package/dist/rules/md.d.ts +7 -0
  55. package/dist/rules/md.d.ts.map +1 -0
  56. package/dist/rules/md.js +3 -0
  57. package/dist/rules/md.js.map +1 -0
  58. package/dist/rules/mocha/enable.d.ts +3 -0
  59. package/dist/rules/mocha/enable.d.ts.map +1 -0
  60. package/dist/rules/mocha/enable.js +3 -0
  61. package/dist/rules/mocha/enable.js.map +1 -0
  62. package/dist/rules/mocha/enable_recommended.d.ts +3 -0
  63. package/dist/rules/mocha/enable_recommended.d.ts.map +1 -0
  64. package/dist/rules/mocha/enable_recommended.js +8 -0
  65. package/dist/rules/mocha/enable_recommended.js.map +1 -0
  66. package/dist/rules/mocha.d.ts +8 -0
  67. package/dist/rules/mocha.d.ts.map +1 -0
  68. package/dist/rules/mocha.js +4 -0
  69. package/dist/rules/mocha.js.map +1 -0
  70. package/dist/rules/svelte/disable.d.ts +5 -0
  71. package/dist/rules/svelte/disable.d.ts.map +1 -0
  72. package/dist/rules/svelte/disable.js +8 -0
  73. package/dist/rules/svelte/disable.js.map +1 -0
  74. package/dist/rules/svelte/disable_js.d.ts.map +1 -1
  75. package/dist/rules/svelte/disable_js.js +8 -3
  76. package/dist/rules/svelte/disable_js.js.map +1 -1
  77. package/dist/rules/svelte/disable_ts.d.ts.map +1 -1
  78. package/dist/rules/svelte/disable_ts.js +8 -3
  79. package/dist/rules/svelte/disable_ts.js.map +1 -1
  80. package/dist/rules/svelte/enable.d.ts +126 -0
  81. package/dist/rules/svelte/enable.d.ts.map +1 -0
  82. package/dist/rules/svelte/enable.js +190 -0
  83. package/dist/rules/svelte/enable.js.map +1 -0
  84. package/dist/rules/svelte/enable_x.d.ts.map +1 -1
  85. package/dist/rules/svelte/enable_x.js +15 -3
  86. package/dist/rules/svelte/enable_x.js.map +1 -1
  87. package/dist/rules/svelte.d.ts +1269 -0
  88. package/dist/rules/svelte.d.ts.map +1 -0
  89. package/dist/rules/svelte.js +15 -0
  90. package/dist/rules/svelte.js.map +1 -0
  91. package/dist/rules/ts/disable.d.ts +18 -0
  92. package/dist/rules/ts/disable.d.ts.map +1 -0
  93. package/dist/rules/ts/disable.js +21 -0
  94. package/dist/rules/ts/disable.js.map +1 -0
  95. package/dist/rules/ts/disable_x.d.ts.map +1 -1
  96. package/dist/rules/ts/disable_x.js +1 -2
  97. package/dist/rules/ts/disable_x.js.map +1 -1
  98. package/dist/rules/ts/enable.d.ts +262 -0
  99. package/dist/rules/ts/enable.d.ts.map +1 -0
  100. package/dist/rules/ts/enable.js +503 -0
  101. package/dist/rules/ts/enable.js.map +1 -0
  102. package/dist/rules/ts/enable_x.d.ts.map +1 -1
  103. package/dist/rules/ts/enable_x.js +32 -5
  104. package/dist/rules/ts/enable_x.js.map +1 -1
  105. package/dist/rules/ts.d.ts +1133 -0
  106. package/dist/rules/ts.d.ts.map +1 -0
  107. package/dist/rules/ts.js +13 -0
  108. package/dist/rules/ts.js.map +1 -0
  109. package/dist/rules/yml/enable.d.ts +39 -0
  110. package/dist/rules/yml/enable.d.ts.map +1 -0
  111. package/dist/rules/yml/enable.js +60 -0
  112. package/dist/rules/yml/enable.js.map +1 -0
  113. package/dist/rules/yml/enable_x.d.ts.map +1 -1
  114. package/dist/rules/yml/enable_x.js +57 -9
  115. package/dist/rules/yml/enable_x.js.map +1 -1
  116. package/dist/rules/yml.d.ts +73 -0
  117. package/dist/rules/yml.d.ts.map +1 -0
  118. package/dist/rules/yml.js +4 -0
  119. package/dist/rules/yml.js.map +1 -0
  120. package/dist/rules.d.ts +75 -75
  121. package/dist/rules.js +9 -9
  122. package/dist/rules.js.map +1 -1
  123. package/eslint.config.js +3 -3
  124. package/package.json +99 -99
  125. package/src/files/html.ts +1 -1
  126. package/src/files/js.ts +1 -1
  127. package/src/files/json.ts +1 -1
  128. package/src/files/jsonc.ts +4 -4
  129. package/src/files/md.ts +1 -1
  130. package/src/files/mocha.ts +1 -1
  131. package/src/files/svelte.ts +1 -1
  132. package/src/files/ts.ts +5 -5
  133. package/src/files/yml.ts +5 -5
  134. package/src/files.ts +22 -22
  135. package/src/imports/parsers.ts +15 -15
  136. package/src/imports/plugins.ts +19 -19
  137. package/src/imports.ts +8 -8
  138. package/src/index.ts +36 -36
  139. package/src/rules/_strings/id.ts +18 -18
  140. package/src/rules/_strings/level.ts +6 -6
  141. package/src/rules/_strings/state.ts +56 -56
  142. package/src/rules/_strings.ts +6 -6
  143. package/src/rules/html/enable.ts +16 -0
  144. package/src/rules/html/enable_recommended.ts +9 -0
  145. package/src/rules/html.ts +4 -0
  146. package/src/rules/js/enable.ts +524 -0
  147. package/src/rules/js/enable_stylistic.ts +608 -0
  148. package/src/rules/js.ts +4 -0
  149. package/src/rules/json/{_enable.ts → enable.ts} +33 -35
  150. package/src/rules/json/enable_x.ts +89 -50
  151. package/src/rules/{_json.ts → json.ts} +4 -4
  152. package/src/rules/jsonc/override.ts +16 -9
  153. package/src/rules/{_jsonc.ts → jsonc.ts} +4 -4
  154. package/src/rules/md/enable.ts +15 -0
  155. package/src/rules/md.ts +3 -0
  156. package/src/rules/mocha/enable.ts +3 -0
  157. package/src/rules/mocha/enable_recommended.ts +9 -0
  158. package/src/rules/mocha.ts +4 -0
  159. package/src/rules/svelte/disable.ts +9 -0
  160. package/src/rules/svelte/disable_js.ts +11 -7
  161. package/src/rules/svelte/disable_ts.ts +9 -5
  162. package/src/rules/svelte/{_enable.ts → enable.ts} +228 -129
  163. package/src/rules/svelte/enable_x.ts +20 -9
  164. package/src/rules/{_svelte.ts → svelte.ts} +15 -15
  165. package/src/rules/ts/{disable_compiler.ts → disable.ts} +22 -23
  166. package/src/rules/ts/disable_x.ts +32 -36
  167. package/src/rules/ts/{_enable.ts → enable.ts} +549 -406
  168. package/src/rules/ts/enable_x.ts +115 -90
  169. package/src/rules/{_ts.ts → ts.ts} +13 -13
  170. package/src/rules/yml/{_enable.ts → enable.ts} +64 -33
  171. package/src/rules/yml/enable_x.ts +68 -21
  172. package/src/rules/{_yml.ts → yml.ts} +4 -4
  173. package/src/rules.ts +22 -22
  174. package/tsconfig.json +161 -161
  175. package/types/markdownlint/index.d.ts +3 -3
  176. package/types/markdownlint/parser.d.ts +9 -9
  177. package/types/mocha/index.d.ts +8 -8
  178. package/src/rules/_html.ts +0 -4
  179. package/src/rules/_js.ts +0 -4
  180. package/src/rules/_md.ts +0 -3
  181. package/src/rules/_mocha.ts +0 -4
  182. package/src/rules/html/_enable.ts +0 -13
  183. package/src/rules/html/_recommended.ts +0 -7
  184. package/src/rules/js/_enable.ts +0 -287
  185. package/src/rules/js/stylistic.ts +0 -294
  186. package/src/rules/md/_enable.ts +0 -14
  187. package/src/rules/mocha/_enable.ts +0 -5
  188. package/src/rules/mocha/_recommended.ts +0 -7
  189. package/src/rules/svelte/disable_x.ts +0 -8
@@ -0,0 +1,503 @@
1
+ import { enable, level, state } from "../_strings.js";
2
+ const { ERROR, OFF } = level, { Never, Explicit } = state;
3
+ export default [
4
+ enable,
5
+ {
6
+ "@typescript-eslint/adjacent-overload-signatures": OFF,
7
+ "@typescript-eslint/array-type": [
8
+ ERROR,
9
+ {
10
+ "default": "array",
11
+ readonly: "array",
12
+ },
13
+ ],
14
+ "@typescript-eslint/await-thenable": ERROR,
15
+ "@typescript-eslint/ban-ts-comment": [
16
+ ERROR,
17
+ {
18
+ "ts-check": false,
19
+ "ts-expect-error": {
20
+ descriptionFormat: "^: BUG: .+$",
21
+ },
22
+ "ts-ignore": true,
23
+ "ts-nocheck": true,
24
+ minimumDescriptionLength: 32,
25
+ },
26
+ ],
27
+ "@typescript-eslint/ban-tslint-comment": ERROR,
28
+ "@typescript-eslint/class-literal-property-style": [ERROR, "fields"],
29
+ "@typescript-eslint/consistent-generic-constructors": [ERROR, "constructor"],
30
+ "@typescript-eslint/consistent-indexed-object-style": [ERROR, "record"],
31
+ "@typescript-eslint/consistent-type-assertions": [
32
+ ERROR,
33
+ {
34
+ assertionStyle: "as",
35
+ objectLiteralTypeAssertions: Never,
36
+ },
37
+ ],
38
+ "@typescript-eslint/consistent-type-definitions": OFF,
39
+ "@typescript-eslint/consistent-type-exports": [
40
+ ERROR,
41
+ {
42
+ fixMixedExportsWithInlineTypeSpecifier: false,
43
+ },
44
+ ],
45
+ "@typescript-eslint/consistent-type-imports": [
46
+ ERROR,
47
+ {
48
+ disallowTypeAnnotations: true,
49
+ fixStyle: "separate-type-imports",
50
+ prefer: "type-imports",
51
+ },
52
+ ],
53
+ "@typescript-eslint/explicit-function-return-type": OFF,
54
+ "@typescript-eslint/explicit-member-accessibility": [
55
+ ERROR,
56
+ {
57
+ accessibility: Explicit,
58
+ ignoredMethodNames: [],
59
+ overrides: {
60
+ properties: Explicit,
61
+ constructors: "no-public",
62
+ accessors: Explicit,
63
+ methods: Explicit,
64
+ parameterProperties: Explicit,
65
+ },
66
+ },
67
+ ],
68
+ "@typescript-eslint/explicit-module-boundary-types": OFF,
69
+ "@typescript-eslint/member-ordering": [
70
+ ERROR,
71
+ {
72
+ "default": {
73
+ memberTypes: [
74
+ "signature",
75
+ "call-signature",
76
+ "public-static-field",
77
+ "protected-static-field",
78
+ "private-static-field",
79
+ "#private-static-field",
80
+ "public-decorated-field",
81
+ "protected-decorated-field",
82
+ "private-decorated-field",
83
+ "public-instance-field",
84
+ "protected-instance-field",
85
+ "private-instance-field",
86
+ "#private-instance-field",
87
+ "public-abstract-field",
88
+ "protected-abstract-field",
89
+ "public-field",
90
+ "protected-field",
91
+ "private-field",
92
+ "#private-field",
93
+ "static-field",
94
+ "instance-field",
95
+ "abstract-field",
96
+ "decorated-field",
97
+ "field",
98
+ "static-initialization",
99
+ "public-constructor",
100
+ "protected-constructor",
101
+ "private-constructor",
102
+ "constructor",
103
+ "public-static-accessor",
104
+ "protected-static-accessor",
105
+ "private-static-accessor",
106
+ "#private-static-accessor",
107
+ "public-decorated-accessor",
108
+ "protected-decorated-accessor",
109
+ "private-decorated-accessor",
110
+ "public-instance-accessor",
111
+ "protected-instance-accessor",
112
+ "private-instance-accessor",
113
+ "#private-instance-accessor",
114
+ "public-abstract-accessor",
115
+ "protected-abstract-accessor",
116
+ "public-accessor",
117
+ "protected-accessor",
118
+ "private-accessor",
119
+ "#private-accessor",
120
+ "static-accessor",
121
+ "instance-accessor",
122
+ "abstract-accessor",
123
+ "decorated-accessor",
124
+ "accessor",
125
+ "public-static-get",
126
+ "protected-static-get",
127
+ "private-static-get",
128
+ "#private-static-get",
129
+ "public-decorated-get",
130
+ "protected-decorated-get",
131
+ "private-decorated-get",
132
+ "public-instance-get",
133
+ "protected-instance-get",
134
+ "private-instance-get",
135
+ "#private-instance-get",
136
+ "public-abstract-get",
137
+ "protected-abstract-get",
138
+ "public-get",
139
+ "protected-get",
140
+ "private-get",
141
+ "#private-get",
142
+ "static-get",
143
+ "instance-get",
144
+ "abstract-get",
145
+ "decorated-get",
146
+ "get",
147
+ "public-static-set",
148
+ "protected-static-set",
149
+ "private-static-set",
150
+ "#private-static-set",
151
+ "public-decorated-set",
152
+ "protected-decorated-set",
153
+ "private-decorated-set",
154
+ "public-instance-set",
155
+ "protected-instance-set",
156
+ "private-instance-set",
157
+ "#private-instance-set",
158
+ "public-abstract-set",
159
+ "protected-abstract-set",
160
+ "public-set",
161
+ "protected-set",
162
+ "private-set",
163
+ "#private-set",
164
+ "static-set",
165
+ "instance-set",
166
+ "abstract-set",
167
+ "decorated-set",
168
+ "set",
169
+ "public-static-method",
170
+ "protected-static-method",
171
+ "private-static-method",
172
+ "#private-static-method",
173
+ "public-decorated-method",
174
+ "protected-decorated-method",
175
+ "private-decorated-method",
176
+ "public-instance-method",
177
+ "protected-instance-method",
178
+ "private-instance-method",
179
+ "#private-instance-method",
180
+ "public-abstract-method",
181
+ "protected-abstract-method",
182
+ "public-method",
183
+ "protected-method",
184
+ "private-method",
185
+ "#private-method",
186
+ "static-method",
187
+ "instance-method",
188
+ "abstract-method",
189
+ "decorated-method",
190
+ "method",
191
+ ],
192
+ optionalityOrder: "required-first",
193
+ order: "as-written",
194
+ },
195
+ },
196
+ ],
197
+ "@typescript-eslint/method-signature-style": [ERROR, "property"],
198
+ "@typescript-eslint/naming-convention": OFF,
199
+ "@typescript-eslint/no-array-delete": ERROR,
200
+ "@typescript-eslint/no-base-to-string": [
201
+ ERROR,
202
+ {
203
+ ignoredTypeNames: [
204
+ "Error",
205
+ "RegExp",
206
+ "URL",
207
+ "URLSearchParams",
208
+ ],
209
+ },
210
+ ],
211
+ "@typescript-eslint/no-confusing-non-null-assertion": ERROR,
212
+ "@typescript-eslint/no-confusing-void-expression": [
213
+ ERROR,
214
+ {
215
+ ignoreArrowShorthand: true,
216
+ ignoreVoidOperator: true,
217
+ },
218
+ ],
219
+ "@typescript-eslint/no-duplicate-enum-values": ERROR,
220
+ "@typescript-eslint/no-duplicate-type-constituents": [
221
+ ERROR,
222
+ {
223
+ ignoreIntersections: false,
224
+ ignoreUnions: false,
225
+ },
226
+ ],
227
+ "@typescript-eslint/no-dynamic-delete": ERROR,
228
+ "@typescript-eslint/no-empty-object-type": [
229
+ ERROR,
230
+ {
231
+ allowInterfaces: Never,
232
+ allowObjectTypes: Never,
233
+ },
234
+ ],
235
+ "@typescript-eslint/no-explicit-any": [
236
+ ERROR,
237
+ {
238
+ fixToUnknown: true,
239
+ ignoreRestArgs: false,
240
+ },
241
+ ],
242
+ "@typescript-eslint/no-extra-non-null-assertion": ERROR,
243
+ "@typescript-eslint/no-extraneous-class": [
244
+ ERROR,
245
+ {
246
+ allowConstructorOnly: false,
247
+ allowEmpty: true,
248
+ allowStaticOnly: false,
249
+ allowWithDecorator: false,
250
+ },
251
+ ],
252
+ "@typescript-eslint/no-floating-promises": [
253
+ ERROR,
254
+ {
255
+ checkThenables: true,
256
+ ignoreVoid: true,
257
+ ignoreIIFE: false,
258
+ },
259
+ ],
260
+ "@typescript-eslint/no-for-in-array": ERROR,
261
+ "@typescript-eslint/no-import-type-side-effects": ERROR,
262
+ "@typescript-eslint/no-inferrable-types": [
263
+ ERROR,
264
+ {
265
+ ignoreParameters: false,
266
+ ignoreProperties: false,
267
+ },
268
+ ],
269
+ "@typescript-eslint/no-invalid-void-type": [
270
+ ERROR,
271
+ {
272
+ allowInGenericTypeArguments: true,
273
+ allowAsThisParameter: false,
274
+ },
275
+ ],
276
+ "@typescript-eslint/no-meaningless-void-operator": [
277
+ ERROR,
278
+ {
279
+ checkNever: true,
280
+ },
281
+ ],
282
+ "@typescript-eslint/no-misused-new": ERROR,
283
+ "@typescript-eslint/no-misused-promises": [
284
+ ERROR,
285
+ {
286
+ checksConditionals: true,
287
+ checksSpreads: true,
288
+ checksVoidReturn: {
289
+ arguments: true,
290
+ attributes: true,
291
+ properties: true,
292
+ returns: true,
293
+ variables: true,
294
+ },
295
+ },
296
+ ],
297
+ "@typescript-eslint/no-mixed-enums": ERROR,
298
+ "@typescript-eslint/no-namespace": OFF,
299
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": ERROR,
300
+ "@typescript-eslint/no-non-null-asserted-optional-chain": ERROR,
301
+ "@typescript-eslint/no-non-null-assertion": ERROR,
302
+ "@typescript-eslint/no-redundant-type-constituents": ERROR,
303
+ "@typescript-eslint/no-restricted-types": OFF,
304
+ "@typescript-eslint/no-require-imports": [
305
+ ERROR,
306
+ {
307
+ allow: [],
308
+ },
309
+ ],
310
+ "@typescript-eslint/no-this-alias": [
311
+ ERROR,
312
+ {
313
+ allowDestructuring: true,
314
+ allowedNames: [],
315
+ },
316
+ ],
317
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
318
+ ERROR,
319
+ {
320
+ allowComparingNullableBooleansToTrue: true,
321
+ allowComparingNullableBooleansToFalse: true,
322
+ },
323
+ ],
324
+ "@typescript-eslint/no-unnecessary-condition": [
325
+ ERROR,
326
+ {
327
+ allowConstantLoopConditions: false,
328
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
329
+ },
330
+ ],
331
+ "@typescript-eslint/no-unnecessary-qualifier": ERROR,
332
+ "@typescript-eslint/no-unnecessary-template-expression": ERROR,
333
+ "@typescript-eslint/no-unnecessary-type-arguments": ERROR,
334
+ "@typescript-eslint/no-unnecessary-type-assertion": [
335
+ ERROR,
336
+ {
337
+ typesToIgnore: [],
338
+ },
339
+ ],
340
+ "@typescript-eslint/no-unnecessary-type-constraint": ERROR,
341
+ "@typescript-eslint/no-unnecessary-type-parameters": ERROR,
342
+ "@typescript-eslint/no-unsafe-argument": ERROR,
343
+ "@typescript-eslint/no-unsafe-assignment": ERROR,
344
+ "@typescript-eslint/no-unsafe-call": ERROR,
345
+ "@typescript-eslint/no-unsafe-declaration-merging": ERROR,
346
+ "@typescript-eslint/no-unsafe-enum-comparison": ERROR,
347
+ "@typescript-eslint/no-unsafe-function-type": ERROR,
348
+ "@typescript-eslint/no-unsafe-member-access": ERROR,
349
+ "@typescript-eslint/no-unsafe-return": ERROR,
350
+ "@typescript-eslint/no-unsafe-unary-minus": ERROR,
351
+ "@typescript-eslint/no-useless-empty-export": ERROR,
352
+ "@typescript-eslint/no-wrapper-object-types": ERROR,
353
+ "@typescript-eslint/non-nullable-type-assertion-style": OFF,
354
+ "@typescript-eslint/parameter-properties": [
355
+ ERROR,
356
+ {
357
+ prefer: "parameter-property",
358
+ },
359
+ ],
360
+ "@typescript-eslint/prefer-as-const": ERROR,
361
+ "@typescript-eslint/prefer-enum-initializers": ERROR,
362
+ "@typescript-eslint/prefer-find": ERROR,
363
+ "@typescript-eslint/prefer-for-of": ERROR,
364
+ "@typescript-eslint/prefer-function-type": ERROR,
365
+ "@typescript-eslint/prefer-includes": ERROR,
366
+ "@typescript-eslint/prefer-literal-enum-member": [
367
+ ERROR,
368
+ {
369
+ allowBitwiseExpressions: false,
370
+ },
371
+ ],
372
+ "@typescript-eslint/prefer-namespace-keyword": ERROR,
373
+ "@typescript-eslint/prefer-nullish-coalescing": [
374
+ ERROR,
375
+ {
376
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
377
+ ignoreConditionalTests: false,
378
+ ignoreTernaryTests: false,
379
+ ignoreMixedLogicalExpressions: false,
380
+ ignorePrimitives: {
381
+ bigint: false,
382
+ "boolean": false,
383
+ number: false,
384
+ string: false,
385
+ },
386
+ },
387
+ ],
388
+ "@typescript-eslint/prefer-optional-chain": [
389
+ ERROR,
390
+ {
391
+ allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,
392
+ checkAny: true,
393
+ checkBigInt: true,
394
+ checkBoolean: true,
395
+ checkNumber: true,
396
+ checkString: true,
397
+ checkUnknown: true,
398
+ requireNullish: false,
399
+ },
400
+ ],
401
+ "@typescript-eslint/prefer-readonly": [
402
+ ERROR,
403
+ {
404
+ onlyInlineLambdas: false,
405
+ },
406
+ ],
407
+ "@typescript-eslint/prefer-readonly-parameter-types": OFF,
408
+ "@typescript-eslint/prefer-reduce-type-parameter": ERROR,
409
+ "@typescript-eslint/prefer-regexp-exec": ERROR,
410
+ "@typescript-eslint/prefer-return-this-type": ERROR,
411
+ "@typescript-eslint/prefer-string-starts-ends-with": [
412
+ ERROR,
413
+ {
414
+ allowSingleElementEquality: Never,
415
+ },
416
+ ],
417
+ "@typescript-eslint/promise-function-async": [
418
+ ERROR,
419
+ {
420
+ allowAny: false,
421
+ allowedPromiseNames: [],
422
+ checkArrowFunctions: true,
423
+ checkFunctionDeclarations: true,
424
+ checkFunctionExpressions: true,
425
+ checkMethodDeclarations: true,
426
+ },
427
+ ],
428
+ "@typescript-eslint/require-array-sort-compare": [
429
+ ERROR,
430
+ {
431
+ ignoreStringArrays: true,
432
+ },
433
+ ],
434
+ "@typescript-eslint/restrict-plus-operands": [
435
+ ERROR,
436
+ {
437
+ allowAny: false,
438
+ allowBoolean: false,
439
+ allowNullish: false,
440
+ allowNumberAndString: false,
441
+ allowRegExp: false,
442
+ skipCompoundAssignments: false,
443
+ },
444
+ ],
445
+ "@typescript-eslint/restrict-template-expressions": [
446
+ ERROR,
447
+ {
448
+ allowAny: true,
449
+ allowArray: true,
450
+ allowBoolean: true,
451
+ allowNullish: false,
452
+ allowNumber: true,
453
+ allowNever: false,
454
+ allowRegExp: false,
455
+ },
456
+ ],
457
+ "@typescript-eslint/return-await": [ERROR, "in-try-catch"],
458
+ "@typescript-eslint/strict-boolean-expressions": [
459
+ ERROR,
460
+ {
461
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
462
+ allowAny: false,
463
+ allowNumber: true,
464
+ allowString: false,
465
+ allowNullableBoolean: false,
466
+ allowNullableEnum: false,
467
+ allowNullableNumber: false,
468
+ allowNullableObject: false,
469
+ allowNullableString: false,
470
+ },
471
+ ],
472
+ "@typescript-eslint/switch-exhaustiveness-check": [
473
+ ERROR,
474
+ {
475
+ allowDefaultCaseForExhaustiveSwitch: false,
476
+ requireDefaultForNonUnion: true,
477
+ },
478
+ ],
479
+ "@typescript-eslint/triple-slash-reference": [
480
+ ERROR,
481
+ {
482
+ lib: Never,
483
+ path: Never,
484
+ types: Never,
485
+ },
486
+ ],
487
+ "@typescript-eslint/typedef": OFF,
488
+ "@typescript-eslint/unbound-method": [
489
+ ERROR,
490
+ {
491
+ ignoreStatic: false,
492
+ },
493
+ ],
494
+ "@typescript-eslint/unified-signatures": [
495
+ ERROR,
496
+ {
497
+ ignoreDifferentlyNamedParameters: false,
498
+ },
499
+ ],
500
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": ERROR,
501
+ },
502
+ ];
503
+ //# sourceMappingURL=enable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/ts/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MACA,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EACtB,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE5B,eAAe;IACb,MAAM;IACN;QAEE,iDAAiD,EAAE,GAAG;QACtD,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,SAAS,EAAE,OAAO;gBAClB,QAAQ,EAAE,OAAO;aAClB;SACF;QACD,mCAAmC,EAAE,KAAK;QAC1C,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,iBAAiB,EAAE;oBACjB,iBAAiB,EAAE,aAAa;iBACjC;gBACD,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;gBAClB,wBAAwB,EAAE,EAAE;aAC7B;SACF;QACD,uCAAuC,EAAE,KAAK;QAC9C,iDAAiD,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;QACpE,oDAAoD,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;QAC5E,oDAAoD,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;QACvE,+CAA+C,EAAE;YAC/C,KAAK;YACL;gBACE,cAAc,EAAE,IAAI;gBACpB,2BAA2B,EAAE,KAAK;aACnC;SACF;QACD,gDAAgD,EAAE,GAAG;QACrD,4CAA4C,EAAE;YAC5C,KAAK;YACL;gBACE,sCAAsC,EAAE,KAAK;aAC9C;SACF;QACD,4CAA4C,EAAE;YAC5C,KAAK;YACL;gBACE,uBAAuB,EAAE,IAAI;gBAC7B,QAAQ,EAAE,uBAAuB;gBACjC,MAAM,EAAE,cAAc;aACvB;SACF;QACD,kDAAkD,EAAE,GAAG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AE;YACnC,KAAK;YACL;gBACE,YAAY,EAAE,KAAK;aACpB;SACF;QACD,uCAAuC,EAAE;YACvC,KAAK;YACL;gBACE,gCAAgC,EAAE,KAAK;aACxC;SACF;QACD,2DAA2D,EAAE,KAAK;KACnE;CACO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAkFW"}
1
+ {"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA4GW"}
@@ -1,5 +1,5 @@
1
- import { id, level, state } from "../_strings.js";
2
- const { enable_x } = id, { ERROR, OFF } = level, { Always, All } = state;
1
+ import { enable_x, level, state } from "../_strings.js";
2
+ const { ERROR, OFF } = level, { Always, All } = state;
3
3
  export default [
4
4
  enable_x,
5
5
  {
@@ -73,9 +73,36 @@ export default [
73
73
  },
74
74
  ],
75
75
  "@typescript-eslint/no-useless-constructor": ERROR,
76
- "@typescript-eslint/only-throw-error": [ERROR, { allowThrowingAny: false, allowThrowingUnknown: false }],
77
- "@typescript-eslint/prefer-destructuring": [ERROR, { VariableDeclarator: { array: true, object: true }, AssignmentExpression: { array: false, object: false } }, { enforceForRenamedProperties: false, enforceForDeclarationWithTypeAnnotation: false }],
78
- "@typescript-eslint/prefer-promise-reject-errors": [ERROR, { allowEmptyReject: false }],
76
+ "@typescript-eslint/only-throw-error": [
77
+ ERROR,
78
+ {
79
+ allowThrowingAny: false,
80
+ allowThrowingUnknown: false,
81
+ },
82
+ ],
83
+ "@typescript-eslint/prefer-destructuring": [
84
+ ERROR,
85
+ {
86
+ VariableDeclarator: {
87
+ array: true,
88
+ object: true,
89
+ },
90
+ AssignmentExpression: {
91
+ array: false,
92
+ object: false,
93
+ },
94
+ },
95
+ {
96
+ enforceForRenamedProperties: false,
97
+ enforceForDeclarationWithTypeAnnotation: false,
98
+ },
99
+ ],
100
+ "@typescript-eslint/prefer-promise-reject-errors": [
101
+ ERROR,
102
+ {
103
+ allowEmptyReject: false,
104
+ },
105
+ ],
79
106
  "@typescript-eslint/require-await": ERROR,
80
107
  },
81
108
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/ts/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElD,MACA,EAAE,QAAQ,EAAE,GAAG,EAAE,EACjB,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EACtB,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAGE,2CAA2C,EAAE,GAAG;QAChD,sCAAsC,EAAE,GAAG;QAC3C,uCAAuC,EAAE,KAAK;QAC9C,iCAAiC,EAAE;YACjC,KAAK;YACL;gBACE,aAAa,EAAE,IAAI;gBAGnB,+BAA+B,EAAE,IAAI;gBACrC,iCAAiC,EAAE,IAAI;gBACvC,iCAAiC,EAAE,IAAI;aACxC;SACF;QACD,sCAAsC,EAAE;YACtC,KAAK;YACL,MAAM;SACP;QACD,+BAA+B,EAAE,GAAG;QACpC,yCAAyC,EAAE,KAAK;QAChD,0CAA0C,EAAE,GAAG;QAC/C,sCAAsC,EAAE;YACtC,KAAK;YACL;gBACE,KAAK,EAAE;oBACL,cAAc;oBACd,sBAAsB;oBACtB,wBAAwB;oBACxB,oBAAoB;iBACrB;aACF;SACF;QACD,oCAAoC,EAAE,KAAK;QAC3C,oCAAoC,EAAE,GAAG;QACzC,iCAAiC,EAAE,KAAK;QACxC,qCAAqC,EAAE,G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