eslint-config-everything 0.0.0 → 0.0.8
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.
Potentially problematic release.
This version of eslint-config-everything might be problematic. Click here for more details.
- package/LICENSE +21 -201
- package/README.md +3 -185
- package/dist/chunk-7D4SUZUM.js +38 -0
- package/dist/chunk-7D4SUZUM.js.map +1 -0
- package/dist/chunk-BETPHOUV.js +3039 -0
- package/dist/chunk-BETPHOUV.js.map +1 -0
- package/dist/chunk-GVUZG6ZQ.js +12 -0
- package/dist/chunk-GVUZG6ZQ.js.map +1 -0
- package/dist/chunk-R4EOV26M.js +9 -0
- package/dist/chunk-R4EOV26M.js.map +1 -0
- package/dist/chunk-S5OOXTIG.js +347 -0
- package/dist/chunk-S5OOXTIG.js.map +1 -0
- package/dist/chunk-V6W3BDFE.js +450 -0
- package/dist/chunk-V6W3BDFE.js.map +1 -0
- package/dist/configs/next.d.ts +10 -0
- package/dist/configs/next.js +7693 -0
- package/dist/configs/next.js.map +1 -0
- package/dist/configs/react-internal.d.ts +9 -0
- package/dist/configs/react-internal.js +49 -0
- package/dist/configs/react-internal.js.map +1 -0
- package/dist/configs/turbo.d.ts +10 -0
- package/dist/configs/turbo.js +39 -0
- package/dist/configs/turbo.js.map +1 -0
- package/dist/configs/typescript.d.ts +10 -0
- package/dist/configs/typescript.js +18 -0
- package/dist/configs/typescript.js.map +1 -0
- package/dist/objects/ignores.d.ts +5 -0
- package/dist/objects/ignores.js +8 -0
- package/dist/objects/ignores.js.map +1 -0
- package/dist/objects/onlyWarn.d.ts +7 -0
- package/dist/objects/onlyWarn.js +8 -0
- package/dist/objects/onlyWarn.js.map +1 -0
- package/package.json +51 -32
- package/.editorconfig +0 -10
- package/.gitattributes +0 -4
- package/.prettierrc +0 -6
- package/.yarn/sdks/integrations.yml +0 -5
- package/.yarn/sdks/prettier/bin/prettier.cjs +0 -32
- package/.yarn/sdks/prettier/index.cjs +0 -32
- package/.yarn/sdks/prettier/package.json +0 -7
- package/.yarnrc.yml +0 -1
- package/eslint.config.js +0 -198
@@ -0,0 +1,450 @@
|
|
1
|
+
// src/rules/base.ts
|
2
|
+
var baseRules = {
|
3
|
+
/**
|
4
|
+
* Require return statements in array methods callbacks.
|
5
|
+
*
|
6
|
+
* 🚫 Not fixable -https://eslint.org/docs/rules/array-callback-return
|
7
|
+
*/
|
8
|
+
"array-callback-return": [
|
9
|
+
"error",
|
10
|
+
{ allowImplicit: true, checkForEach: true }
|
11
|
+
],
|
12
|
+
/**
|
13
|
+
* Treat `var` statements as if they were block scoped.
|
14
|
+
*
|
15
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/block-scoped-var
|
16
|
+
*/
|
17
|
+
"block-scoped-var": "error",
|
18
|
+
/**
|
19
|
+
* Require camel case names.
|
20
|
+
*
|
21
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/camelcase
|
22
|
+
*/
|
23
|
+
camelcase: [
|
24
|
+
"error",
|
25
|
+
{ allow: ["^UNSAFE_"], ignoreDestructuring: false, properties: "never" }
|
26
|
+
],
|
27
|
+
/**
|
28
|
+
* Require curly braces for multiline blocks.
|
29
|
+
*
|
30
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/curly
|
31
|
+
*/
|
32
|
+
curly: ["warn", "multi-line"],
|
33
|
+
/**
|
34
|
+
* Require default clauses in switch statements to be last (if used).
|
35
|
+
*
|
36
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/default-case-last
|
37
|
+
*/
|
38
|
+
"default-case-last": "error",
|
39
|
+
/**
|
40
|
+
* Require triple equals (`===` and `!==`).
|
41
|
+
*
|
42
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/eqeqeq
|
43
|
+
*/
|
44
|
+
eqeqeq: "error",
|
45
|
+
"for-direction": "error",
|
46
|
+
/**
|
47
|
+
* Require function expressions to have a name.
|
48
|
+
*
|
49
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/func-names
|
50
|
+
*/
|
51
|
+
"func-names": ["error", "as-needed"],
|
52
|
+
/**
|
53
|
+
* Require grouped accessor pairs in object literals and classes.
|
54
|
+
*
|
55
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/grouped-accessor-pairs
|
56
|
+
*/
|
57
|
+
"grouped-accessor-pairs": "error",
|
58
|
+
/**
|
59
|
+
* Require a capital letter for constructors.
|
60
|
+
*
|
61
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/new-cap
|
62
|
+
*/
|
63
|
+
"new-cap": ["error", { capIsNew: false }],
|
64
|
+
/**
|
65
|
+
* Disallow the omission of parentheses when invoking a constructor with
|
66
|
+
* no arguments.
|
67
|
+
*
|
68
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/new-parens
|
69
|
+
*/
|
70
|
+
"new-parens": "warn",
|
71
|
+
/**
|
72
|
+
* Disallow use of `alert()`.
|
73
|
+
*
|
74
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-alert
|
75
|
+
*/
|
76
|
+
"no-alert": "error",
|
77
|
+
"no-async-promise-executor": "error",
|
78
|
+
/**
|
79
|
+
* Disallow use of bitwise operators.
|
80
|
+
*
|
81
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-bitwise
|
82
|
+
*/
|
83
|
+
"no-bitwise": "error",
|
84
|
+
/**
|
85
|
+
* Disallow use of `caller`/`callee`.
|
86
|
+
*
|
87
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-caller
|
88
|
+
*/
|
89
|
+
"no-caller": "error",
|
90
|
+
"no-case-declarations": "error",
|
91
|
+
"no-compare-neg-zero": "error",
|
92
|
+
"no-cond-assign": "error",
|
93
|
+
/**
|
94
|
+
* Disallow the use of console.
|
95
|
+
*
|
96
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-console
|
97
|
+
*/
|
98
|
+
"no-console": ["error", { allow: ["info", "warn", "error"] }],
|
99
|
+
/**
|
100
|
+
* Disallow expressions where the operation doesn't affect the value.
|
101
|
+
*
|
102
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-console
|
103
|
+
*/
|
104
|
+
"no-constant-binary-expression": "error",
|
105
|
+
"no-constant-condition": "error",
|
106
|
+
/**
|
107
|
+
* Disallow returning value in constructor.
|
108
|
+
*
|
109
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-constructor-return
|
110
|
+
*/
|
111
|
+
"no-constructor-return": "error",
|
112
|
+
"no-control-regex": "error",
|
113
|
+
"no-debugger": "error",
|
114
|
+
"no-delete-var": "error",
|
115
|
+
"no-dupe-else-if": "error",
|
116
|
+
"no-duplicate-case": "error",
|
117
|
+
/**
|
118
|
+
* Disallow using an `else` if the `if` block contains a return.
|
119
|
+
*
|
120
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/no-else-return
|
121
|
+
*/
|
122
|
+
"no-else-return": "warn",
|
123
|
+
"no-empty": "error",
|
124
|
+
"no-empty-character-class": "error",
|
125
|
+
"no-empty-pattern": "error",
|
126
|
+
"no-empty-static-block": "error",
|
127
|
+
/**
|
128
|
+
* Disallow `eval()`.
|
129
|
+
*
|
130
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-eval
|
131
|
+
*/
|
132
|
+
"no-eval": "error",
|
133
|
+
"no-ex-assign": "error",
|
134
|
+
/**
|
135
|
+
* Disallow extending native objects.
|
136
|
+
*
|
137
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-extend-native
|
138
|
+
*/
|
139
|
+
"no-extend-native": "error",
|
140
|
+
/**
|
141
|
+
* Disallow unnecessary function binding.
|
142
|
+
*
|
143
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/no-extra-bind
|
144
|
+
*/
|
145
|
+
"no-extra-bind": "error",
|
146
|
+
"no-extra-boolean-cast": "error",
|
147
|
+
/**
|
148
|
+
* Disallow unnecessary labels.
|
149
|
+
*
|
150
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/no-extra-label
|
151
|
+
*/
|
152
|
+
"no-extra-label": "error",
|
153
|
+
"no-fallthrough": "error",
|
154
|
+
/**
|
155
|
+
* Disallow floating decimals.
|
156
|
+
*
|
157
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/no-floating-decimal
|
158
|
+
*/
|
159
|
+
"no-floating-decimal": "error",
|
160
|
+
"no-global-assign": "error",
|
161
|
+
/**
|
162
|
+
* Make people convert types explicitly e.g. `Boolean(foo)` instead of `!!foo`.
|
163
|
+
*
|
164
|
+
* 🔧 Partially Fixable - https://eslint.org/docs/rules/no-implicit-coercion
|
165
|
+
*/
|
166
|
+
"no-implicit-coercion": "error",
|
167
|
+
"no-invalid-regexp": "error",
|
168
|
+
"no-irregular-whitespace": "error",
|
169
|
+
/**
|
170
|
+
* Disallow usage of `__iterator__` property.
|
171
|
+
*
|
172
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-iterator
|
173
|
+
*/
|
174
|
+
"no-iterator": "error",
|
175
|
+
/**
|
176
|
+
* Disallow labels that share a name with a variable.
|
177
|
+
*
|
178
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-label-var
|
179
|
+
*/
|
180
|
+
"no-label-var": "error",
|
181
|
+
/**
|
182
|
+
* Disallow use of labels for anything other than loops and switches.
|
183
|
+
*
|
184
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-labels
|
185
|
+
*/
|
186
|
+
"no-labels": ["error"],
|
187
|
+
/**
|
188
|
+
* Disallow unnecessary nested blocks.
|
189
|
+
*
|
190
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-lone-blocks
|
191
|
+
*/
|
192
|
+
"no-lone-blocks": "error",
|
193
|
+
/**
|
194
|
+
* Disallow if as the only statement in an else block.
|
195
|
+
*
|
196
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/no-lonely-if
|
197
|
+
*/
|
198
|
+
"no-lonely-if": "warn",
|
199
|
+
"no-loss-of-precision": "error",
|
200
|
+
"no-misleading-character-class": "error",
|
201
|
+
/**
|
202
|
+
* Disallow use of chained assignment expressions.
|
203
|
+
*
|
204
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-multi-assign
|
205
|
+
*/
|
206
|
+
"no-multi-assign": ["error"],
|
207
|
+
/**
|
208
|
+
* Disallow nested ternary expressions.
|
209
|
+
*
|
210
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-nested-ternary
|
211
|
+
*/
|
212
|
+
"no-nested-ternary": "error",
|
213
|
+
/**
|
214
|
+
* Disallow `new` for side effects.
|
215
|
+
*
|
216
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-new
|
217
|
+
*/
|
218
|
+
"no-new": "error",
|
219
|
+
/**
|
220
|
+
* Disallow function constructors.
|
221
|
+
*
|
222
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-new-func
|
223
|
+
*/
|
224
|
+
"no-new-func": "error",
|
225
|
+
/**
|
226
|
+
* Disallow primitive wrapper instances, such as `new String('foo')`.
|
227
|
+
*
|
228
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-new-wrappers
|
229
|
+
*/
|
230
|
+
"no-new-wrappers": "error",
|
231
|
+
"no-nonoctal-decimal-escape": "error",
|
232
|
+
"no-octal": "error",
|
233
|
+
/**
|
234
|
+
* Disallow use of octal escape sequences in string literals.
|
235
|
+
*
|
236
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-octal-escape
|
237
|
+
*/
|
238
|
+
"no-octal-escape": "error",
|
239
|
+
/**
|
240
|
+
* Disallow reassignment of function parameters.
|
241
|
+
*
|
242
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-param-reassign
|
243
|
+
*/
|
244
|
+
"no-param-reassign": "error",
|
245
|
+
/**
|
246
|
+
* Disallow returning values from Promise executor functions.
|
247
|
+
*
|
248
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-promise-executor-return
|
249
|
+
*/
|
250
|
+
"no-promise-executor-return": "error",
|
251
|
+
/**
|
252
|
+
* Disallow usage of the deprecated `__proto__` property.
|
253
|
+
*
|
254
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-proto
|
255
|
+
*/
|
256
|
+
"no-proto": "error",
|
257
|
+
"no-prototype-builtins": "error",
|
258
|
+
"no-regex-spaces": "error",
|
259
|
+
/**
|
260
|
+
* Disallow assignment in `return` statement.
|
261
|
+
*
|
262
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-return-assign
|
263
|
+
*/
|
264
|
+
"no-return-assign": "error",
|
265
|
+
/**
|
266
|
+
* Disallow use of `javascript:` urls.
|
267
|
+
*
|
268
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-script-url
|
269
|
+
*/
|
270
|
+
"no-script-url": "error",
|
271
|
+
"no-self-assign": "error",
|
272
|
+
/**
|
273
|
+
* Disallow comparisons where both sides are exactly the same.
|
274
|
+
*
|
275
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-self-compare
|
276
|
+
*/
|
277
|
+
"no-self-compare": "error",
|
278
|
+
/**
|
279
|
+
* Disallow use of comma operator.
|
280
|
+
*
|
281
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-sequences
|
282
|
+
*/
|
283
|
+
"no-sequences": "error",
|
284
|
+
"no-shadow-restricted-names": "error",
|
285
|
+
"no-sparse-arrays": "error",
|
286
|
+
/**
|
287
|
+
* Disallow template literal placeholder syntax in regular strings, as
|
288
|
+
* these are likely errors.
|
289
|
+
*
|
290
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-template-curly-in-string
|
291
|
+
*/
|
292
|
+
"no-template-curly-in-string": "error",
|
293
|
+
/**
|
294
|
+
* Disallow initializing variables to `undefined`.
|
295
|
+
*
|
296
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/no-undef-init
|
297
|
+
*/
|
298
|
+
"no-undef-init": "warn",
|
299
|
+
"no-unexpected-multiline": "error",
|
300
|
+
/**
|
301
|
+
* Disallow ternary operators when simpler alternatives exist.
|
302
|
+
*
|
303
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-unneeded-ternary
|
304
|
+
*/
|
305
|
+
"no-unneeded-ternary": "error",
|
306
|
+
/**
|
307
|
+
* Disallow loops with a body that allows only one iteration.
|
308
|
+
*
|
309
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-unreachable-loop
|
310
|
+
*/
|
311
|
+
"no-unreachable-loop": "error",
|
312
|
+
"no-unsafe-finally": "error",
|
313
|
+
"no-unsafe-optional-chaining": "error",
|
314
|
+
"no-unused-labels": "error",
|
315
|
+
"no-unused-private-class-members": "error",
|
316
|
+
"no-useless-backreference": "error",
|
317
|
+
/**
|
318
|
+
* Disallow unnecessary `.call()` and `.apply()`.
|
319
|
+
*
|
320
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-call
|
321
|
+
*/
|
322
|
+
"no-useless-call": "error",
|
323
|
+
"no-useless-catch": "error",
|
324
|
+
/**
|
325
|
+
* Disallow useless computed property keys.
|
326
|
+
*
|
327
|
+
* � Fixable - https://eslint.org/docs/rules/no-useless-computed-key
|
328
|
+
*/
|
329
|
+
"no-useless-computed-key": "warn",
|
330
|
+
/**
|
331
|
+
* Disallow unnecessary concatenation of strings.
|
332
|
+
*
|
333
|
+
* � Not fixable - https://eslint.org/docs/rules/no-useless-concat
|
334
|
+
*/
|
335
|
+
"no-useless-concat": "error",
|
336
|
+
"no-useless-escape": "error",
|
337
|
+
/**
|
338
|
+
* Disallow renaming import, export, and destructured assignments to the
|
339
|
+
* same name.
|
340
|
+
*
|
341
|
+
* � Fixable - https://eslint.org/docs/rules/no-useless-rename
|
342
|
+
*/
|
343
|
+
"no-useless-rename": "warn",
|
344
|
+
/**
|
345
|
+
* Disallow redundant return statements.
|
346
|
+
*
|
347
|
+
* � Fixable - https://eslint.org/docs/rules/no-useless-return
|
348
|
+
*/
|
349
|
+
"no-useless-return": "warn",
|
350
|
+
/**
|
351
|
+
* Require `let` or `const` instead of `var`.
|
352
|
+
* ts transpiles let/const to var, so no need for vars any more
|
353
|
+
*
|
354
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/no-var
|
355
|
+
*/
|
356
|
+
"no-var": "error",
|
357
|
+
"no-with": "error",
|
358
|
+
/**
|
359
|
+
* Require object literal shorthand syntax.
|
360
|
+
*
|
361
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/object-shorthand
|
362
|
+
*/
|
363
|
+
"object-shorthand": "warn",
|
364
|
+
/**
|
365
|
+
* Require default to `const` instead of `let`.
|
366
|
+
* ts provides better types with const
|
367
|
+
*
|
368
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/prefer-const
|
369
|
+
*/
|
370
|
+
"prefer-const": "warn",
|
371
|
+
/**
|
372
|
+
* Require using named capture groups in regular expressions.
|
373
|
+
*
|
374
|
+
* � Not fixable - https://eslint.org/docs/rules/prefer-named-capture-group
|
375
|
+
*/
|
376
|
+
"prefer-named-capture-group": "error",
|
377
|
+
/**
|
378
|
+
* Disallow parseInt() in favor of binary, octal, and hexadecimal literals.
|
379
|
+
*
|
380
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/prefer-numeric-literals
|
381
|
+
*/
|
382
|
+
"prefer-numeric-literals": "error",
|
383
|
+
/**
|
384
|
+
* Require use of an object spread over Object.assign.
|
385
|
+
*
|
386
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/prefer-object-spread
|
387
|
+
*/
|
388
|
+
"prefer-object-spread": "warn",
|
389
|
+
/**
|
390
|
+
* Disallow use of the RegExp constructor in favor of regular expression
|
391
|
+
* literals.
|
392
|
+
*
|
393
|
+
* � Not fixable - https://eslint.org/docs/rules/prefer-regex-literals
|
394
|
+
*/
|
395
|
+
"prefer-regex-literals": "error",
|
396
|
+
/**
|
397
|
+
* Require using rest parameters instead of `arguments`.
|
398
|
+
* ts provides better types with rest args over arguments
|
399
|
+
*
|
400
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/prefer-rest-params
|
401
|
+
*/
|
402
|
+
"prefer-rest-params": "error",
|
403
|
+
/**
|
404
|
+
* Require using spread syntax instead of `.apply()`.
|
405
|
+
* ts transpiles spread to apply, so no need for manual apply
|
406
|
+
*
|
407
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/prefer-spread
|
408
|
+
*/
|
409
|
+
"prefer-spread": "error",
|
410
|
+
/**
|
411
|
+
* Require using template literals instead of string concatenation.
|
412
|
+
*
|
413
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/prefer-template
|
414
|
+
*/
|
415
|
+
"prefer-template": "warn",
|
416
|
+
"require-yield": "error",
|
417
|
+
/**
|
418
|
+
* Require a `Symbol` description.
|
419
|
+
*
|
420
|
+
* 🚫 Not fixable - https://eslint.org/docs/rules/symbol-description
|
421
|
+
*/
|
422
|
+
"symbol-description": "error",
|
423
|
+
"use-isnan": "error",
|
424
|
+
"valid-typeof": "error",
|
425
|
+
/**
|
426
|
+
* Disallow "Yoda conditions", ensuring the comparison.
|
427
|
+
*
|
428
|
+
* 🔧 Fixable - https://eslint.org/docs/rules/yoda
|
429
|
+
*/
|
430
|
+
yoda: "warn"
|
431
|
+
};
|
432
|
+
|
433
|
+
// src/objects/base.ts
|
434
|
+
var base = {
|
435
|
+
linterOptions: { reportUnusedDisableDirectives: true },
|
436
|
+
name: "javascript",
|
437
|
+
rules: baseRules
|
438
|
+
};
|
439
|
+
|
440
|
+
// src/objects/perfectionist.ts
|
441
|
+
import perfectionistPlugin from "eslint-plugin-perfectionist";
|
442
|
+
var perfectionist = [
|
443
|
+
perfectionistPlugin.configs["recommended-natural"]
|
444
|
+
];
|
445
|
+
|
446
|
+
export {
|
447
|
+
base,
|
448
|
+
perfectionist
|
449
|
+
};
|
450
|
+
//# sourceMappingURL=chunk-V6W3BDFE.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/rules/base.ts","../src/objects/base.ts","../src/objects/perfectionist.ts"],"sourcesContent":["import type { Linter } from \"eslint\";\n\nexport const baseRules = {\n /**\n * Require return statements in array methods callbacks.\n *\n * 🚫 Not fixable -https://eslint.org/docs/rules/array-callback-return\n */\n \"array-callback-return\": [\n \"error\",\n { allowImplicit: true, checkForEach: true },\n ],\n /**\n * Treat `var` statements as if they were block scoped.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/block-scoped-var\n */\n \"block-scoped-var\": \"error\",\n /**\n * Require camel case names.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/camelcase\n */\n camelcase: [\n \"error\",\n { allow: [\"^UNSAFE_\"], ignoreDestructuring: false, properties: \"never\" },\n ],\n /**\n * Require curly braces for multiline blocks.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/curly\n */\n curly: [\"warn\", \"multi-line\"],\n /**\n * Require default clauses in switch statements to be last (if used).\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/default-case-last\n */\n \"default-case-last\": \"error\",\n /**\n * Require triple equals (`===` and `!==`).\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/eqeqeq\n */\n eqeqeq: \"error\",\n \"for-direction\": \"error\",\n /**\n * Require function expressions to have a name.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/func-names\n */\n \"func-names\": [\"error\", \"as-needed\"],\n /**\n * Require grouped accessor pairs in object literals and classes.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/grouped-accessor-pairs\n */\n \"grouped-accessor-pairs\": \"error\",\n /**\n * Require a capital letter for constructors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/new-cap\n */\n \"new-cap\": [\"error\", { capIsNew: false }],\n /**\n * Disallow the omission of parentheses when invoking a constructor with\n * no arguments.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/new-parens\n */\n \"new-parens\": \"warn\",\n /**\n * Disallow use of `alert()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-alert\n */\n \"no-alert\": \"error\",\n \"no-async-promise-executor\": \"error\",\n /**\n * Disallow use of bitwise operators.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-bitwise\n */\n \"no-bitwise\": \"error\",\n /**\n * Disallow use of `caller`/`callee`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-caller\n */\n \"no-caller\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-compare-neg-zero\": \"error\",\n \"no-cond-assign\": \"error\",\n /**\n * Disallow the use of console.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-console\n */\n \"no-console\": [\"error\", { allow: [\"info\", \"warn\", \"error\"] }],\n /**\n * Disallow expressions where the operation doesn't affect the value.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-console\n */\n \"no-constant-binary-expression\": \"error\",\n \"no-constant-condition\": \"error\",\n /**\n * Disallow returning value in constructor.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-constructor-return\n */\n \"no-constructor-return\": \"error\",\n \"no-control-regex\": \"error\",\n \"no-debugger\": \"error\",\n \"no-delete-var\": \"error\",\n \"no-dupe-else-if\": \"error\",\n \"no-duplicate-case\": \"error\",\n /**\n * Disallow using an `else` if the `if` block contains a return.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-else-return\n */\n \"no-else-return\": \"warn\",\n \"no-empty\": \"error\",\n \"no-empty-character-class\": \"error\",\n \"no-empty-pattern\": \"error\",\n \"no-empty-static-block\": \"error\",\n /**\n * Disallow `eval()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-eval\n */\n \"no-eval\": \"error\",\n \"no-ex-assign\": \"error\",\n /**\n * Disallow extending native objects.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-extend-native\n */\n \"no-extend-native\": \"error\",\n /**\n * Disallow unnecessary function binding.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-bind\n */\n \"no-extra-bind\": \"error\",\n \"no-extra-boolean-cast\": \"error\",\n /**\n * Disallow unnecessary labels.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-extra-label\n */\n \"no-extra-label\": \"error\",\n \"no-fallthrough\": \"error\",\n /**\n * Disallow floating decimals.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-floating-decimal\n */\n \"no-floating-decimal\": \"error\",\n \"no-global-assign\": \"error\",\n /**\n * Make people convert types explicitly e.g. `Boolean(foo)` instead of `!!foo`.\n *\n * 🔧 Partially Fixable - https://eslint.org/docs/rules/no-implicit-coercion\n */\n \"no-implicit-coercion\": \"error\",\n \"no-invalid-regexp\": \"error\",\n \"no-irregular-whitespace\": \"error\",\n /**\n * Disallow usage of `__iterator__` property.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-iterator\n */\n \"no-iterator\": \"error\",\n /**\n * Disallow labels that share a name with a variable.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-label-var\n */\n \"no-label-var\": \"error\",\n /**\n * Disallow use of labels for anything other than loops and switches.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-labels\n */\n \"no-labels\": [\"error\"],\n /**\n * Disallow unnecessary nested blocks.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-lone-blocks\n */\n \"no-lone-blocks\": \"error\",\n /**\n * Disallow if as the only statement in an else block.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-lonely-if\n */\n \"no-lonely-if\": \"warn\",\n \"no-loss-of-precision\": \"error\",\n \"no-misleading-character-class\": \"error\",\n /**\n * Disallow use of chained assignment expressions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-multi-assign\n */\n \"no-multi-assign\": [\"error\"],\n /**\n * Disallow nested ternary expressions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-nested-ternary\n */\n \"no-nested-ternary\": \"error\",\n /**\n * Disallow `new` for side effects.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new\n */\n \"no-new\": \"error\",\n /**\n * Disallow function constructors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-func\n */\n \"no-new-func\": \"error\",\n /**\n * Disallow primitive wrapper instances, such as `new String('foo')`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-wrappers\n */\n \"no-new-wrappers\": \"error\",\n \"no-nonoctal-decimal-escape\": \"error\",\n \"no-octal\": \"error\",\n /**\n * Disallow use of octal escape sequences in string literals.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-octal-escape\n */\n \"no-octal-escape\": \"error\",\n /**\n * Disallow reassignment of function parameters.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-param-reassign\n */\n \"no-param-reassign\": \"error\",\n /**\n * Disallow returning values from Promise executor functions.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-promise-executor-return\n */\n \"no-promise-executor-return\": \"error\",\n /**\n * Disallow usage of the deprecated `__proto__` property.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-proto\n */\n \"no-proto\": \"error\",\n \"no-prototype-builtins\": \"error\",\n \"no-regex-spaces\": \"error\",\n /**\n * Disallow assignment in `return` statement.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-return-assign\n */\n \"no-return-assign\": \"error\",\n /**\n * Disallow use of `javascript:` urls.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-script-url\n */\n \"no-script-url\": \"error\",\n \"no-self-assign\": \"error\",\n /**\n * Disallow comparisons where both sides are exactly the same.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-self-compare\n */\n \"no-self-compare\": \"error\",\n /**\n * Disallow use of comma operator.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-sequences\n */\n \"no-sequences\": \"error\",\n \"no-shadow-restricted-names\": \"error\",\n \"no-sparse-arrays\": \"error\",\n /**\n * Disallow template literal placeholder syntax in regular strings, as\n * these are likely errors.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-template-curly-in-string\n */\n \"no-template-curly-in-string\": \"error\",\n /**\n * Disallow initializing variables to `undefined`.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-undef-init\n */\n \"no-undef-init\": \"warn\",\n \"no-unexpected-multiline\": \"error\",\n /**\n * Disallow ternary operators when simpler alternatives exist.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-unneeded-ternary\n */\n \"no-unneeded-ternary\": \"error\",\n /**\n * Disallow loops with a body that allows only one iteration.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-unreachable-loop\n */\n \"no-unreachable-loop\": \"error\",\n \"no-unsafe-finally\": \"error\",\n \"no-unsafe-optional-chaining\": \"error\",\n \"no-unused-labels\": \"error\",\n \"no-unused-private-class-members\": \"error\",\n \"no-useless-backreference\": \"error\",\n /**\n * Disallow unnecessary `.call()` and `.apply()`.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-call\n */\n \"no-useless-call\": \"error\",\n \"no-useless-catch\": \"error\",\n /**\n * Disallow useless computed property keys.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-computed-key\n */\n \"no-useless-computed-key\": \"warn\",\n /**\n * Disallow unnecessary concatenation of strings.\n *\n * � Not fixable - https://eslint.org/docs/rules/no-useless-concat\n */\n \"no-useless-concat\": \"error\",\n \"no-useless-escape\": \"error\",\n /**\n * Disallow renaming import, export, and destructured assignments to the\n * same name.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-rename\n */\n \"no-useless-rename\": \"warn\",\n /**\n * Disallow redundant return statements.\n *\n * � Fixable - https://eslint.org/docs/rules/no-useless-return\n */\n \"no-useless-return\": \"warn\",\n /**\n * Require `let` or `const` instead of `var`.\n * ts transpiles let/const to var, so no need for vars any more\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/no-var\n */\n \"no-var\": \"error\",\n \"no-with\": \"error\",\n /**\n * Require object literal shorthand syntax.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/object-shorthand\n */\n \"object-shorthand\": \"warn\",\n /**\n * Require default to `const` instead of `let`.\n * ts provides better types with const\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-const\n */\n \"prefer-const\": \"warn\",\n /**\n * Require using named capture groups in regular expressions.\n *\n * � Not fixable - https://eslint.org/docs/rules/prefer-named-capture-group\n */\n \"prefer-named-capture-group\": \"error\",\n /**\n * Disallow parseInt() in favor of binary, octal, and hexadecimal literals.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-numeric-literals\n */\n \"prefer-numeric-literals\": \"error\",\n /**\n * Require use of an object spread over Object.assign.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-object-spread\n */\n \"prefer-object-spread\": \"warn\",\n /**\n * Disallow use of the RegExp constructor in favor of regular expression\n * literals.\n *\n * � Not fixable - https://eslint.org/docs/rules/prefer-regex-literals\n */\n \"prefer-regex-literals\": \"error\",\n /**\n * Require using rest parameters instead of `arguments`.\n * ts provides better types with rest args over arguments\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-rest-params\n */\n \"prefer-rest-params\": \"error\",\n /**\n * Require using spread syntax instead of `.apply()`.\n * ts transpiles spread to apply, so no need for manual apply\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-spread\n */\n \"prefer-spread\": \"error\",\n /**\n * Require using template literals instead of string concatenation.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/prefer-template\n */\n \"prefer-template\": \"warn\",\n \"require-yield\": \"error\",\n /**\n * Require a `Symbol` description.\n *\n * 🚫 Not fixable - https://eslint.org/docs/rules/symbol-description\n */\n \"symbol-description\": \"error\",\n \"use-isnan\": \"error\",\n \"valid-typeof\": \"error\",\n /**\n * Disallow \"Yoda conditions\", ensuring the comparison.\n *\n * 🔧 Fixable - https://eslint.org/docs/rules/yoda\n */\n yoda: \"warn\",\n} satisfies Linter.RulesRecord;\n","import type { Linter } from \"eslint\";\nimport { baseRules } from \"../rules/base.js\";\n\nexport const base = {\n linterOptions: { reportUnusedDisableDirectives: true },\n name: \"javascript\",\n rules: baseRules,\n} satisfies Linter.Config;\n","import type { Linter } from \"eslint\";\nimport perfectionistPlugin from \"eslint-plugin-perfectionist\";\n\nexport const perfectionist = [\n perfectionistPlugin.configs[\"recommended-natural\"],\n] satisfies Linter.Config[];\n"],"mappings":";AA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