@rebeccastevens/eslint-config 3.6.1 → 3.6.3
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.
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +14 -229
- package/dist/index.d.cts +32 -24
- package/dist/index.d.ts +32 -24
- package/dist/index.js +14 -229
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
3
3
|
|
|
4
|
+
## [3.6.3](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v3.6.2...v3.6.3) (2025-02-24)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* update deps ([517d832](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/517d832388b7918cf927eacbbc6c3d792d9c6235))
|
|
10
|
+
|
|
11
|
+
## [3.6.2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v3.6.1...v3.6.2) (2025-02-23)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* rely on upstream for turning off rules for prettier ([9d2cf76](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/9d2cf76eef5717aa81809800489b523a7ce265a8))
|
|
17
|
+
|
|
4
18
|
## [3.6.1](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v3.6.0...v3.6.1) (2025-02-19)
|
|
5
19
|
|
|
6
20
|
|
package/dist/index.cjs
CHANGED
|
@@ -60,22 +60,22 @@ async function loadPackages(packageIds) {
|
|
|
60
60
|
// eslint-disable-next-line ts/no-explicit-any, ts/no-unsafe-return
|
|
61
61
|
return Promise.all(packageIds.map((id) => interopDefault(import(id))));
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const mut_installPackagesToLoad = new Set();
|
|
64
64
|
let mut_installPackagesAction = null;
|
|
65
65
|
let mut_installPackagesActionResolver = null;
|
|
66
66
|
let mut_installPackagesTimeout = null;
|
|
67
67
|
/* eslint-disable functional/no-loop-statements */
|
|
68
68
|
async function installPackages(packages) {
|
|
69
69
|
for (const p of packages) {
|
|
70
|
-
|
|
70
|
+
mut_installPackagesToLoad.add(p);
|
|
71
71
|
}
|
|
72
72
|
if (mut_installPackagesTimeout !== null) {
|
|
73
73
|
clearTimeout(mut_installPackagesTimeout);
|
|
74
74
|
}
|
|
75
75
|
mut_installPackagesTimeout = setTimeout(() => {
|
|
76
|
-
const allPackages = [...
|
|
76
|
+
const allPackages = [...mut_installPackagesToLoad.values()];
|
|
77
77
|
mut_installPackagesTimeout = null;
|
|
78
|
-
|
|
78
|
+
mut_installPackagesToLoad.clear();
|
|
79
79
|
mut_installPackagesAction = null;
|
|
80
80
|
mut_installPackagesActionResolver(allPackages);
|
|
81
81
|
mut_installPackagesActionResolver = null;
|
|
@@ -259,7 +259,8 @@ async function formatters(opts, stylistic) {
|
|
|
259
259
|
const [[pluginFormat, configPrettier, sortPackageJson, formattingReporter], [prettierPluginTailwindcss]] = await Promise.all([packages, prettierPluginTailwindcssPromise]);
|
|
260
260
|
const turnOffRulesForPrettier = {
|
|
261
261
|
...Object.fromEntries(Object.entries(configPrettier.rules ?? {}).filter(([, value]) => value === "off")),
|
|
262
|
-
|
|
262
|
+
// curly: "off",
|
|
263
|
+
"no-unexpected-multiline": "off",
|
|
263
264
|
// "style/lines-around-comment": "off",
|
|
264
265
|
"style/max-len": "off",
|
|
265
266
|
"style/no-confusing-arrow": "off",
|
|
@@ -274,230 +275,14 @@ async function formatters(opts, stylistic) {
|
|
|
274
275
|
"style/js/quotes": "off",
|
|
275
276
|
// "style/ts/lines-around-comment": "off",
|
|
276
277
|
"style/ts/quotes": "off",
|
|
277
|
-
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
"
|
|
285
|
-
"style/comma-dangle": "off",
|
|
286
|
-
"style/comma-spacing": "off",
|
|
287
|
-
"style/comma-style": "off",
|
|
288
|
-
"style/computed-property-spacing": "off",
|
|
289
|
-
"style/dot-location": "off",
|
|
290
|
-
"style/eol-last": "off",
|
|
291
|
-
"style/func-call-spacing": "off",
|
|
292
|
-
"style/function-call-argument-newline": "off",
|
|
293
|
-
"style/function-call-spacing": "off",
|
|
294
|
-
"style/function-paren-newline": "off",
|
|
295
|
-
"style/generator-star-spacing": "off",
|
|
296
|
-
"style/implicit-arrow-linebreak": "off",
|
|
297
|
-
"style/indent-binary-ops": "off",
|
|
298
|
-
"style/indent": "off",
|
|
299
|
-
"style/key-spacing": "off",
|
|
300
|
-
"style/keyword-spacing": "off",
|
|
301
|
-
"style/linebreak-style": "off",
|
|
302
|
-
"style/max-statements-per-line": "off",
|
|
303
|
-
"style/member-delimiter-style": "off",
|
|
304
|
-
"style/multiline-ternary": "off",
|
|
305
|
-
"style/new-parens": "off",
|
|
306
|
-
"style/newline-per-chained-call": "off",
|
|
307
|
-
"style/no-extra-parens": "off",
|
|
308
|
-
"style/no-extra-semi": "off",
|
|
309
|
-
"style/no-floating-decimal": "off",
|
|
310
|
-
"style/no-mixed-spaces-and-tabs": "off",
|
|
311
|
-
"style/no-multi-spaces": "off",
|
|
312
|
-
"style/no-multiple-empty-lines": "off",
|
|
313
|
-
"style/no-trailing-spaces": "off",
|
|
314
|
-
"style/no-whitespace-before-property": "off",
|
|
315
|
-
"style/nonblock-statement-body-position": "off",
|
|
316
|
-
"style/object-curly-newline": "off",
|
|
317
|
-
"style/object-curly-spacing": "off",
|
|
318
|
-
"style/object-property-newline": "off",
|
|
319
|
-
"style/one-var-declaration-per-line": "off",
|
|
320
|
-
"style/operator-linebreak": "off",
|
|
321
|
-
"style/padded-blocks": "off",
|
|
322
|
-
"style/quote-props": "off",
|
|
323
|
-
"style/rest-spread-spacing": "off",
|
|
324
|
-
"style/semi-spacing": "off",
|
|
325
|
-
"style/semi-style": "off",
|
|
326
|
-
"style/semi": "off",
|
|
327
|
-
"style/space-before-blocks": "off",
|
|
328
|
-
"style/space-before-function-paren": "off",
|
|
329
|
-
"style/space-in-parens": "off",
|
|
330
|
-
"style/space-infix-ops": "off",
|
|
331
|
-
"style/space-unary-ops": "off",
|
|
332
|
-
"style/switch-colon-spacing": "off",
|
|
333
|
-
"style/template-curly-spacing": "off",
|
|
334
|
-
"style/template-tag-spacing": "off",
|
|
335
|
-
"style/type-annotation-spacing": "off",
|
|
336
|
-
"style/type-generic-spacing": "off",
|
|
337
|
-
"style/type-named-tuple-spacing": "off",
|
|
338
|
-
"style/wrap-iife": "off",
|
|
339
|
-
"style/wrap-regex": "off",
|
|
340
|
-
"style/yield-star-spacing": "off",
|
|
341
|
-
"style/js/array-bracket-newline": "off",
|
|
342
|
-
"style/js/array-bracket-spacing": "off",
|
|
343
|
-
"style/js/array-element-newline": "off",
|
|
344
|
-
"style/js/arrow-parens": "off",
|
|
345
|
-
"style/js/arrow-spacing": "off",
|
|
346
|
-
"style/js/block-spacing": "off",
|
|
347
|
-
"style/js/brace-style": "off",
|
|
348
|
-
"style/js/comma-dangle": "off",
|
|
349
|
-
"style/js/comma-spacing": "off",
|
|
350
|
-
"style/js/comma-style": "off",
|
|
351
|
-
"style/js/computed-property-spacing": "off",
|
|
352
|
-
"style/js/dot-location": "off",
|
|
353
|
-
"style/js/eol-last": "off",
|
|
354
|
-
"style/js/func-call-spacing": "off",
|
|
355
|
-
"style/js/function-call-argument-newline": "off",
|
|
356
|
-
"style/js/function-call-spacing": "off",
|
|
357
|
-
"style/js/function-paren-newline": "off",
|
|
358
|
-
"style/js/generator-star-spacing": "off",
|
|
359
|
-
"style/js/implicit-arrow-linebreak": "off",
|
|
360
|
-
"style/js/indent": "off",
|
|
361
|
-
"style/js/jsx-quotes": "off",
|
|
362
|
-
"style/js/key-spacing": "off",
|
|
363
|
-
"style/js/keyword-spacing": "off",
|
|
364
|
-
"style/js/linebreak-style": "off",
|
|
365
|
-
"style/js/max-statements-per-line": "off",
|
|
366
|
-
"style/js/multiline-ternary": "off",
|
|
367
|
-
"style/js/new-parens": "off",
|
|
368
|
-
"style/js/newline-per-chained-call": "off",
|
|
369
|
-
"style/js/no-extra-parens": "off",
|
|
370
|
-
"style/js/no-extra-semi": "off",
|
|
371
|
-
"style/js/no-floating-decimal": "off",
|
|
372
|
-
"style/js/no-mixed-spaces-and-tabs": "off",
|
|
373
|
-
"style/js/no-multi-spaces": "off",
|
|
374
|
-
"style/js/no-multiple-empty-lines": "off",
|
|
375
|
-
"style/js/no-trailing-spaces": "off",
|
|
376
|
-
"style/js/no-whitespace-before-property": "off",
|
|
377
|
-
"style/js/nonblock-statement-body-position": "off",
|
|
378
|
-
"style/js/object-curly-newline": "off",
|
|
379
|
-
"style/js/object-curly-spacing": "off",
|
|
380
|
-
"style/js/object-property-newline": "off",
|
|
381
|
-
"style/js/one-var-declaration-per-line": "off",
|
|
382
|
-
"style/js/operator-linebreak": "off",
|
|
383
|
-
"style/js/padded-blocks": "off",
|
|
384
|
-
"style/js/quote-props": "off",
|
|
385
|
-
"style/js/rest-spread-spacing": "off",
|
|
386
|
-
"style/js/semi-spacing": "off",
|
|
387
|
-
"style/js/semi-style": "off",
|
|
388
|
-
"style/js/semi": "off",
|
|
389
|
-
"style/js/space-before-blocks": "off",
|
|
390
|
-
"style/js/space-before-function-paren": "off",
|
|
391
|
-
"style/js/space-in-parens": "off",
|
|
392
|
-
"style/js/space-infix-ops": "off",
|
|
393
|
-
"style/js/space-unary-ops": "off",
|
|
394
|
-
"style/js/switch-colon-spacing": "off",
|
|
395
|
-
"style/js/template-curly-spacing": "off",
|
|
396
|
-
"style/js/template-tag-spacing": "off",
|
|
397
|
-
"style/js/wrap-iife": "off",
|
|
398
|
-
"style/js/wrap-regex": "off",
|
|
399
|
-
"style/js/yield-star-spacing": "off",
|
|
400
|
-
"style/jsx-child-element-spacing": "off",
|
|
401
|
-
"style/jsx-closing-bracket-location": "off",
|
|
402
|
-
"style/jsx-closing-tag-location": "off",
|
|
403
|
-
"style/jsx-curly-newline": "off",
|
|
404
|
-
"style/jsx-curly-spacing": "off",
|
|
405
|
-
"style/jsx-equals-spacing": "off",
|
|
406
|
-
"style/jsx-first-prop-new-line": "off",
|
|
407
|
-
"style/jsx-indent-props": "off",
|
|
408
|
-
"style/jsx-indent": "off",
|
|
409
|
-
"style/jsx-max-props-per-line": "off",
|
|
410
|
-
"style/jsx-newline": "off",
|
|
411
|
-
"style/jsx-one-expression-per-line": "off",
|
|
412
|
-
"style/jsx-props-no-multi-spaces": "off",
|
|
413
|
-
"style/jsx-quotes": "off",
|
|
414
|
-
"style/jsx-tag-spacing": "off",
|
|
415
|
-
"style/jsx-wrap-multilines": "off",
|
|
416
|
-
"style/jsx/jsx-child-element-spacing": "off",
|
|
417
|
-
"style/jsx/jsx-closing-bracket-location": "off",
|
|
418
|
-
"style/jsx/jsx-closing-tag-location": "off",
|
|
419
|
-
"style/jsx/jsx-curly-newline": "off",
|
|
420
|
-
"style/jsx/jsx-curly-spacing": "off",
|
|
421
|
-
"style/jsx/jsx-equals-spacing": "off",
|
|
422
|
-
"style/jsx/jsx-first-prop-new-line": "off",
|
|
423
|
-
"style/jsx/jsx-indent-props": "off",
|
|
424
|
-
"style/jsx/jsx-indent": "off",
|
|
425
|
-
"style/jsx/jsx-max-props-per-line": "off",
|
|
426
|
-
"style/ts/block-spacing": "off",
|
|
427
|
-
"style/ts/brace-style": "off",
|
|
428
|
-
"style/ts/comma-dangle": "off",
|
|
429
|
-
"style/ts/comma-spacing": "off",
|
|
430
|
-
"style/ts/func-call-spacing": "off",
|
|
431
|
-
"style/ts/function-call-spacing": "off",
|
|
432
|
-
"style/ts/indent": "off",
|
|
433
|
-
"style/ts/key-spacing": "off",
|
|
434
|
-
"style/ts/keyword-spacing": "off",
|
|
435
|
-
"style/ts/member-delimiter-style": "off",
|
|
436
|
-
"style/ts/no-extra-parens": "off",
|
|
437
|
-
"style/ts/no-extra-semi": "off",
|
|
438
|
-
"style/ts/object-curly-spacing": "off",
|
|
439
|
-
"style/ts/semi": "off",
|
|
440
|
-
"style/ts/space-before-blocks": "off",
|
|
441
|
-
"style/ts/space-before-function-paren": "off",
|
|
442
|
-
"style/ts/space-infix-ops": "off",
|
|
443
|
-
"style/ts/type-annotation-spacing": "off",
|
|
444
|
-
"ts/block-spacing": "off",
|
|
445
|
-
"ts/brace-style": "off",
|
|
446
|
-
"ts/comma-dangle": "off",
|
|
447
|
-
"ts/comma-spacing": "off",
|
|
448
|
-
"ts/func-call-spacing": "off",
|
|
449
|
-
"ts/indent": "off",
|
|
450
|
-
"ts/key-spacing": "off",
|
|
451
|
-
"ts/keyword-spacing": "off",
|
|
452
|
-
"ts/member-delimiter-style": "off",
|
|
453
|
-
"ts/no-extra-parens": "off",
|
|
454
|
-
"ts/no-extra-semi": "off",
|
|
455
|
-
"ts/object-curly-spacing": "off",
|
|
456
|
-
"ts/semi": "off",
|
|
457
|
-
"ts/space-before-blocks": "off",
|
|
458
|
-
"ts/space-before-function-paren": "off",
|
|
459
|
-
"ts/space-infix-ops": "off",
|
|
460
|
-
"ts/type-annotation-spacing": "off",
|
|
461
|
-
"unicorn/empty-brace-spaces": "off",
|
|
462
|
-
"unicorn/no-nested-ternary": "off",
|
|
463
|
-
"unicorn/number-literal-case": "off",
|
|
464
|
-
"vue/array-bracket-newline": "off",
|
|
465
|
-
"vue/array-bracket-spacing": "off",
|
|
466
|
-
"vue/array-element-newline": "off",
|
|
467
|
-
"vue/arrow-spacing": "off",
|
|
468
|
-
"vue/block-spacing": "off",
|
|
469
|
-
"vue/block-tag-newline": "off",
|
|
470
|
-
"vue/brace-style": "off",
|
|
471
|
-
"vue/comma-dangle": "off",
|
|
472
|
-
"vue/comma-spacing": "off",
|
|
473
|
-
"vue/comma-style": "off",
|
|
474
|
-
"vue/dot-location": "off",
|
|
475
|
-
"vue/func-call-spacing": "off",
|
|
476
|
-
"vue/html-closing-bracket-newline": "off",
|
|
477
|
-
"vue/html-closing-bracket-spacing": "off",
|
|
478
|
-
"vue/html-end-tags": "off",
|
|
479
|
-
"vue/html-indent": "off",
|
|
480
|
-
"vue/html-quotes": "off",
|
|
481
|
-
"vue/key-spacing": "off",
|
|
482
|
-
"vue/keyword-spacing": "off",
|
|
483
|
-
"vue/max-attributes-per-line": "off",
|
|
484
|
-
"vue/multiline-html-element-content-newline": "off",
|
|
485
|
-
"vue/multiline-ternary": "off",
|
|
486
|
-
"vue/mustache-interpolation-spacing": "off",
|
|
487
|
-
"vue/no-extra-parens": "off",
|
|
488
|
-
"vue/no-multi-spaces": "off",
|
|
489
|
-
"vue/no-spaces-around-equal-signs-in-attribute": "off",
|
|
490
|
-
"vue/object-curly-newline": "off",
|
|
491
|
-
"vue/object-curly-spacing": "off",
|
|
492
|
-
"vue/object-property-newline": "off",
|
|
493
|
-
"vue/operator-linebreak": "off",
|
|
494
|
-
"vue/quote-props": "off",
|
|
495
|
-
"vue/script-indent": "off",
|
|
496
|
-
"vue/singleline-html-element-content-newline": "off",
|
|
497
|
-
"vue/space-in-parens": "off",
|
|
498
|
-
"vue/space-infix-ops": "off",
|
|
499
|
-
"vue/space-unary-ops": "off",
|
|
500
|
-
"vue/template-curly-spacing": "off",
|
|
278
|
+
"ts/lines-around-comment": "off",
|
|
279
|
+
"ts/quotes": "off",
|
|
280
|
+
// "babel/quotes": "off",
|
|
281
|
+
// "unicorn/template-indent": "off",
|
|
282
|
+
"vue/html-self-closing": "off",
|
|
283
|
+
"vue/max-len": "off",
|
|
284
|
+
// other
|
|
285
|
+
"no-irregular-whitespace": "off",
|
|
501
286
|
"yaml/block-sequence-hyphen-indicator-newline": "off",
|
|
502
287
|
};
|
|
503
288
|
const mut_configs = [
|
package/dist/index.d.cts
CHANGED
|
@@ -96,106 +96,106 @@ interface RuleOptions {
|
|
|
96
96
|
"format/prettier"?: Linter.RuleEntry<FormatPrettier>;
|
|
97
97
|
/**
|
|
98
98
|
* Enforce functional parameters.
|
|
99
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
99
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/functional-parameters.md
|
|
100
100
|
*/
|
|
101
101
|
"functional/functional-parameters"?: Linter.RuleEntry<FunctionalFunctionalParameters>;
|
|
102
102
|
/**
|
|
103
103
|
* Enforce treating data as immutable.
|
|
104
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
104
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/immutable-data.md
|
|
105
105
|
*/
|
|
106
106
|
"functional/immutable-data"?: Linter.RuleEntry<FunctionalImmutableData>;
|
|
107
107
|
/**
|
|
108
108
|
* Disallow inheritance in classes.
|
|
109
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
109
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-class-inheritance.md
|
|
110
110
|
*/
|
|
111
111
|
"functional/no-class-inheritance"?: Linter.RuleEntry<FunctionalNoClassInheritance>;
|
|
112
112
|
/**
|
|
113
113
|
* Disallow classes.
|
|
114
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
114
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-classes.md
|
|
115
115
|
*/
|
|
116
116
|
"functional/no-classes"?: Linter.RuleEntry<FunctionalNoClasses>;
|
|
117
117
|
/**
|
|
118
118
|
* Disallow conditional statements.
|
|
119
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
119
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-conditional-statements.md
|
|
120
120
|
*/
|
|
121
121
|
"functional/no-conditional-statements"?: Linter.RuleEntry<FunctionalNoConditionalStatements>;
|
|
122
122
|
/**
|
|
123
123
|
* Disallow expression statements.
|
|
124
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
124
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-expression-statements.md
|
|
125
125
|
*/
|
|
126
126
|
"functional/no-expression-statements"?: Linter.RuleEntry<FunctionalNoExpressionStatements>;
|
|
127
127
|
/**
|
|
128
128
|
* Disallow mutable variables.
|
|
129
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
129
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-let.md
|
|
130
130
|
*/
|
|
131
131
|
"functional/no-let"?: Linter.RuleEntry<FunctionalNoLet>;
|
|
132
132
|
/**
|
|
133
133
|
* Disallow imperative loops.
|
|
134
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
134
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-loop-statements.md
|
|
135
135
|
*/
|
|
136
136
|
"functional/no-loop-statements"?: Linter.RuleEntry<[
|
|
137
137
|
]>;
|
|
138
138
|
/**
|
|
139
139
|
* Restrict types so that only members of the same kind are allowed in them.
|
|
140
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
140
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-mixed-types.md
|
|
141
141
|
*/
|
|
142
142
|
"functional/no-mixed-types"?: Linter.RuleEntry<FunctionalNoMixedTypes>;
|
|
143
143
|
/**
|
|
144
144
|
* Disallow rejecting promises.
|
|
145
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
145
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-promise-reject.md
|
|
146
146
|
*/
|
|
147
147
|
"functional/no-promise-reject"?: Linter.RuleEntry<[
|
|
148
148
|
]>;
|
|
149
149
|
/**
|
|
150
150
|
* Disallow functions that don't return anything.
|
|
151
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
151
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-return-void.md
|
|
152
152
|
*/
|
|
153
153
|
"functional/no-return-void"?: Linter.RuleEntry<FunctionalNoReturnVoid>;
|
|
154
154
|
/**
|
|
155
155
|
* Disallow this access.
|
|
156
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
156
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-this-expressions.md
|
|
157
157
|
*/
|
|
158
158
|
"functional/no-this-expressions"?: Linter.RuleEntry<[
|
|
159
159
|
]>;
|
|
160
160
|
/**
|
|
161
161
|
* Disallow throwing exceptions.
|
|
162
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
162
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-throw-statements.md
|
|
163
163
|
*/
|
|
164
164
|
"functional/no-throw-statements"?: Linter.RuleEntry<FunctionalNoThrowStatements>;
|
|
165
165
|
/**
|
|
166
166
|
* Disallow try-catch[-finally] and try-finally patterns.
|
|
167
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
167
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-try-statements.md
|
|
168
168
|
*/
|
|
169
169
|
"functional/no-try-statements"?: Linter.RuleEntry<FunctionalNoTryStatements>;
|
|
170
170
|
/**
|
|
171
171
|
* Require function parameters to be typed as certain immutability
|
|
172
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
172
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-immutable-types.md
|
|
173
173
|
*/
|
|
174
174
|
"functional/prefer-immutable-types"?: Linter.RuleEntry<FunctionalPreferImmutableTypes>;
|
|
175
175
|
/**
|
|
176
176
|
* Prefer property signatures over method signatures.
|
|
177
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
177
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-property-signatures.md
|
|
178
178
|
*/
|
|
179
179
|
"functional/prefer-property-signatures"?: Linter.RuleEntry<FunctionalPreferPropertySignatures>;
|
|
180
180
|
/**
|
|
181
181
|
* Prefer readonly types over mutable types.
|
|
182
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
182
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-readonly-type.md
|
|
183
183
|
* @deprecated
|
|
184
184
|
*/
|
|
185
185
|
"functional/prefer-readonly-type"?: Linter.RuleEntry<FunctionalPreferReadonlyType>;
|
|
186
186
|
/**
|
|
187
187
|
* Replaces `x => f(x)` with just `f`.
|
|
188
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
188
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-tacit.md
|
|
189
189
|
*/
|
|
190
190
|
"functional/prefer-tacit"?: Linter.RuleEntry<FunctionalPreferTacit>;
|
|
191
191
|
/**
|
|
192
192
|
* Require consistently using either `readonly` keywords or `Readonly<T>`
|
|
193
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
193
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/readonly-type.md
|
|
194
194
|
*/
|
|
195
195
|
"functional/readonly-type"?: Linter.RuleEntry<FunctionalReadonlyType>;
|
|
196
196
|
/**
|
|
197
197
|
* Enforce the immutability of types based on patterns.
|
|
198
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
198
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/type-declaration-immutability.md
|
|
199
199
|
*/
|
|
200
200
|
"functional/type-declaration-immutability"?: Linter.RuleEntry<FunctionalTypeDeclarationImmutability>;
|
|
201
201
|
/**
|
|
@@ -1654,7 +1654,7 @@ interface RuleOptions {
|
|
|
1654
1654
|
*/
|
|
1655
1655
|
"react-naming-convention/filename-extension"?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
1656
1656
|
/**
|
|
1657
|
-
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
1657
|
+
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
1658
1658
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
1659
1659
|
*/
|
|
1660
1660
|
"react-naming-convention/use-state"?: Linter.RuleEntry<[
|
|
@@ -1685,7 +1685,7 @@ interface RuleOptions {
|
|
|
1685
1685
|
"react/jsx-no-duplicate-props"?: Linter.RuleEntry<[
|
|
1686
1686
|
]>;
|
|
1687
1687
|
/**
|
|
1688
|
-
*
|
|
1688
|
+
* marks variables used in JSX as used
|
|
1689
1689
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
1690
1690
|
*/
|
|
1691
1691
|
"react/jsx-uses-vars"?: Linter.RuleEntry<[
|
|
@@ -1846,6 +1846,12 @@ interface RuleOptions {
|
|
|
1846
1846
|
*/
|
|
1847
1847
|
"react/no-missing-component-display-name"?: Linter.RuleEntry<[
|
|
1848
1848
|
]>;
|
|
1849
|
+
/**
|
|
1850
|
+
* require 'displayName' for contexts.
|
|
1851
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
1852
|
+
*/
|
|
1853
|
+
"react/no-missing-context-display-name"?: Linter.RuleEntry<[
|
|
1854
|
+
]>;
|
|
1849
1855
|
/**
|
|
1850
1856
|
* require 'key' when rendering list
|
|
1851
1857
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
@@ -1943,7 +1949,7 @@ interface RuleOptions {
|
|
|
1943
1949
|
"react/no-use-context"?: Linter.RuleEntry<[
|
|
1944
1950
|
]>;
|
|
1945
1951
|
/**
|
|
1946
|
-
* disallow
|
|
1952
|
+
* disallow useless fragments
|
|
1947
1953
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
1948
1954
|
*/
|
|
1949
1955
|
"react/no-useless-fragment"?: Linter.RuleEntry<ReactNoUselessFragment>;
|
|
@@ -1978,7 +1984,7 @@ interface RuleOptions {
|
|
|
1978
1984
|
"react/prefer-shorthand-fragment"?: Linter.RuleEntry<[
|
|
1979
1985
|
]>;
|
|
1980
1986
|
/**
|
|
1981
|
-
*
|
|
1987
|
+
* marks variables used in JSX as used
|
|
1982
1988
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
1983
1989
|
*/
|
|
1984
1990
|
"react/use-jsx-vars"?: Linter.RuleEntry<[
|
|
@@ -8071,6 +8077,7 @@ type FunctionalImmutableData = [
|
|
|
8071
8077
|
ignoreIdentifierPattern?: (string | string[]);
|
|
8072
8078
|
ignoreAccessorPattern?: (string | string[]);
|
|
8073
8079
|
ignoreClasses?: (boolean | "fieldsOnly");
|
|
8080
|
+
ignoreMapsAndSets?: boolean;
|
|
8074
8081
|
ignoreImmediateMutation?: boolean;
|
|
8075
8082
|
ignoreNonConstDeclarations?: (boolean | {
|
|
8076
8083
|
treatParametersAsConst?: boolean;
|
|
@@ -8121,6 +8128,7 @@ type FunctionalImmutableData = [
|
|
|
8121
8128
|
ignoreIdentifierPattern?: (string | string[]);
|
|
8122
8129
|
ignoreAccessorPattern?: (string | string[]);
|
|
8123
8130
|
ignoreClasses?: (boolean | "fieldsOnly");
|
|
8131
|
+
ignoreMapsAndSets?: boolean;
|
|
8124
8132
|
ignoreImmediateMutation?: boolean;
|
|
8125
8133
|
ignoreNonConstDeclarations?: (boolean | {
|
|
8126
8134
|
treatParametersAsConst?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -96,106 +96,106 @@ interface RuleOptions {
|
|
|
96
96
|
"format/prettier"?: Linter.RuleEntry<FormatPrettier>;
|
|
97
97
|
/**
|
|
98
98
|
* Enforce functional parameters.
|
|
99
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
99
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/functional-parameters.md
|
|
100
100
|
*/
|
|
101
101
|
"functional/functional-parameters"?: Linter.RuleEntry<FunctionalFunctionalParameters>;
|
|
102
102
|
/**
|
|
103
103
|
* Enforce treating data as immutable.
|
|
104
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
104
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/immutable-data.md
|
|
105
105
|
*/
|
|
106
106
|
"functional/immutable-data"?: Linter.RuleEntry<FunctionalImmutableData>;
|
|
107
107
|
/**
|
|
108
108
|
* Disallow inheritance in classes.
|
|
109
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
109
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-class-inheritance.md
|
|
110
110
|
*/
|
|
111
111
|
"functional/no-class-inheritance"?: Linter.RuleEntry<FunctionalNoClassInheritance>;
|
|
112
112
|
/**
|
|
113
113
|
* Disallow classes.
|
|
114
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
114
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-classes.md
|
|
115
115
|
*/
|
|
116
116
|
"functional/no-classes"?: Linter.RuleEntry<FunctionalNoClasses>;
|
|
117
117
|
/**
|
|
118
118
|
* Disallow conditional statements.
|
|
119
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
119
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-conditional-statements.md
|
|
120
120
|
*/
|
|
121
121
|
"functional/no-conditional-statements"?: Linter.RuleEntry<FunctionalNoConditionalStatements>;
|
|
122
122
|
/**
|
|
123
123
|
* Disallow expression statements.
|
|
124
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
124
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-expression-statements.md
|
|
125
125
|
*/
|
|
126
126
|
"functional/no-expression-statements"?: Linter.RuleEntry<FunctionalNoExpressionStatements>;
|
|
127
127
|
/**
|
|
128
128
|
* Disallow mutable variables.
|
|
129
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
129
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-let.md
|
|
130
130
|
*/
|
|
131
131
|
"functional/no-let"?: Linter.RuleEntry<FunctionalNoLet>;
|
|
132
132
|
/**
|
|
133
133
|
* Disallow imperative loops.
|
|
134
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
134
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-loop-statements.md
|
|
135
135
|
*/
|
|
136
136
|
"functional/no-loop-statements"?: Linter.RuleEntry<[
|
|
137
137
|
]>;
|
|
138
138
|
/**
|
|
139
139
|
* Restrict types so that only members of the same kind are allowed in them.
|
|
140
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
140
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-mixed-types.md
|
|
141
141
|
*/
|
|
142
142
|
"functional/no-mixed-types"?: Linter.RuleEntry<FunctionalNoMixedTypes>;
|
|
143
143
|
/**
|
|
144
144
|
* Disallow rejecting promises.
|
|
145
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
145
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-promise-reject.md
|
|
146
146
|
*/
|
|
147
147
|
"functional/no-promise-reject"?: Linter.RuleEntry<[
|
|
148
148
|
]>;
|
|
149
149
|
/**
|
|
150
150
|
* Disallow functions that don't return anything.
|
|
151
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
151
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-return-void.md
|
|
152
152
|
*/
|
|
153
153
|
"functional/no-return-void"?: Linter.RuleEntry<FunctionalNoReturnVoid>;
|
|
154
154
|
/**
|
|
155
155
|
* Disallow this access.
|
|
156
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
156
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-this-expressions.md
|
|
157
157
|
*/
|
|
158
158
|
"functional/no-this-expressions"?: Linter.RuleEntry<[
|
|
159
159
|
]>;
|
|
160
160
|
/**
|
|
161
161
|
* Disallow throwing exceptions.
|
|
162
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
162
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-throw-statements.md
|
|
163
163
|
*/
|
|
164
164
|
"functional/no-throw-statements"?: Linter.RuleEntry<FunctionalNoThrowStatements>;
|
|
165
165
|
/**
|
|
166
166
|
* Disallow try-catch[-finally] and try-finally patterns.
|
|
167
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
167
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/no-try-statements.md
|
|
168
168
|
*/
|
|
169
169
|
"functional/no-try-statements"?: Linter.RuleEntry<FunctionalNoTryStatements>;
|
|
170
170
|
/**
|
|
171
171
|
* Require function parameters to be typed as certain immutability
|
|
172
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
172
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-immutable-types.md
|
|
173
173
|
*/
|
|
174
174
|
"functional/prefer-immutable-types"?: Linter.RuleEntry<FunctionalPreferImmutableTypes>;
|
|
175
175
|
/**
|
|
176
176
|
* Prefer property signatures over method signatures.
|
|
177
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
177
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-property-signatures.md
|
|
178
178
|
*/
|
|
179
179
|
"functional/prefer-property-signatures"?: Linter.RuleEntry<FunctionalPreferPropertySignatures>;
|
|
180
180
|
/**
|
|
181
181
|
* Prefer readonly types over mutable types.
|
|
182
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
182
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-readonly-type.md
|
|
183
183
|
* @deprecated
|
|
184
184
|
*/
|
|
185
185
|
"functional/prefer-readonly-type"?: Linter.RuleEntry<FunctionalPreferReadonlyType>;
|
|
186
186
|
/**
|
|
187
187
|
* Replaces `x => f(x)` with just `f`.
|
|
188
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
188
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/prefer-tacit.md
|
|
189
189
|
*/
|
|
190
190
|
"functional/prefer-tacit"?: Linter.RuleEntry<FunctionalPreferTacit>;
|
|
191
191
|
/**
|
|
192
192
|
* Require consistently using either `readonly` keywords or `Readonly<T>`
|
|
193
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
193
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/readonly-type.md
|
|
194
194
|
*/
|
|
195
195
|
"functional/readonly-type"?: Linter.RuleEntry<FunctionalReadonlyType>;
|
|
196
196
|
/**
|
|
197
197
|
* Enforce the immutability of types based on patterns.
|
|
198
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/
|
|
198
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.1/docs/rules/type-declaration-immutability.md
|
|
199
199
|
*/
|
|
200
200
|
"functional/type-declaration-immutability"?: Linter.RuleEntry<FunctionalTypeDeclarationImmutability>;
|
|
201
201
|
/**
|
|
@@ -1654,7 +1654,7 @@ interface RuleOptions {
|
|
|
1654
1654
|
*/
|
|
1655
1655
|
"react-naming-convention/filename-extension"?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
1656
1656
|
/**
|
|
1657
|
-
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
1657
|
+
* enforce destructuring and symmetric naming of 'useState' hook value and setter
|
|
1658
1658
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
1659
1659
|
*/
|
|
1660
1660
|
"react-naming-convention/use-state"?: Linter.RuleEntry<[
|
|
@@ -1685,7 +1685,7 @@ interface RuleOptions {
|
|
|
1685
1685
|
"react/jsx-no-duplicate-props"?: Linter.RuleEntry<[
|
|
1686
1686
|
]>;
|
|
1687
1687
|
/**
|
|
1688
|
-
*
|
|
1688
|
+
* marks variables used in JSX as used
|
|
1689
1689
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
1690
1690
|
*/
|
|
1691
1691
|
"react/jsx-uses-vars"?: Linter.RuleEntry<[
|
|
@@ -1846,6 +1846,12 @@ interface RuleOptions {
|
|
|
1846
1846
|
*/
|
|
1847
1847
|
"react/no-missing-component-display-name"?: Linter.RuleEntry<[
|
|
1848
1848
|
]>;
|
|
1849
|
+
/**
|
|
1850
|
+
* require 'displayName' for contexts.
|
|
1851
|
+
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
1852
|
+
*/
|
|
1853
|
+
"react/no-missing-context-display-name"?: Linter.RuleEntry<[
|
|
1854
|
+
]>;
|
|
1849
1855
|
/**
|
|
1850
1856
|
* require 'key' when rendering list
|
|
1851
1857
|
* @see https://eslint-react.xyz/docs/rules/no-missing-key
|
|
@@ -1943,7 +1949,7 @@ interface RuleOptions {
|
|
|
1943
1949
|
"react/no-use-context"?: Linter.RuleEntry<[
|
|
1944
1950
|
]>;
|
|
1945
1951
|
/**
|
|
1946
|
-
* disallow
|
|
1952
|
+
* disallow useless fragments
|
|
1947
1953
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
1948
1954
|
*/
|
|
1949
1955
|
"react/no-useless-fragment"?: Linter.RuleEntry<ReactNoUselessFragment>;
|
|
@@ -1978,7 +1984,7 @@ interface RuleOptions {
|
|
|
1978
1984
|
"react/prefer-shorthand-fragment"?: Linter.RuleEntry<[
|
|
1979
1985
|
]>;
|
|
1980
1986
|
/**
|
|
1981
|
-
*
|
|
1987
|
+
* marks variables used in JSX as used
|
|
1982
1988
|
* @see https://eslint-react.xyz/docs/rules/use-jsx-vars
|
|
1983
1989
|
*/
|
|
1984
1990
|
"react/use-jsx-vars"?: Linter.RuleEntry<[
|
|
@@ -8071,6 +8077,7 @@ type FunctionalImmutableData = [
|
|
|
8071
8077
|
ignoreIdentifierPattern?: (string | string[]);
|
|
8072
8078
|
ignoreAccessorPattern?: (string | string[]);
|
|
8073
8079
|
ignoreClasses?: (boolean | "fieldsOnly");
|
|
8080
|
+
ignoreMapsAndSets?: boolean;
|
|
8074
8081
|
ignoreImmediateMutation?: boolean;
|
|
8075
8082
|
ignoreNonConstDeclarations?: (boolean | {
|
|
8076
8083
|
treatParametersAsConst?: boolean;
|
|
@@ -8121,6 +8128,7 @@ type FunctionalImmutableData = [
|
|
|
8121
8128
|
ignoreIdentifierPattern?: (string | string[]);
|
|
8122
8129
|
ignoreAccessorPattern?: (string | string[]);
|
|
8123
8130
|
ignoreClasses?: (boolean | "fieldsOnly");
|
|
8131
|
+
ignoreMapsAndSets?: boolean;
|
|
8124
8132
|
ignoreImmediateMutation?: boolean;
|
|
8125
8133
|
ignoreNonConstDeclarations?: (boolean | {
|
|
8126
8134
|
treatParametersAsConst?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -38,22 +38,22 @@ async function loadPackages(packageIds) {
|
|
|
38
38
|
// eslint-disable-next-line ts/no-explicit-any, ts/no-unsafe-return
|
|
39
39
|
return Promise.all(packageIds.map((id) => interopDefault(import(id))));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const mut_installPackagesToLoad = new Set();
|
|
42
42
|
let mut_installPackagesAction = null;
|
|
43
43
|
let mut_installPackagesActionResolver = null;
|
|
44
44
|
let mut_installPackagesTimeout = null;
|
|
45
45
|
/* eslint-disable functional/no-loop-statements */
|
|
46
46
|
async function installPackages(packages) {
|
|
47
47
|
for (const p of packages) {
|
|
48
|
-
|
|
48
|
+
mut_installPackagesToLoad.add(p);
|
|
49
49
|
}
|
|
50
50
|
if (mut_installPackagesTimeout !== null) {
|
|
51
51
|
clearTimeout(mut_installPackagesTimeout);
|
|
52
52
|
}
|
|
53
53
|
mut_installPackagesTimeout = setTimeout(() => {
|
|
54
|
-
const allPackages = [...
|
|
54
|
+
const allPackages = [...mut_installPackagesToLoad.values()];
|
|
55
55
|
mut_installPackagesTimeout = null;
|
|
56
|
-
|
|
56
|
+
mut_installPackagesToLoad.clear();
|
|
57
57
|
mut_installPackagesAction = null;
|
|
58
58
|
mut_installPackagesActionResolver(allPackages);
|
|
59
59
|
mut_installPackagesActionResolver = null;
|
|
@@ -237,7 +237,8 @@ async function formatters(opts, stylistic) {
|
|
|
237
237
|
const [[pluginFormat, configPrettier, sortPackageJson, formattingReporter], [prettierPluginTailwindcss]] = await Promise.all([packages, prettierPluginTailwindcssPromise]);
|
|
238
238
|
const turnOffRulesForPrettier = {
|
|
239
239
|
...Object.fromEntries(Object.entries(configPrettier.rules ?? {}).filter(([, value]) => value === "off")),
|
|
240
|
-
|
|
240
|
+
// curly: "off",
|
|
241
|
+
"no-unexpected-multiline": "off",
|
|
241
242
|
// "style/lines-around-comment": "off",
|
|
242
243
|
"style/max-len": "off",
|
|
243
244
|
"style/no-confusing-arrow": "off",
|
|
@@ -252,230 +253,14 @@ async function formatters(opts, stylistic) {
|
|
|
252
253
|
"style/js/quotes": "off",
|
|
253
254
|
// "style/ts/lines-around-comment": "off",
|
|
254
255
|
"style/ts/quotes": "off",
|
|
255
|
-
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
"
|
|
263
|
-
"style/comma-dangle": "off",
|
|
264
|
-
"style/comma-spacing": "off",
|
|
265
|
-
"style/comma-style": "off",
|
|
266
|
-
"style/computed-property-spacing": "off",
|
|
267
|
-
"style/dot-location": "off",
|
|
268
|
-
"style/eol-last": "off",
|
|
269
|
-
"style/func-call-spacing": "off",
|
|
270
|
-
"style/function-call-argument-newline": "off",
|
|
271
|
-
"style/function-call-spacing": "off",
|
|
272
|
-
"style/function-paren-newline": "off",
|
|
273
|
-
"style/generator-star-spacing": "off",
|
|
274
|
-
"style/implicit-arrow-linebreak": "off",
|
|
275
|
-
"style/indent-binary-ops": "off",
|
|
276
|
-
"style/indent": "off",
|
|
277
|
-
"style/key-spacing": "off",
|
|
278
|
-
"style/keyword-spacing": "off",
|
|
279
|
-
"style/linebreak-style": "off",
|
|
280
|
-
"style/max-statements-per-line": "off",
|
|
281
|
-
"style/member-delimiter-style": "off",
|
|
282
|
-
"style/multiline-ternary": "off",
|
|
283
|
-
"style/new-parens": "off",
|
|
284
|
-
"style/newline-per-chained-call": "off",
|
|
285
|
-
"style/no-extra-parens": "off",
|
|
286
|
-
"style/no-extra-semi": "off",
|
|
287
|
-
"style/no-floating-decimal": "off",
|
|
288
|
-
"style/no-mixed-spaces-and-tabs": "off",
|
|
289
|
-
"style/no-multi-spaces": "off",
|
|
290
|
-
"style/no-multiple-empty-lines": "off",
|
|
291
|
-
"style/no-trailing-spaces": "off",
|
|
292
|
-
"style/no-whitespace-before-property": "off",
|
|
293
|
-
"style/nonblock-statement-body-position": "off",
|
|
294
|
-
"style/object-curly-newline": "off",
|
|
295
|
-
"style/object-curly-spacing": "off",
|
|
296
|
-
"style/object-property-newline": "off",
|
|
297
|
-
"style/one-var-declaration-per-line": "off",
|
|
298
|
-
"style/operator-linebreak": "off",
|
|
299
|
-
"style/padded-blocks": "off",
|
|
300
|
-
"style/quote-props": "off",
|
|
301
|
-
"style/rest-spread-spacing": "off",
|
|
302
|
-
"style/semi-spacing": "off",
|
|
303
|
-
"style/semi-style": "off",
|
|
304
|
-
"style/semi": "off",
|
|
305
|
-
"style/space-before-blocks": "off",
|
|
306
|
-
"style/space-before-function-paren": "off",
|
|
307
|
-
"style/space-in-parens": "off",
|
|
308
|
-
"style/space-infix-ops": "off",
|
|
309
|
-
"style/space-unary-ops": "off",
|
|
310
|
-
"style/switch-colon-spacing": "off",
|
|
311
|
-
"style/template-curly-spacing": "off",
|
|
312
|
-
"style/template-tag-spacing": "off",
|
|
313
|
-
"style/type-annotation-spacing": "off",
|
|
314
|
-
"style/type-generic-spacing": "off",
|
|
315
|
-
"style/type-named-tuple-spacing": "off",
|
|
316
|
-
"style/wrap-iife": "off",
|
|
317
|
-
"style/wrap-regex": "off",
|
|
318
|
-
"style/yield-star-spacing": "off",
|
|
319
|
-
"style/js/array-bracket-newline": "off",
|
|
320
|
-
"style/js/array-bracket-spacing": "off",
|
|
321
|
-
"style/js/array-element-newline": "off",
|
|
322
|
-
"style/js/arrow-parens": "off",
|
|
323
|
-
"style/js/arrow-spacing": "off",
|
|
324
|
-
"style/js/block-spacing": "off",
|
|
325
|
-
"style/js/brace-style": "off",
|
|
326
|
-
"style/js/comma-dangle": "off",
|
|
327
|
-
"style/js/comma-spacing": "off",
|
|
328
|
-
"style/js/comma-style": "off",
|
|
329
|
-
"style/js/computed-property-spacing": "off",
|
|
330
|
-
"style/js/dot-location": "off",
|
|
331
|
-
"style/js/eol-last": "off",
|
|
332
|
-
"style/js/func-call-spacing": "off",
|
|
333
|
-
"style/js/function-call-argument-newline": "off",
|
|
334
|
-
"style/js/function-call-spacing": "off",
|
|
335
|
-
"style/js/function-paren-newline": "off",
|
|
336
|
-
"style/js/generator-star-spacing": "off",
|
|
337
|
-
"style/js/implicit-arrow-linebreak": "off",
|
|
338
|
-
"style/js/indent": "off",
|
|
339
|
-
"style/js/jsx-quotes": "off",
|
|
340
|
-
"style/js/key-spacing": "off",
|
|
341
|
-
"style/js/keyword-spacing": "off",
|
|
342
|
-
"style/js/linebreak-style": "off",
|
|
343
|
-
"style/js/max-statements-per-line": "off",
|
|
344
|
-
"style/js/multiline-ternary": "off",
|
|
345
|
-
"style/js/new-parens": "off",
|
|
346
|
-
"style/js/newline-per-chained-call": "off",
|
|
347
|
-
"style/js/no-extra-parens": "off",
|
|
348
|
-
"style/js/no-extra-semi": "off",
|
|
349
|
-
"style/js/no-floating-decimal": "off",
|
|
350
|
-
"style/js/no-mixed-spaces-and-tabs": "off",
|
|
351
|
-
"style/js/no-multi-spaces": "off",
|
|
352
|
-
"style/js/no-multiple-empty-lines": "off",
|
|
353
|
-
"style/js/no-trailing-spaces": "off",
|
|
354
|
-
"style/js/no-whitespace-before-property": "off",
|
|
355
|
-
"style/js/nonblock-statement-body-position": "off",
|
|
356
|
-
"style/js/object-curly-newline": "off",
|
|
357
|
-
"style/js/object-curly-spacing": "off",
|
|
358
|
-
"style/js/object-property-newline": "off",
|
|
359
|
-
"style/js/one-var-declaration-per-line": "off",
|
|
360
|
-
"style/js/operator-linebreak": "off",
|
|
361
|
-
"style/js/padded-blocks": "off",
|
|
362
|
-
"style/js/quote-props": "off",
|
|
363
|
-
"style/js/rest-spread-spacing": "off",
|
|
364
|
-
"style/js/semi-spacing": "off",
|
|
365
|
-
"style/js/semi-style": "off",
|
|
366
|
-
"style/js/semi": "off",
|
|
367
|
-
"style/js/space-before-blocks": "off",
|
|
368
|
-
"style/js/space-before-function-paren": "off",
|
|
369
|
-
"style/js/space-in-parens": "off",
|
|
370
|
-
"style/js/space-infix-ops": "off",
|
|
371
|
-
"style/js/space-unary-ops": "off",
|
|
372
|
-
"style/js/switch-colon-spacing": "off",
|
|
373
|
-
"style/js/template-curly-spacing": "off",
|
|
374
|
-
"style/js/template-tag-spacing": "off",
|
|
375
|
-
"style/js/wrap-iife": "off",
|
|
376
|
-
"style/js/wrap-regex": "off",
|
|
377
|
-
"style/js/yield-star-spacing": "off",
|
|
378
|
-
"style/jsx-child-element-spacing": "off",
|
|
379
|
-
"style/jsx-closing-bracket-location": "off",
|
|
380
|
-
"style/jsx-closing-tag-location": "off",
|
|
381
|
-
"style/jsx-curly-newline": "off",
|
|
382
|
-
"style/jsx-curly-spacing": "off",
|
|
383
|
-
"style/jsx-equals-spacing": "off",
|
|
384
|
-
"style/jsx-first-prop-new-line": "off",
|
|
385
|
-
"style/jsx-indent-props": "off",
|
|
386
|
-
"style/jsx-indent": "off",
|
|
387
|
-
"style/jsx-max-props-per-line": "off",
|
|
388
|
-
"style/jsx-newline": "off",
|
|
389
|
-
"style/jsx-one-expression-per-line": "off",
|
|
390
|
-
"style/jsx-props-no-multi-spaces": "off",
|
|
391
|
-
"style/jsx-quotes": "off",
|
|
392
|
-
"style/jsx-tag-spacing": "off",
|
|
393
|
-
"style/jsx-wrap-multilines": "off",
|
|
394
|
-
"style/jsx/jsx-child-element-spacing": "off",
|
|
395
|
-
"style/jsx/jsx-closing-bracket-location": "off",
|
|
396
|
-
"style/jsx/jsx-closing-tag-location": "off",
|
|
397
|
-
"style/jsx/jsx-curly-newline": "off",
|
|
398
|
-
"style/jsx/jsx-curly-spacing": "off",
|
|
399
|
-
"style/jsx/jsx-equals-spacing": "off",
|
|
400
|
-
"style/jsx/jsx-first-prop-new-line": "off",
|
|
401
|
-
"style/jsx/jsx-indent-props": "off",
|
|
402
|
-
"style/jsx/jsx-indent": "off",
|
|
403
|
-
"style/jsx/jsx-max-props-per-line": "off",
|
|
404
|
-
"style/ts/block-spacing": "off",
|
|
405
|
-
"style/ts/brace-style": "off",
|
|
406
|
-
"style/ts/comma-dangle": "off",
|
|
407
|
-
"style/ts/comma-spacing": "off",
|
|
408
|
-
"style/ts/func-call-spacing": "off",
|
|
409
|
-
"style/ts/function-call-spacing": "off",
|
|
410
|
-
"style/ts/indent": "off",
|
|
411
|
-
"style/ts/key-spacing": "off",
|
|
412
|
-
"style/ts/keyword-spacing": "off",
|
|
413
|
-
"style/ts/member-delimiter-style": "off",
|
|
414
|
-
"style/ts/no-extra-parens": "off",
|
|
415
|
-
"style/ts/no-extra-semi": "off",
|
|
416
|
-
"style/ts/object-curly-spacing": "off",
|
|
417
|
-
"style/ts/semi": "off",
|
|
418
|
-
"style/ts/space-before-blocks": "off",
|
|
419
|
-
"style/ts/space-before-function-paren": "off",
|
|
420
|
-
"style/ts/space-infix-ops": "off",
|
|
421
|
-
"style/ts/type-annotation-spacing": "off",
|
|
422
|
-
"ts/block-spacing": "off",
|
|
423
|
-
"ts/brace-style": "off",
|
|
424
|
-
"ts/comma-dangle": "off",
|
|
425
|
-
"ts/comma-spacing": "off",
|
|
426
|
-
"ts/func-call-spacing": "off",
|
|
427
|
-
"ts/indent": "off",
|
|
428
|
-
"ts/key-spacing": "off",
|
|
429
|
-
"ts/keyword-spacing": "off",
|
|
430
|
-
"ts/member-delimiter-style": "off",
|
|
431
|
-
"ts/no-extra-parens": "off",
|
|
432
|
-
"ts/no-extra-semi": "off",
|
|
433
|
-
"ts/object-curly-spacing": "off",
|
|
434
|
-
"ts/semi": "off",
|
|
435
|
-
"ts/space-before-blocks": "off",
|
|
436
|
-
"ts/space-before-function-paren": "off",
|
|
437
|
-
"ts/space-infix-ops": "off",
|
|
438
|
-
"ts/type-annotation-spacing": "off",
|
|
439
|
-
"unicorn/empty-brace-spaces": "off",
|
|
440
|
-
"unicorn/no-nested-ternary": "off",
|
|
441
|
-
"unicorn/number-literal-case": "off",
|
|
442
|
-
"vue/array-bracket-newline": "off",
|
|
443
|
-
"vue/array-bracket-spacing": "off",
|
|
444
|
-
"vue/array-element-newline": "off",
|
|
445
|
-
"vue/arrow-spacing": "off",
|
|
446
|
-
"vue/block-spacing": "off",
|
|
447
|
-
"vue/block-tag-newline": "off",
|
|
448
|
-
"vue/brace-style": "off",
|
|
449
|
-
"vue/comma-dangle": "off",
|
|
450
|
-
"vue/comma-spacing": "off",
|
|
451
|
-
"vue/comma-style": "off",
|
|
452
|
-
"vue/dot-location": "off",
|
|
453
|
-
"vue/func-call-spacing": "off",
|
|
454
|
-
"vue/html-closing-bracket-newline": "off",
|
|
455
|
-
"vue/html-closing-bracket-spacing": "off",
|
|
456
|
-
"vue/html-end-tags": "off",
|
|
457
|
-
"vue/html-indent": "off",
|
|
458
|
-
"vue/html-quotes": "off",
|
|
459
|
-
"vue/key-spacing": "off",
|
|
460
|
-
"vue/keyword-spacing": "off",
|
|
461
|
-
"vue/max-attributes-per-line": "off",
|
|
462
|
-
"vue/multiline-html-element-content-newline": "off",
|
|
463
|
-
"vue/multiline-ternary": "off",
|
|
464
|
-
"vue/mustache-interpolation-spacing": "off",
|
|
465
|
-
"vue/no-extra-parens": "off",
|
|
466
|
-
"vue/no-multi-spaces": "off",
|
|
467
|
-
"vue/no-spaces-around-equal-signs-in-attribute": "off",
|
|
468
|
-
"vue/object-curly-newline": "off",
|
|
469
|
-
"vue/object-curly-spacing": "off",
|
|
470
|
-
"vue/object-property-newline": "off",
|
|
471
|
-
"vue/operator-linebreak": "off",
|
|
472
|
-
"vue/quote-props": "off",
|
|
473
|
-
"vue/script-indent": "off",
|
|
474
|
-
"vue/singleline-html-element-content-newline": "off",
|
|
475
|
-
"vue/space-in-parens": "off",
|
|
476
|
-
"vue/space-infix-ops": "off",
|
|
477
|
-
"vue/space-unary-ops": "off",
|
|
478
|
-
"vue/template-curly-spacing": "off",
|
|
256
|
+
"ts/lines-around-comment": "off",
|
|
257
|
+
"ts/quotes": "off",
|
|
258
|
+
// "babel/quotes": "off",
|
|
259
|
+
// "unicorn/template-indent": "off",
|
|
260
|
+
"vue/html-self-closing": "off",
|
|
261
|
+
"vue/max-len": "off",
|
|
262
|
+
// other
|
|
263
|
+
"no-irregular-whitespace": "off",
|
|
479
264
|
"yaml/block-sequence-hyphen-indicator-newline": "off",
|
|
480
265
|
};
|
|
481
266
|
const mut_configs = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.3",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@antfu/install-pkg": "^1.0.0",
|
|
69
69
|
"@clack/prompts": "^0.10.0",
|
|
70
|
-
"globals": "^
|
|
70
|
+
"globals": "^16.0.0",
|
|
71
71
|
"local-pkg": "^1.0.0",
|
|
72
72
|
"semver": "^7.7.1"
|
|
73
73
|
},
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@commitlint/cli": "19.7.1",
|
|
76
76
|
"@commitlint/config-conventional": "19.7.1",
|
|
77
77
|
"@cspell/dict-cryptocurrencies": "5.0.4",
|
|
78
|
-
"@eslint-react/eslint-plugin": "1.
|
|
79
|
-
"@eslint/compat": "1.2.
|
|
78
|
+
"@eslint-react/eslint-plugin": "1.27.0",
|
|
79
|
+
"@eslint/compat": "1.2.7",
|
|
80
80
|
"@intlify/eslint-plugin-vue-i18n": "3.2.0",
|
|
81
81
|
"@rollup/plugin-typescript": "12.1.2",
|
|
82
82
|
"@semantic-release/changelog": "6.0.3",
|
|
@@ -85,27 +85,27 @@
|
|
|
85
85
|
"@semantic-release/github": "11.0.1",
|
|
86
86
|
"@semantic-release/npm": "12.0.1",
|
|
87
87
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
88
|
-
"@stylistic/eslint-plugin": "4.0.
|
|
89
|
-
"@stylistic/eslint-plugin-migrate": "4.0.
|
|
88
|
+
"@stylistic/eslint-plugin": "4.0.1",
|
|
89
|
+
"@stylistic/eslint-plugin-migrate": "4.0.1",
|
|
90
90
|
"@types/eslint": "9.6.1",
|
|
91
|
-
"@types/node": "22.13.
|
|
91
|
+
"@types/node": "22.13.5",
|
|
92
92
|
"@typescript-eslint/eslint-plugin": "8.24.1",
|
|
93
93
|
"@typescript-eslint/parser": "8.24.1",
|
|
94
94
|
"@typescript-eslint/utils": "8.24.1",
|
|
95
95
|
"@unocss/eslint-plugin": "66.0.0",
|
|
96
96
|
"@vitest/eslint-plugin": "1.1.31",
|
|
97
97
|
"commitizen": "4.3.1",
|
|
98
|
-
"cspell": "8.17.
|
|
98
|
+
"cspell": "8.17.5",
|
|
99
99
|
"cz-conventional-changelog": "3.3.0",
|
|
100
|
-
"eslint": "9.
|
|
100
|
+
"eslint": "9.21.0",
|
|
101
101
|
"eslint-config-prettier": "10.0.1",
|
|
102
102
|
"eslint-flat-config-utils": "2.0.1",
|
|
103
103
|
"eslint-formatting-reporter": "0.0.0",
|
|
104
|
-
"eslint-import-resolver-typescript": "3.8.
|
|
104
|
+
"eslint-import-resolver-typescript": "3.8.3",
|
|
105
105
|
"eslint-merge-processors": "2.0.0",
|
|
106
106
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
107
107
|
"eslint-plugin-format": "1.0.1",
|
|
108
|
-
"eslint-plugin-functional": "
|
|
108
|
+
"eslint-plugin-functional": "9.0.1",
|
|
109
109
|
"eslint-plugin-i18next": "6.1.1",
|
|
110
110
|
"eslint-plugin-import-x": "4.6.1",
|
|
111
111
|
"eslint-plugin-jsdoc": "50.6.3",
|
|
@@ -132,10 +132,10 @@
|
|
|
132
132
|
"husky": "9.1.7",
|
|
133
133
|
"jiti": "2.4.2",
|
|
134
134
|
"jsonc-eslint-parser": "2.4.0",
|
|
135
|
-
"knip": "5.44.
|
|
135
|
+
"knip": "5.44.5",
|
|
136
136
|
"lint-staged": "15.4.3",
|
|
137
137
|
"markdownlint-cli2": "0.17.2",
|
|
138
|
-
"prettier": "3.5.
|
|
138
|
+
"prettier": "3.5.2",
|
|
139
139
|
"prettier-plugin-tailwindcss": "0.6.11",
|
|
140
140
|
"rimraf": "6.0.1",
|
|
141
141
|
"rollup": "4.34.8",
|