linted 15.4.7 → 15.4.8-rc.2

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