linted 16.0.4-rc.1 → 16.0.5-rc.0

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