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,496 @@
1
+ import { enable, level, state } from "../_strings.js";
2
+ const { ERROR, OFF } = level, { Never, Always, AsNeeded, Consecutive, Allow, All, Multi, Both, } = state;
3
+ export default [
4
+ enable,
5
+ {
6
+ "array-callback-return": [
7
+ ERROR,
8
+ {
9
+ allowImplicit: false,
10
+ checkForEach: true,
11
+ allowVoid: true,
12
+ },
13
+ ],
14
+ "constructor-super": ERROR,
15
+ "for-direction": ERROR,
16
+ "getter-return": [
17
+ ERROR,
18
+ {
19
+ allowImplicit: false,
20
+ },
21
+ ],
22
+ "no-async-promise-executor": ERROR,
23
+ "no-await-in-loop": ERROR,
24
+ "no-class-assign": ERROR,
25
+ "no-compare-neg-zero": ERROR,
26
+ "no-cond-assign": [ERROR, Always],
27
+ "no-const-assign": ERROR,
28
+ "no-constant-binary-expression": ERROR,
29
+ "no-constant-condition": [
30
+ ERROR,
31
+ {
32
+ checkLoops: true,
33
+ },
34
+ ],
35
+ "no-constructor-return": ERROR,
36
+ "no-control-regex": ERROR,
37
+ "no-debugger": ERROR,
38
+ "no-dupe-args": ERROR,
39
+ "no-dupe-class-members": ERROR,
40
+ "no-dupe-else-if": ERROR,
41
+ "no-dupe-keys": ERROR,
42
+ "no-duplicate-case": ERROR,
43
+ "no-duplicate-imports": OFF,
44
+ "no-empty-character-class": ERROR,
45
+ "no-empty-pattern": [
46
+ ERROR,
47
+ {
48
+ allowObjectPatternsAsParameters: false,
49
+ },
50
+ ],
51
+ "no-ex-assign": ERROR,
52
+ "no-fallthrough": [
53
+ ERROR,
54
+ {
55
+ allowEmptyCase: true,
56
+ reportUnusedFallthroughComment: true,
57
+ },
58
+ ],
59
+ "no-func-assign": ERROR,
60
+ "no-import-assign": ERROR,
61
+ "no-inner-declarations": [
62
+ ERROR,
63
+ Both,
64
+ {
65
+ blockScopedFunctions: Allow,
66
+ },
67
+ ],
68
+ "no-invalid-regexp": [
69
+ ERROR,
70
+ {
71
+ allowConstructorFlags: [],
72
+ },
73
+ ],
74
+ "no-irregular-whitespace": [
75
+ ERROR,
76
+ {
77
+ skipStrings: true,
78
+ skipComments: true,
79
+ skipRegExps: true,
80
+ skipTemplates: true,
81
+ skipJSXText: true,
82
+ },
83
+ ],
84
+ "no-loss-of-precision": ERROR,
85
+ "no-misleading-character-class": ERROR,
86
+ "no-new-native-nonconstructor": ERROR,
87
+ "no-obj-calls": ERROR,
88
+ "no-promise-executor-return": [
89
+ ERROR,
90
+ {
91
+ allowVoid: true,
92
+ },
93
+ ],
94
+ "no-prototype-builtins": ERROR,
95
+ "no-self-assign": [
96
+ ERROR,
97
+ {
98
+ props: true,
99
+ },
100
+ ],
101
+ "no-self-compare": ERROR,
102
+ "no-setter-return": ERROR,
103
+ "no-sparse-arrays": ERROR,
104
+ "no-template-curly-in-string": ERROR,
105
+ "no-this-before-super": ERROR,
106
+ "no-undef": ERROR,
107
+ "no-unexpected-multiline": ERROR,
108
+ "no-unmodified-loop-condition": ERROR,
109
+ "no-unreachable": ERROR,
110
+ "no-unreachable-loop": [
111
+ ERROR,
112
+ {
113
+ ignore: [],
114
+ },
115
+ ],
116
+ "no-unsafe-finally": ERROR,
117
+ "no-unsafe-negation": [
118
+ ERROR,
119
+ {
120
+ enforceForOrderingRelations: true,
121
+ },
122
+ ],
123
+ "no-unsafe-optional-chaining": [
124
+ ERROR,
125
+ {
126
+ disallowArithmeticOperators: true,
127
+ },
128
+ ],
129
+ "no-unused-private-class-members": ERROR,
130
+ "no-unused-vars": [
131
+ ERROR,
132
+ {
133
+ vars: All,
134
+ args: All,
135
+ caughtErrors: All,
136
+ ignoreRestSiblings: false,
137
+ ignoreClassWithStaticInitBlock: false,
138
+ reportUsedIgnorePattern: true,
139
+ },
140
+ ],
141
+ "no-use-before-define": [
142
+ ERROR,
143
+ {
144
+ functions: true,
145
+ classes: true,
146
+ variables: true,
147
+ allowNamedExports: false,
148
+ },
149
+ ],
150
+ "no-useless-assignment": ERROR,
151
+ "no-useless-backreference": ERROR,
152
+ "require-atomic-updates": [
153
+ ERROR,
154
+ {
155
+ allowProperties: false,
156
+ },
157
+ ],
158
+ "use-isnan": [
159
+ ERROR,
160
+ {
161
+ enforceForSwitchCase: true,
162
+ enforceForIndexOf: true,
163
+ },
164
+ ],
165
+ "valid-typeof": [
166
+ ERROR,
167
+ {
168
+ requireStringLiterals: true,
169
+ },
170
+ ],
171
+ "accessor-pairs": [
172
+ ERROR,
173
+ {
174
+ setWithoutGet: true,
175
+ getWithoutSet: false,
176
+ enforceForClassMembers: true,
177
+ },
178
+ ],
179
+ "arrow-body-style": [
180
+ ERROR,
181
+ AsNeeded,
182
+ {
183
+ requireReturnForObjectLiteral: true,
184
+ },
185
+ ],
186
+ "block-scoped-var": ERROR,
187
+ camelcase: OFF,
188
+ "capitalized-comments": OFF,
189
+ "class-methods-use-this": OFF,
190
+ complexity: OFF,
191
+ "consistent-return": [
192
+ ERROR,
193
+ {
194
+ treatUndefinedAsUnspecified: false,
195
+ },
196
+ ],
197
+ "consistent-this": ERROR,
198
+ curly: [ERROR, Multi],
199
+ "default-case": OFF,
200
+ "default-case-last": ERROR,
201
+ "default-param-last": ERROR,
202
+ "dot-notation": [
203
+ ERROR,
204
+ {
205
+ allowKeywords: true,
206
+ },
207
+ ],
208
+ eqeqeq: [ERROR, Always],
209
+ "func-name-matching": OFF,
210
+ "func-names": OFF,
211
+ "func-style": OFF,
212
+ "grouped-accessor-pairs": OFF,
213
+ "guard-for-in": OFF,
214
+ "id-denylist": OFF,
215
+ "id-length": OFF,
216
+ "id-match": OFF,
217
+ "init-declarations": [ERROR, Always],
218
+ "logical-assignment-operators": [
219
+ ERROR,
220
+ Always,
221
+ {
222
+ enforceForIfStatements: true,
223
+ },
224
+ ],
225
+ "max-classes-per-file": OFF,
226
+ "max-depth": OFF,
227
+ "max-lines": OFF,
228
+ "max-lines-per-function": OFF,
229
+ "max-nested-callbacks": OFF,
230
+ "max-params": OFF,
231
+ "max-statements": OFF,
232
+ "multiline-comment-style": OFF,
233
+ "new-cap": OFF,
234
+ "no-alert": ERROR,
235
+ "no-array-constructor": ERROR,
236
+ "no-bitwise": [
237
+ ERROR,
238
+ {
239
+ allow: [],
240
+ int32Hint: true,
241
+ },
242
+ ],
243
+ "no-caller": ERROR,
244
+ "no-case-declarations": ERROR,
245
+ "no-console": OFF,
246
+ "no-continue": ERROR,
247
+ "no-delete-var": ERROR,
248
+ "no-div-regex": ERROR,
249
+ "no-else-return": OFF,
250
+ "no-empty": [
251
+ ERROR,
252
+ {
253
+ allowEmptyCatch: false,
254
+ },
255
+ ],
256
+ "no-empty-function": [
257
+ ERROR,
258
+ {
259
+ allow: ["constructors"],
260
+ },
261
+ ],
262
+ "no-empty-static-block": ERROR,
263
+ "no-eq-null": ERROR,
264
+ "no-eval": [
265
+ ERROR,
266
+ {
267
+ allowIndirect: false,
268
+ },
269
+ ],
270
+ "no-extend-native": [
271
+ ERROR,
272
+ {
273
+ exceptions: [],
274
+ },
275
+ ],
276
+ "no-extra-bind": ERROR,
277
+ "no-extra-boolean-cast": [
278
+ ERROR,
279
+ {
280
+ enforceForLogicalOperands: true,
281
+ },
282
+ ],
283
+ "no-extra-label": ERROR,
284
+ "no-global-assign": [
285
+ ERROR,
286
+ {
287
+ exceptions: [],
288
+ },
289
+ ],
290
+ "no-implicit-coercion": [
291
+ ERROR,
292
+ {
293
+ "boolean": true,
294
+ number: true,
295
+ string: true,
296
+ disallowTemplateShorthand: true,
297
+ allow: [],
298
+ },
299
+ ],
300
+ "no-implicit-globals": OFF,
301
+ "no-implied-eval": ERROR,
302
+ "no-inline-comments": OFF,
303
+ "no-invalid-this": [ERROR, { capIsConstructor: false }],
304
+ "no-iterator": ERROR,
305
+ "no-label-var": ERROR,
306
+ "no-lone-blocks": ERROR,
307
+ "no-lonely-if": OFF,
308
+ "no-loop-func": ERROR,
309
+ "no-magic-numbers": OFF,
310
+ "no-multi-assign": [
311
+ ERROR,
312
+ {
313
+ ignoreNonDeclaration: false,
314
+ },
315
+ ],
316
+ "no-multi-str": ERROR,
317
+ "no-negated-condition": OFF,
318
+ "no-nested-ternary": OFF,
319
+ "no-new": ERROR,
320
+ "no-new-func": ERROR,
321
+ "no-new-wrappers": ERROR,
322
+ "no-nonoctal-decimal-escape": ERROR,
323
+ "no-object-constructor": ERROR,
324
+ "no-octal": ERROR,
325
+ "no-octal-escape": ERROR,
326
+ "no-param-reassign": [
327
+ ERROR,
328
+ {
329
+ props: true,
330
+ ignorePropertyModificationsFor: [],
331
+ ignorePropertyModificationsForRegex: [],
332
+ },
333
+ ],
334
+ "no-plusplus": [
335
+ ERROR,
336
+ {
337
+ allowForLoopAfterthoughts: true,
338
+ },
339
+ ],
340
+ "no-proto": ERROR,
341
+ "no-redeclare": [ERROR, { builtinGlobals: true }],
342
+ "no-regex-spaces": OFF,
343
+ "no-restricted-exports": OFF,
344
+ "no-restricted-globals": OFF,
345
+ "no-restricted-imports": OFF,
346
+ "no-restricted-properties": OFF,
347
+ "no-restricted-syntax": OFF,
348
+ "no-return-assign": [ERROR, Always],
349
+ "no-script-url": ERROR,
350
+ "no-sequences": [
351
+ ERROR,
352
+ {
353
+ allowInParentheses: true,
354
+ },
355
+ ],
356
+ "no-shadow": OFF,
357
+ "no-shadow-restricted-names": ERROR,
358
+ "no-ternary": OFF,
359
+ "no-throw-literal": ERROR,
360
+ "no-undef-init": ERROR,
361
+ "no-undefined": OFF,
362
+ "no-underscore-dangle": OFF,
363
+ "no-unneeded-ternary": [
364
+ ERROR,
365
+ {
366
+ defaultAssignment: false,
367
+ },
368
+ ],
369
+ "no-unused-expressions": [
370
+ ERROR,
371
+ {
372
+ allowShortCircuit: true,
373
+ allowTernary: true,
374
+ allowTaggedTemplates: true,
375
+ enforceForJSX: false,
376
+ },
377
+ ],
378
+ "no-unused-labels": ERROR,
379
+ "no-useless-call": ERROR,
380
+ "no-useless-catch": ERROR,
381
+ "no-useless-computed-key": [
382
+ ERROR,
383
+ {
384
+ enforceForClassMembers: true,
385
+ },
386
+ ],
387
+ "no-useless-concat": ERROR,
388
+ "no-useless-constructor": ERROR,
389
+ "no-useless-escape": ERROR,
390
+ "no-useless-rename": [
391
+ ERROR,
392
+ {
393
+ ignoreImport: false,
394
+ ignoreExport: false,
395
+ ignoreDestructuring: false,
396
+ },
397
+ ],
398
+ "no-useless-return": ERROR,
399
+ "no-var": ERROR,
400
+ "no-void": [
401
+ ERROR,
402
+ {
403
+ allowAsStatement: true,
404
+ },
405
+ ],
406
+ "no-warning-comments": OFF,
407
+ "no-with": ERROR,
408
+ "object-shorthand": [
409
+ ERROR,
410
+ Always,
411
+ {
412
+ avoidQuotes: true,
413
+ ignoreConstructors: false,
414
+ avoidExplicitReturnArrows: false,
415
+ },
416
+ ],
417
+ "one-var": [
418
+ ERROR,
419
+ {
420
+ "var": Consecutive,
421
+ let: Consecutive,
422
+ "const": Consecutive,
423
+ separateRequires: true,
424
+ },
425
+ ],
426
+ "operator-assignment": [ERROR, Always],
427
+ "prefer-arrow-callback": [
428
+ ERROR,
429
+ {
430
+ allowNamedFunctions: false,
431
+ allowUnboundThis: true,
432
+ },
433
+ ],
434
+ "prefer-const": [
435
+ ERROR,
436
+ {
437
+ destructuring: All,
438
+ ignoreReadBeforeAssign: false,
439
+ },
440
+ ],
441
+ "prefer-destructuring": [
442
+ ERROR,
443
+ {
444
+ VariableDeclarator: {
445
+ array: true,
446
+ object: true,
447
+ },
448
+ AssignmentExpression: {
449
+ array: false,
450
+ object: false,
451
+ },
452
+ },
453
+ { enforceForRenamedProperties: true },
454
+ ],
455
+ "prefer-exponentiation-operator": ERROR,
456
+ "prefer-named-capture-group": OFF,
457
+ "prefer-numeric-literals": ERROR,
458
+ "prefer-object-has-own": ERROR,
459
+ "prefer-object-spread": ERROR,
460
+ "prefer-promise-reject-errors": [
461
+ ERROR,
462
+ {
463
+ allowEmptyReject: false,
464
+ },
465
+ ],
466
+ "prefer-regex-literals": [
467
+ ERROR,
468
+ {
469
+ disallowRedundantWrapping: true,
470
+ },
471
+ ],
472
+ "prefer-rest-params": ERROR,
473
+ "prefer-spread": ERROR,
474
+ "prefer-template": ERROR,
475
+ radix: [ERROR, AsNeeded],
476
+ "require-await": ERROR,
477
+ "require-unicode-regexp": ERROR,
478
+ "require-yield": ERROR,
479
+ "sort-imports": OFF,
480
+ "sort-keys": OFF,
481
+ "sort-vars": OFF,
482
+ strict: OFF,
483
+ "symbol-description": OFF,
484
+ "vars-on-top": ERROR,
485
+ yoda: [
486
+ ERROR,
487
+ Never,
488
+ {
489
+ exceptRange: false,
490
+ onlyEquality: false,
491
+ },
492
+ ],
493
+ "unicode-bom": OFF,
494
+ },
495
+ ];
496
+ //# sourceMappingURL=enable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/js/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,EACE,KAAK,EACL,MAAM,EACN,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAI,GACL,GAAG,KAAK,CAAC;AAEV,eAAe;IACb,MAAM;IACN;QAGE,uBAAuB,EAAE;YACvB,KAAK;YACL;gBACE,aAAa,EAAE,KAAK;gBACpB,YAAY,EAAE,IAAI;gBAClB,SAAS,EAAE,IAAI;aAChB;SACF;QACD,mBAAmB,EAAE,KAAK;QAC1B,eAAe,EAAE,KAAK;QACtB,eAAe,EAAE;YACf,KAAK;YACL;gBACE,aAAa,EAAE,KAAK;aACrB;SACF;QACD,2BAA2B,EAAE,KAAK;QAClC,kBAAkB,EAAE,KAAK;QACzB,iBAAiB,EAAE,KAAK;QACxB,qBAAqB,EAAE,KAAK;QAC5B,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;QACjC,iBAAiB,EAAE,KAAK;QACxB,+BAA+B,EAAE,KAAK;QACtC,uBAAuB,EAAE;YACvB,KAAK;YACL;gBACE,UAAU,EAAE,IAAI;aACjB;SACF;QACD,uBAAuB,EAAE,KAAK;QAC9B,kBAAkB,EAAE,KAAK;QACzB,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,uBAAuB,EAAE,KAAK;QAC9B,iBAAiB,EAAE,KAAK;QACxB,cAAc,EAAE,KAAK;QACrB,mBAAmB,EAAE,KAAK;QAC1B,sBAAsB,EAAE,GAAG;QAC3B,0BAA0B,EAAE,KAAK;QACjC,kBAAkB,EAAE;YAClB,K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