@fenge/eslint-config 0.8.3 → 0.9.1
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/dist/config/javascript.d.ts +161 -1
- package/dist/config/javascript.d.ts.map +1 -1
- package/dist/config/js/base.d.ts +161 -1
- package/dist/config/js/base.d.ts.map +1 -1
- package/dist/config/js/base.js +15 -1
- package/dist/config/ts/base.d.ts +185 -36
- package/dist/config/ts/base.d.ts.map +1 -1
- package/dist/config/ts/base.js +17 -16
- package/dist/config/typescript.d.ts +185 -36
- package/dist/config/typescript.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -330,12 +330,157 @@ export declare function typescript(): readonly [{
|
|
|
330
330
|
readonly unicorn: import("eslint").ESLint.Plugin & {
|
|
331
331
|
configs: {
|
|
332
332
|
recommended: import("eslint").Linter.FlatConfig;
|
|
333
|
+
unopinionated: import("eslint").Linter.FlatConfig;
|
|
333
334
|
all: import("eslint").Linter.FlatConfig;
|
|
334
335
|
"flat/all": import("eslint").Linter.FlatConfig;
|
|
335
336
|
"flat/recommended": import("eslint").Linter.FlatConfig;
|
|
336
337
|
};
|
|
337
338
|
};
|
|
338
|
-
readonly "es-x":
|
|
339
|
+
readonly "es-x": {
|
|
340
|
+
meta: {
|
|
341
|
+
name: string;
|
|
342
|
+
version: string;
|
|
343
|
+
};
|
|
344
|
+
configs: {
|
|
345
|
+
"flat/no-array-grouping": import("eslint").Linter.Config;
|
|
346
|
+
"flat/no-arraybuffer-base64": import("eslint").Linter.Config;
|
|
347
|
+
"flat/no-change-array-by-copy": import("eslint").Linter.Config;
|
|
348
|
+
"flat/no-class-fields": import("eslint").Linter.Config;
|
|
349
|
+
"flat/no-explicit-resource-management": import("eslint").Linter.Config;
|
|
350
|
+
"flat/no-float16array": import("eslint").Linter.Config;
|
|
351
|
+
"flat/no-import-attributes": import("eslint").Linter.Config;
|
|
352
|
+
"flat/no-intl-locale-info": import("eslint").Linter.Config;
|
|
353
|
+
"flat/no-intl-numberformat-v3": import("eslint").Linter.Config;
|
|
354
|
+
"flat/no-is-usv-string": import("eslint").Linter.Config;
|
|
355
|
+
"flat/no-iterator-helpers": import("eslint").Linter.Config;
|
|
356
|
+
"flat/no-json-parse-with-source": import("eslint").Linter.Config;
|
|
357
|
+
"flat/no-new-in-es5": import("eslint").Linter.Config;
|
|
358
|
+
"flat/no-new-in-es2015": import("eslint").Linter.Config;
|
|
359
|
+
"flat/no-new-in-es2015-intl-api": import("eslint").Linter.Config;
|
|
360
|
+
"flat/no-new-in-es2016": import("eslint").Linter.Config;
|
|
361
|
+
"flat/no-new-in-es2016-intl-api": import("eslint").Linter.Config;
|
|
362
|
+
"flat/no-new-in-es2017": import("eslint").Linter.Config;
|
|
363
|
+
"flat/no-new-in-es2017-intl-api": import("eslint").Linter.Config;
|
|
364
|
+
"flat/no-new-in-es2018": import("eslint").Linter.Config;
|
|
365
|
+
"flat/no-new-in-es2018-intl-api": import("eslint").Linter.Config;
|
|
366
|
+
"flat/no-new-in-es2019": import("eslint").Linter.Config;
|
|
367
|
+
"flat/no-new-in-es2019-intl-api": import("eslint").Linter.Config;
|
|
368
|
+
"flat/no-new-in-es2020": import("eslint").Linter.Config;
|
|
369
|
+
"flat/no-new-in-es2020-intl-api": import("eslint").Linter.Config;
|
|
370
|
+
"flat/no-new-in-es2021": import("eslint").Linter.Config;
|
|
371
|
+
"flat/no-new-in-es2021-intl-api": import("eslint").Linter.Config;
|
|
372
|
+
"flat/no-new-in-es2022": import("eslint").Linter.Config;
|
|
373
|
+
"flat/no-new-in-es2022-intl-api": import("eslint").Linter.Config;
|
|
374
|
+
"flat/no-new-in-es2023": import("eslint").Linter.Config;
|
|
375
|
+
"flat/no-new-in-es2023-intl-api": import("eslint").Linter.Config;
|
|
376
|
+
"flat/no-new-in-es2024": import("eslint").Linter.Config;
|
|
377
|
+
"flat/no-new-in-es2024-intl-api": import("eslint").Linter.Config;
|
|
378
|
+
"flat/no-new-in-es2025": import("eslint").Linter.Config;
|
|
379
|
+
"flat/no-new-in-es2025-intl-api": import("eslint").Linter.Config;
|
|
380
|
+
"flat/no-new-in-esnext": import("eslint").Linter.Config;
|
|
381
|
+
"flat/no-new-in-esnext-intl-api": import("eslint").Linter.Config;
|
|
382
|
+
"flat/no-relative-indexing-method": import("eslint").Linter.Config;
|
|
383
|
+
"flat/no-set-methods": import("eslint").Linter.Config;
|
|
384
|
+
"flat/no-string-matchall": import("eslint").Linter.Config;
|
|
385
|
+
"flat/no-temporal": import("eslint").Linter.Config;
|
|
386
|
+
"flat/no-upsert": import("eslint").Linter.Config;
|
|
387
|
+
"flat/restrict-to-es-intl-api-1st-edition": import("eslint").Linter.Config;
|
|
388
|
+
"flat/restrict-to-es3": import("eslint").Linter.Config;
|
|
389
|
+
"flat/restrict-to-es5": import("eslint").Linter.Config;
|
|
390
|
+
"flat/restrict-to-es2015": import("eslint").Linter.Config;
|
|
391
|
+
"flat/restrict-to-es2015-intl-api": import("eslint").Linter.Config;
|
|
392
|
+
"flat/restrict-to-es2016": import("eslint").Linter.Config;
|
|
393
|
+
"flat/restrict-to-es2016-intl-api": import("eslint").Linter.Config;
|
|
394
|
+
"flat/restrict-to-es2017": import("eslint").Linter.Config;
|
|
395
|
+
"flat/restrict-to-es2017-intl-api": import("eslint").Linter.Config;
|
|
396
|
+
"flat/restrict-to-es2018": import("eslint").Linter.Config;
|
|
397
|
+
"flat/restrict-to-es2018-intl-api": import("eslint").Linter.Config;
|
|
398
|
+
"flat/restrict-to-es2019": import("eslint").Linter.Config;
|
|
399
|
+
"flat/restrict-to-es2019-intl-api": import("eslint").Linter.Config;
|
|
400
|
+
"flat/restrict-to-es2020": import("eslint").Linter.Config;
|
|
401
|
+
"flat/restrict-to-es2020-intl-api": import("eslint").Linter.Config;
|
|
402
|
+
"flat/restrict-to-es2021": import("eslint").Linter.Config;
|
|
403
|
+
"flat/restrict-to-es2021-intl-api": import("eslint").Linter.Config;
|
|
404
|
+
"flat/restrict-to-es2022": import("eslint").Linter.Config;
|
|
405
|
+
"flat/restrict-to-es2022-intl-api": import("eslint").Linter.Config;
|
|
406
|
+
"flat/restrict-to-es2023": import("eslint").Linter.Config;
|
|
407
|
+
"flat/restrict-to-es2023-intl-api": import("eslint").Linter.Config;
|
|
408
|
+
"flat/restrict-to-es2024": import("eslint").Linter.Config;
|
|
409
|
+
"flat/restrict-to-es2024-intl-api": import("eslint").Linter.Config;
|
|
410
|
+
"no-array-grouping": import("eslint").Linter.LegacyConfig;
|
|
411
|
+
"no-arraybuffer-base64": import("eslint").Linter.LegacyConfig;
|
|
412
|
+
"no-change-array-by-copy": import("eslint").Linter.LegacyConfig;
|
|
413
|
+
"no-class-fields": import("eslint").Linter.LegacyConfig;
|
|
414
|
+
"no-explicit-resource-management": import("eslint").Linter.LegacyConfig;
|
|
415
|
+
"no-float16array": import("eslint").Linter.LegacyConfig;
|
|
416
|
+
"no-import-attributes": import("eslint").Linter.LegacyConfig;
|
|
417
|
+
"no-intl-locale-info": import("eslint").Linter.LegacyConfig;
|
|
418
|
+
"no-intl-numberformat-v3": import("eslint").Linter.LegacyConfig;
|
|
419
|
+
"no-is-usv-string": import("eslint").Linter.LegacyConfig;
|
|
420
|
+
"no-iterator-helpers": import("eslint").Linter.LegacyConfig;
|
|
421
|
+
"no-json-parse-with-source": import("eslint").Linter.LegacyConfig;
|
|
422
|
+
"no-new-in-es5": import("eslint").Linter.LegacyConfig;
|
|
423
|
+
"no-new-in-es2015": import("eslint").Linter.LegacyConfig;
|
|
424
|
+
"no-new-in-es2015-intl-api": import("eslint").Linter.LegacyConfig;
|
|
425
|
+
"no-new-in-es2016": import("eslint").Linter.LegacyConfig;
|
|
426
|
+
"no-new-in-es2016-intl-api": import("eslint").Linter.LegacyConfig;
|
|
427
|
+
"no-new-in-es2017": import("eslint").Linter.LegacyConfig;
|
|
428
|
+
"no-new-in-es2017-intl-api": import("eslint").Linter.LegacyConfig;
|
|
429
|
+
"no-new-in-es2018": import("eslint").Linter.LegacyConfig;
|
|
430
|
+
"no-new-in-es2018-intl-api": import("eslint").Linter.LegacyConfig;
|
|
431
|
+
"no-new-in-es2019": import("eslint").Linter.LegacyConfig;
|
|
432
|
+
"no-new-in-es2019-intl-api": import("eslint").Linter.LegacyConfig;
|
|
433
|
+
"no-new-in-es2020": import("eslint").Linter.LegacyConfig;
|
|
434
|
+
"no-new-in-es2020-intl-api": import("eslint").Linter.LegacyConfig;
|
|
435
|
+
"no-new-in-es2021": import("eslint").Linter.LegacyConfig;
|
|
436
|
+
"no-new-in-es2021-intl-api": import("eslint").Linter.LegacyConfig;
|
|
437
|
+
"no-new-in-es2022": import("eslint").Linter.LegacyConfig;
|
|
438
|
+
"no-new-in-es2022-intl-api": import("eslint").Linter.LegacyConfig;
|
|
439
|
+
"no-new-in-es2023": import("eslint").Linter.LegacyConfig;
|
|
440
|
+
"no-new-in-es2023-intl-api": import("eslint").Linter.LegacyConfig;
|
|
441
|
+
"no-new-in-es2024": import("eslint").Linter.LegacyConfig;
|
|
442
|
+
"no-new-in-es2024-intl-api": import("eslint").Linter.LegacyConfig;
|
|
443
|
+
"no-new-in-es2025": import("eslint").Linter.LegacyConfig;
|
|
444
|
+
"no-new-in-es2025-intl-api": import("eslint").Linter.LegacyConfig;
|
|
445
|
+
"no-new-in-esnext": import("eslint").Linter.LegacyConfig;
|
|
446
|
+
"no-new-in-esnext-intl-api": import("eslint").Linter.LegacyConfig;
|
|
447
|
+
"no-relative-indexing-method": import("eslint").Linter.LegacyConfig;
|
|
448
|
+
"no-set-methods": import("eslint").Linter.LegacyConfig;
|
|
449
|
+
"no-string-matchall": import("eslint").Linter.LegacyConfig;
|
|
450
|
+
"no-temporal": import("eslint").Linter.LegacyConfig;
|
|
451
|
+
"no-upsert": import("eslint").Linter.LegacyConfig;
|
|
452
|
+
"restrict-to-es-intl-api-1st-edition": import("eslint").Linter.LegacyConfig;
|
|
453
|
+
"restrict-to-es3": import("eslint").Linter.LegacyConfig;
|
|
454
|
+
"restrict-to-es5": import("eslint").Linter.LegacyConfig;
|
|
455
|
+
"restrict-to-es2015": import("eslint").Linter.LegacyConfig;
|
|
456
|
+
"restrict-to-es2015-intl-api": import("eslint").Linter.LegacyConfig;
|
|
457
|
+
"restrict-to-es2016": import("eslint").Linter.LegacyConfig;
|
|
458
|
+
"restrict-to-es2016-intl-api": import("eslint").Linter.LegacyConfig;
|
|
459
|
+
"restrict-to-es2017": import("eslint").Linter.LegacyConfig;
|
|
460
|
+
"restrict-to-es2017-intl-api": import("eslint").Linter.LegacyConfig;
|
|
461
|
+
"restrict-to-es2018": import("eslint").Linter.LegacyConfig;
|
|
462
|
+
"restrict-to-es2018-intl-api": import("eslint").Linter.LegacyConfig;
|
|
463
|
+
"restrict-to-es2019": import("eslint").Linter.LegacyConfig;
|
|
464
|
+
"restrict-to-es2019-intl-api": import("eslint").Linter.LegacyConfig;
|
|
465
|
+
"restrict-to-es2020": import("eslint").Linter.LegacyConfig;
|
|
466
|
+
"restrict-to-es2020-intl-api": import("eslint").Linter.LegacyConfig;
|
|
467
|
+
"restrict-to-es2021": import("eslint").Linter.LegacyConfig;
|
|
468
|
+
"restrict-to-es2021-intl-api": import("eslint").Linter.LegacyConfig;
|
|
469
|
+
"restrict-to-es2022": import("eslint").Linter.LegacyConfig;
|
|
470
|
+
"restrict-to-es2022-intl-api": import("eslint").Linter.LegacyConfig;
|
|
471
|
+
"restrict-to-es2023": import("eslint").Linter.LegacyConfig;
|
|
472
|
+
"restrict-to-es2023-intl-api": import("eslint").Linter.LegacyConfig;
|
|
473
|
+
"restrict-to-es2024": import("eslint").Linter.LegacyConfig;
|
|
474
|
+
"restrict-to-es2024-intl-api": import("eslint").Linter.LegacyConfig;
|
|
475
|
+
readonly "no-5": import("eslint").Linter.LegacyConfig;
|
|
476
|
+
readonly "no-2015": import("eslint").Linter.LegacyConfig;
|
|
477
|
+
readonly "no-2016": import("eslint").Linter.LegacyConfig;
|
|
478
|
+
readonly "no-2017": import("eslint").Linter.LegacyConfig;
|
|
479
|
+
readonly "no-2018": import("eslint").Linter.LegacyConfig;
|
|
480
|
+
readonly "no-2019": import("eslint").Linter.LegacyConfig;
|
|
481
|
+
};
|
|
482
|
+
rules: Record<string, import("eslint").Rule.RuleModule>;
|
|
483
|
+
};
|
|
339
484
|
readonly "eslint-comments": typeof import("@eslint-community/eslint-plugin-eslint-comments");
|
|
340
485
|
readonly esm: typeof import("eslint-plugin-esm");
|
|
341
486
|
readonly "simple-import-sort": import("eslint").ESLint.Plugin;
|
|
@@ -475,63 +620,29 @@ export declare function typescript(): readonly [{
|
|
|
475
620
|
readonly "@typescript-eslint/unbound-method": "error";
|
|
476
621
|
readonly "@typescript-eslint/unified-signatures": "error";
|
|
477
622
|
readonly "@typescript-eslint/use-unknown-in-catch-callback-variable": "error";
|
|
478
|
-
readonly "default-param-last": "off";
|
|
479
|
-
readonly "init-declarations": "off";
|
|
480
|
-
readonly "max-params": "off";
|
|
481
|
-
readonly "no-empty-function": "off";
|
|
482
|
-
readonly "no-invalid-this": "off";
|
|
483
|
-
readonly "no-shadow": "off";
|
|
484
|
-
readonly "no-useless-constructor": "off";
|
|
485
623
|
readonly "require-await": "off";
|
|
486
|
-
readonly "no-array-constructor": "off";
|
|
487
|
-
readonly "no-dupe-class-members": "off";
|
|
488
624
|
readonly "no-implied-eval": "off";
|
|
489
625
|
readonly "no-redeclare": "off";
|
|
490
626
|
readonly "no-throw-literal": "off";
|
|
491
|
-
readonly "no-unused-expressions": "off";
|
|
492
627
|
readonly "no-unused-vars": "off";
|
|
493
|
-
readonly "no-use-before-define": "off";
|
|
494
628
|
readonly "prefer-promise-reject-errors": "off";
|
|
495
|
-
readonly "@typescript-eslint/default-param-last": "error";
|
|
496
|
-
readonly "@typescript-eslint/init-declarations": "error";
|
|
497
|
-
readonly "@typescript-eslint/max-params": readonly ["error", {
|
|
498
|
-
readonly max: 4;
|
|
499
|
-
}];
|
|
500
|
-
readonly "@typescript-eslint/no-array-constructor": "error";
|
|
501
|
-
readonly "@typescript-eslint/no-dupe-class-members": "error";
|
|
502
|
-
readonly "@typescript-eslint/no-empty-function": "error";
|
|
503
629
|
readonly "@typescript-eslint/no-implied-eval": "error";
|
|
504
|
-
readonly "@typescript-eslint/no-invalid-this": "error";
|
|
505
630
|
readonly "@typescript-eslint/no-redeclare": readonly ["error", {
|
|
506
631
|
readonly builtinGlobals: false;
|
|
507
632
|
}];
|
|
508
|
-
readonly "@typescript-eslint/no-shadow": readonly ["error", {
|
|
509
|
-
readonly ignoreOnInitialization: true;
|
|
510
|
-
}];
|
|
511
|
-
readonly "@typescript-eslint/no-unused-expressions": readonly ["error", {
|
|
512
|
-
readonly enforceForJSX: true;
|
|
513
|
-
readonly allowShortCircuit: true;
|
|
514
|
-
readonly allowTernary: true;
|
|
515
|
-
readonly allowTaggedTemplates: true;
|
|
516
|
-
}];
|
|
517
633
|
readonly "@typescript-eslint/no-unused-vars": readonly ["error", {
|
|
518
634
|
readonly args: "none";
|
|
519
635
|
readonly caughtErrors: "none";
|
|
520
636
|
readonly ignoreRestSiblings: true;
|
|
521
637
|
readonly vars: "all";
|
|
522
638
|
}];
|
|
523
|
-
readonly "@typescript-eslint/no-use-before-define": readonly ["error", {
|
|
524
|
-
readonly functions: false;
|
|
525
|
-
readonly classes: false;
|
|
526
|
-
readonly variables: false;
|
|
527
|
-
}];
|
|
528
|
-
readonly "@typescript-eslint/no-useless-constructor": "error";
|
|
529
639
|
readonly "@typescript-eslint/prefer-promise-reject-errors": "error";
|
|
530
640
|
readonly "@typescript-eslint/require-await": "error";
|
|
531
641
|
readonly "arrow-body-style": readonly ["error", "as-needed"];
|
|
532
642
|
readonly "simple-import-sort/exports": "error";
|
|
533
643
|
readonly "unicorn/prefer-node-protocol": "error";
|
|
534
644
|
readonly "unicorn/escape-case": "error";
|
|
645
|
+
readonly "default-param-last": "error";
|
|
535
646
|
readonly "for-direction": "error";
|
|
536
647
|
readonly "func-name-matching": "error";
|
|
537
648
|
readonly "func-names": "error";
|
|
@@ -539,18 +650,23 @@ export declare function typescript(): readonly [{
|
|
|
539
650
|
readonly allowArrowFunctions: true;
|
|
540
651
|
}];
|
|
541
652
|
readonly "getter-return": "error";
|
|
653
|
+
readonly "init-declarations": "error";
|
|
542
654
|
readonly "logical-assignment-operators": readonly ["error", "always", {
|
|
543
655
|
readonly enforceForIfStatements: true;
|
|
544
656
|
}];
|
|
545
657
|
readonly "max-depth": readonly ["error", {
|
|
546
658
|
readonly max: 5;
|
|
547
659
|
}];
|
|
660
|
+
readonly "max-params": readonly ["error", {
|
|
661
|
+
readonly max: 4;
|
|
662
|
+
}];
|
|
548
663
|
readonly "no-bitwise": "error";
|
|
549
664
|
readonly "no-console": "error";
|
|
550
665
|
readonly "no-constant-binary-expression": "error";
|
|
551
666
|
readonly "no-dupe-else-if": "error";
|
|
552
667
|
readonly "no-duplicate-imports": "error";
|
|
553
668
|
readonly "no-empty-static-block": "error";
|
|
669
|
+
readonly "no-empty-function": "error";
|
|
554
670
|
readonly "no-implicit-coercion": readonly ["error", {
|
|
555
671
|
readonly disallowTemplateShorthand: true;
|
|
556
672
|
readonly allow: readonly ["!!"];
|
|
@@ -558,6 +674,7 @@ export declare function typescript(): readonly [{
|
|
|
558
674
|
readonly "no-inner-declarations": readonly ["error", "functions", {
|
|
559
675
|
readonly blockScopedFunctions: "disallow";
|
|
560
676
|
}];
|
|
677
|
+
readonly "no-invalid-this": "error";
|
|
561
678
|
readonly "no-lonely-if": "error";
|
|
562
679
|
readonly "no-multi-assign": "error";
|
|
563
680
|
readonly "no-new-native-nonconstructor": "error";
|
|
@@ -566,6 +683,10 @@ export declare function typescript(): readonly [{
|
|
|
566
683
|
readonly "no-param-reassign": "error";
|
|
567
684
|
readonly "no-plusplus": "error";
|
|
568
685
|
readonly "no-setter-return": "error";
|
|
686
|
+
readonly "no-shadow": readonly ["error", {
|
|
687
|
+
readonly ignoreOnInitialization: true;
|
|
688
|
+
}];
|
|
689
|
+
readonly "no-unassigned-vars": "error";
|
|
569
690
|
readonly "no-unsafe-optional-chaining": readonly ["error", {
|
|
570
691
|
readonly disallowArithmeticOperators: true;
|
|
571
692
|
}];
|
|
@@ -575,6 +696,7 @@ export declare function typescript(): readonly [{
|
|
|
575
696
|
readonly "no-useless-call": "error";
|
|
576
697
|
readonly "no-useless-catch": "error";
|
|
577
698
|
readonly "no-useless-computed-key": "error";
|
|
699
|
+
readonly "no-useless-constructor": "error";
|
|
578
700
|
readonly "no-useless-escape": "error";
|
|
579
701
|
readonly "no-useless-rename": "error";
|
|
580
702
|
readonly "no-useless-return": "error";
|
|
@@ -796,6 +918,12 @@ export declare function typescript(): readonly [{
|
|
|
796
918
|
readonly "unicorn/no-accessor-recursion": "error";
|
|
797
919
|
readonly "unicorn/no-array-callback-reference": "error";
|
|
798
920
|
readonly "unicorn/no-array-method-this-argument": "error";
|
|
921
|
+
readonly "unicorn/no-array-reverse": readonly ["error", {
|
|
922
|
+
readonly allowExpressionStatement: false;
|
|
923
|
+
}];
|
|
924
|
+
readonly "unicorn/no-array-sort": readonly ["error", {
|
|
925
|
+
readonly allowExpressionStatement: false;
|
|
926
|
+
}];
|
|
799
927
|
readonly "unicorn/no-await-in-promise-methods": "error";
|
|
800
928
|
readonly "unicorn/no-for-loop": "error";
|
|
801
929
|
readonly "unicorn/no-instanceof-builtins": "error";
|
|
@@ -814,15 +942,20 @@ export declare function typescript(): readonly [{
|
|
|
814
942
|
readonly "unicorn/no-unnecessary-await": "error";
|
|
815
943
|
readonly "unicorn/no-unreadable-array-destructuring": "error";
|
|
816
944
|
readonly "unicorn/no-unreadable-iife": "error";
|
|
945
|
+
readonly "unicorn/no-useless-error-capture-stack-trace": "error";
|
|
817
946
|
readonly "unicorn/no-useless-fallback-in-spread": "error";
|
|
818
947
|
readonly "unicorn/no-useless-promise-resolve-reject": "error";
|
|
819
948
|
readonly "unicorn/no-useless-spread": "error";
|
|
820
949
|
readonly "unicorn/no-useless-switch-case": "error";
|
|
821
950
|
readonly "unicorn/no-zero-fractions": "error";
|
|
822
951
|
readonly "unicorn/prefer-array-flat-map": "error";
|
|
952
|
+
readonly "unicorn/prefer-bigint-literals": "error";
|
|
953
|
+
readonly "unicorn/prefer-class-fields": "error";
|
|
954
|
+
readonly "unicorn/prefer-classlist-toggle": "error";
|
|
823
955
|
readonly "unicorn/prefer-date-now": "error";
|
|
824
956
|
readonly "unicorn/prefer-export-from": "error";
|
|
825
957
|
readonly "unicorn/prefer-global-this": "error";
|
|
958
|
+
readonly "unicorn/prefer-import-meta-properties": "error";
|
|
826
959
|
readonly "unicorn/prefer-includes": "error";
|
|
827
960
|
readonly "unicorn/prefer-logical-operator-over-ternary": "error";
|
|
828
961
|
readonly "unicorn/prefer-math-min-max": "error";
|
|
@@ -838,6 +971,8 @@ export declare function typescript(): readonly [{
|
|
|
838
971
|
readonly "unicorn/prefer-string-slice": "error";
|
|
839
972
|
readonly "unicorn/prefer-ternary": "error";
|
|
840
973
|
readonly "unicorn/require-array-join-separator": "error";
|
|
974
|
+
readonly "unicorn/require-module-attributes": "error";
|
|
975
|
+
readonly "unicorn/require-module-specifiers": "error";
|
|
841
976
|
readonly "unicorn/require-number-to-fixed-digits-argument": "error";
|
|
842
977
|
readonly "unicorn/text-encoding-identifier-case": "error";
|
|
843
978
|
readonly "unicorn/throw-new-error": "error";
|
|
@@ -851,6 +986,7 @@ export declare function typescript(): readonly [{
|
|
|
851
986
|
readonly "@fenge/no-top-level-arrow-function": "error";
|
|
852
987
|
readonly "@fenge/no-triple-slash-directive": "error";
|
|
853
988
|
readonly "@fenge/no-unnecessary-template-string": "error";
|
|
989
|
+
readonly "@fenge/no-used-underscore-param": "error";
|
|
854
990
|
readonly "@typescript-eslint/ban-ts-comment": readonly ["error", {
|
|
855
991
|
readonly "ts-expect-error": true;
|
|
856
992
|
readonly "ts-ignore": true;
|
|
@@ -882,6 +1018,7 @@ export declare function typescript(): readonly [{
|
|
|
882
1018
|
readonly capIsNew: false;
|
|
883
1019
|
readonly properties: true;
|
|
884
1020
|
}];
|
|
1021
|
+
readonly "no-array-constructor": "error";
|
|
885
1022
|
readonly "no-async-promise-executor": "error";
|
|
886
1023
|
readonly "no-caller": "error";
|
|
887
1024
|
readonly "no-case-declarations": "error";
|
|
@@ -896,6 +1033,7 @@ export declare function typescript(): readonly [{
|
|
|
896
1033
|
readonly "no-debugger": "error";
|
|
897
1034
|
readonly "no-delete-var": "error";
|
|
898
1035
|
readonly "no-dupe-args": "error";
|
|
1036
|
+
readonly "no-dupe-class-members": "error";
|
|
899
1037
|
readonly "no-dupe-keys": "error";
|
|
900
1038
|
readonly "no-duplicate-case": "error";
|
|
901
1039
|
readonly "no-useless-backreference": "error";
|
|
@@ -953,6 +1091,17 @@ export declare function typescript(): readonly [{
|
|
|
953
1091
|
readonly "no-unreachable-loop": "error";
|
|
954
1092
|
readonly "no-unsafe-finally": "error";
|
|
955
1093
|
readonly "no-unsafe-negation": "error";
|
|
1094
|
+
readonly "no-unused-expressions": readonly ["error", {
|
|
1095
|
+
readonly enforceForJSX: true;
|
|
1096
|
+
readonly allowShortCircuit: true;
|
|
1097
|
+
readonly allowTernary: true;
|
|
1098
|
+
readonly allowTaggedTemplates: true;
|
|
1099
|
+
}];
|
|
1100
|
+
readonly "no-use-before-define": readonly ["error", {
|
|
1101
|
+
readonly functions: false;
|
|
1102
|
+
readonly classes: false;
|
|
1103
|
+
readonly variables: false;
|
|
1104
|
+
}];
|
|
956
1105
|
readonly "no-void": "error";
|
|
957
1106
|
readonly "no-with": "error";
|
|
958
1107
|
readonly "one-var": readonly ["error", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/config/typescript.ts"],"names":[],"mappings":"AAOA,wBAAgB,UAAU
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/config/typescript.ts"],"names":[],"mappings":"AAOA,wBAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fenge/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "A super strict eslint config for linting js/ts/package.json.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opinionated",
|
|
@@ -33,31 +33,31 @@
|
|
|
33
33
|
"@typescript-eslint/parser": "8.58.2",
|
|
34
34
|
"confusing-browser-globals": "1.0.11",
|
|
35
35
|
"eslint-plugin-check-file": "3.3.1",
|
|
36
|
-
"eslint-plugin-es-x": "
|
|
36
|
+
"eslint-plugin-es-x": "9.6.0",
|
|
37
37
|
"eslint-plugin-fp": "2.3.0",
|
|
38
38
|
"eslint-plugin-import": "2.32.0",
|
|
39
39
|
"eslint-plugin-n": "17.24.0",
|
|
40
|
-
"eslint-plugin-promise": "7.
|
|
40
|
+
"eslint-plugin-promise": "7.3.0",
|
|
41
41
|
"eslint-plugin-react": "7.37.5",
|
|
42
42
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
43
43
|
"eslint-plugin-regexp": "2.10.0",
|
|
44
|
-
"eslint-plugin-simple-import-sort": "
|
|
44
|
+
"eslint-plugin-simple-import-sort": "13.0.0",
|
|
45
45
|
"eslint-plugin-sonarjs": "3.0.5",
|
|
46
|
-
"eslint-plugin-unicorn": "
|
|
47
|
-
"globals": "17.
|
|
46
|
+
"eslint-plugin-unicorn": "61.0.2",
|
|
47
|
+
"globals": "17.6.0",
|
|
48
48
|
"@fenge/eslint-plugin-ts": "0.5.1",
|
|
49
|
-
"@fenge/eslint-plugin": "0.5.
|
|
50
|
-
"eslint-plugin-
|
|
49
|
+
"@fenge/eslint-plugin": "0.5.1",
|
|
50
|
+
"eslint-plugin-esm": "0.10.1",
|
|
51
51
|
"eslint-plugin-pkg-json": "0.6.0",
|
|
52
|
-
"eslint-plugin-
|
|
52
|
+
"eslint-plugin-publint": "0.5.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "20.19.37",
|
|
56
|
-
"eslint": "9.
|
|
56
|
+
"eslint": "9.29.0",
|
|
57
57
|
"eslint-config-prettier": "10.1.8"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"eslint": ">=9"
|
|
60
|
+
"eslint": ">=9.29.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"eslint": {
|