@ntnyq/eslint-config 5.0.0-beta.5 → 5.0.0-beta.6
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/index.d.ts +172 -69
- package/dist/index.js +4 -4
- package/package.json +19 -21
package/dist/index.d.ts
CHANGED
|
@@ -2605,233 +2605,233 @@ interface RuleOptions {
|
|
|
2605
2605
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
2606
2606
|
/**
|
|
2607
2607
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2608
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2608
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/consistent-type-specifier-style.md
|
|
2609
2609
|
*/
|
|
2610
2610
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
2611
2611
|
/**
|
|
2612
2612
|
* Ensure a default export is present, given a default import.
|
|
2613
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2613
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/default.md
|
|
2614
2614
|
*/
|
|
2615
2615
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
2616
2616
|
/**
|
|
2617
2617
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2618
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2618
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/dynamic-import-chunkname.md
|
|
2619
2619
|
*/
|
|
2620
2620
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
2621
2621
|
/**
|
|
2622
2622
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2623
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2623
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/export.md
|
|
2624
2624
|
*/
|
|
2625
2625
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
2626
2626
|
/**
|
|
2627
2627
|
* Ensure all exports appear after other statements.
|
|
2628
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2628
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/exports-last.md
|
|
2629
2629
|
*/
|
|
2630
2630
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
2631
2631
|
/**
|
|
2632
2632
|
* Ensure consistent use of file extension within the import path.
|
|
2633
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2633
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/extensions.md
|
|
2634
2634
|
*/
|
|
2635
2635
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
2636
2636
|
/**
|
|
2637
2637
|
* Ensure all imports appear before other statements.
|
|
2638
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2638
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/first.md
|
|
2639
2639
|
*/
|
|
2640
2640
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
2641
2641
|
/**
|
|
2642
2642
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2643
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2643
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/group-exports.md
|
|
2644
2644
|
*/
|
|
2645
2645
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
2646
2646
|
/**
|
|
2647
2647
|
* Replaced by `import-x/first`.
|
|
2648
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2648
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/imports-first.md
|
|
2649
2649
|
* @deprecated
|
|
2650
2650
|
*/
|
|
2651
2651
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
2652
2652
|
/**
|
|
2653
2653
|
* Enforce the maximum number of dependencies a module can have.
|
|
2654
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2654
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/max-dependencies.md
|
|
2655
2655
|
*/
|
|
2656
2656
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
2657
2657
|
/**
|
|
2658
2658
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2659
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2659
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/named.md
|
|
2660
2660
|
*/
|
|
2661
2661
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2664
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2664
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/namespace.md
|
|
2665
2665
|
*/
|
|
2666
2666
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
2667
2667
|
/**
|
|
2668
2668
|
* Enforce a newline after import statements.
|
|
2669
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2669
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/newline-after-import.md
|
|
2670
2670
|
*/
|
|
2671
2671
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
2672
2672
|
/**
|
|
2673
2673
|
* Forbid import of modules using absolute paths.
|
|
2674
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2674
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-absolute-path.md
|
|
2675
2675
|
*/
|
|
2676
2676
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
2677
2677
|
/**
|
|
2678
2678
|
* Forbid AMD `require` and `define` calls.
|
|
2679
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2679
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-amd.md
|
|
2680
2680
|
*/
|
|
2681
2681
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
2682
2682
|
/**
|
|
2683
2683
|
* Forbid anonymous values as default exports.
|
|
2684
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2684
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-anonymous-default-export.md
|
|
2685
2685
|
*/
|
|
2686
2686
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
2687
2687
|
/**
|
|
2688
2688
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2689
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2689
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-commonjs.md
|
|
2690
2690
|
*/
|
|
2691
2691
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
2692
2692
|
/**
|
|
2693
2693
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2694
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2694
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-cycle.md
|
|
2695
2695
|
*/
|
|
2696
2696
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
2697
2697
|
/**
|
|
2698
2698
|
* Forbid default exports.
|
|
2699
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2699
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-default-export.md
|
|
2700
2700
|
*/
|
|
2701
2701
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
2702
2702
|
/**
|
|
2703
2703
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2704
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2704
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-deprecated.md
|
|
2705
2705
|
*/
|
|
2706
2706
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
2707
2707
|
/**
|
|
2708
2708
|
* Forbid repeated import of the same module in multiple places.
|
|
2709
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2709
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-duplicates.md
|
|
2710
2710
|
*/
|
|
2711
2711
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Forbid `require()` calls with expressions.
|
|
2714
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2714
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-dynamic-require.md
|
|
2715
2715
|
*/
|
|
2716
2716
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
2717
2717
|
/**
|
|
2718
2718
|
* Forbid empty named import blocks.
|
|
2719
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2719
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-empty-named-blocks.md
|
|
2720
2720
|
*/
|
|
2721
2721
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
2722
2722
|
/**
|
|
2723
2723
|
* Forbid the use of extraneous packages.
|
|
2724
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-extraneous-dependencies.md
|
|
2725
2725
|
*/
|
|
2726
2726
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
2727
2727
|
/**
|
|
2728
2728
|
* Forbid import statements with CommonJS module.exports.
|
|
2729
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-import-module-exports.md
|
|
2730
2730
|
*/
|
|
2731
2731
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
2732
2732
|
/**
|
|
2733
2733
|
* Forbid importing the submodules of other modules.
|
|
2734
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-internal-modules.md
|
|
2735
2735
|
*/
|
|
2736
2736
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
2737
2737
|
/**
|
|
2738
2738
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2739
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-mutable-exports.md
|
|
2740
2740
|
*/
|
|
2741
2741
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
2742
2742
|
/**
|
|
2743
2743
|
* Forbid use of exported name as identifier of default export.
|
|
2744
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-as-default.md
|
|
2745
2745
|
*/
|
|
2746
2746
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
2747
2747
|
/**
|
|
2748
2748
|
* Forbid use of exported name as property of default export.
|
|
2749
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2749
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-as-default-member.md
|
|
2750
2750
|
*/
|
|
2751
2751
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
2752
2752
|
/**
|
|
2753
2753
|
* Forbid named default exports.
|
|
2754
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2754
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-default.md
|
|
2755
2755
|
*/
|
|
2756
2756
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
2757
2757
|
/**
|
|
2758
2758
|
* Forbid named exports.
|
|
2759
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-named-export.md
|
|
2760
2760
|
*/
|
|
2761
2761
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
2762
2762
|
/**
|
|
2763
2763
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
2764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-namespace.md
|
|
2765
2765
|
*/
|
|
2766
2766
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
2767
2767
|
/**
|
|
2768
2768
|
* Forbid Node.js builtin modules.
|
|
2769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2769
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-nodejs-modules.md
|
|
2770
2770
|
*/
|
|
2771
2771
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
2772
2772
|
/**
|
|
2773
2773
|
* Forbid importing packages through relative paths.
|
|
2774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2774
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-relative-packages.md
|
|
2775
2775
|
*/
|
|
2776
2776
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
2777
2777
|
/**
|
|
2778
2778
|
* Forbid importing modules from parent directories.
|
|
2779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-relative-parent-imports.md
|
|
2780
2780
|
*/
|
|
2781
2781
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
2782
2782
|
/**
|
|
2783
2783
|
* Forbid importing a default export by a different name.
|
|
2784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-rename-default.md
|
|
2785
2785
|
*/
|
|
2786
2786
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
2787
2787
|
/**
|
|
2788
2788
|
* Enforce which files can be imported in a given folder.
|
|
2789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-restricted-paths.md
|
|
2790
2790
|
*/
|
|
2791
2791
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
2792
2792
|
/**
|
|
2793
2793
|
* Forbid a module from importing itself.
|
|
2794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-self-import.md
|
|
2795
2795
|
*/
|
|
2796
2796
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
2797
2797
|
/**
|
|
2798
2798
|
* Forbid unassigned imports.
|
|
2799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-unassigned-import.md
|
|
2800
2800
|
*/
|
|
2801
2801
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Ensure imports point to a file/module that can be resolved.
|
|
2804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-unresolved.md
|
|
2805
2805
|
*/
|
|
2806
2806
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
2807
2807
|
/**
|
|
2808
2808
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
2809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-unused-modules.md
|
|
2810
2810
|
*/
|
|
2811
2811
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
2812
2812
|
/**
|
|
2813
2813
|
* Forbid unnecessary path segments in import and require statements.
|
|
2814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2814
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-useless-path-segments.md
|
|
2815
2815
|
*/
|
|
2816
2816
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
2817
2817
|
/**
|
|
2818
2818
|
* Forbid webpack loader syntax in imports.
|
|
2819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2819
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/no-webpack-loader-syntax.md
|
|
2820
2820
|
*/
|
|
2821
2821
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
2822
2822
|
/**
|
|
2823
2823
|
* Enforce a convention in module import order.
|
|
2824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/order.md
|
|
2825
2825
|
*/
|
|
2826
2826
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
2827
2827
|
/**
|
|
2828
2828
|
* Prefer a default export if module exports a single name or multiple names.
|
|
2829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/prefer-default-export.md
|
|
2830
2830
|
*/
|
|
2831
2831
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
2832
2832
|
/**
|
|
2833
2833
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
2834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.1/docs/rules/unambiguous.md
|
|
2835
2835
|
*/
|
|
2836
2836
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
2837
2837
|
/**
|
|
@@ -3419,11 +3419,26 @@ interface RuleOptions {
|
|
|
3419
3419
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
3420
3420
|
*/
|
|
3421
3421
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
3422
|
+
/**
|
|
3423
|
+
* Disallow duplicate definitions
|
|
3424
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
3425
|
+
*/
|
|
3426
|
+
'markdown/no-duplicate-definitions'?: Linter.RuleEntry<MarkdownNoDuplicateDefinitions>;
|
|
3422
3427
|
/**
|
|
3423
3428
|
* Disallow duplicate headings in the same document
|
|
3424
3429
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
3425
3430
|
*/
|
|
3426
3431
|
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>;
|
|
3432
|
+
/**
|
|
3433
|
+
* Disallow empty definitions
|
|
3434
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
3435
|
+
*/
|
|
3436
|
+
'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>;
|
|
3437
|
+
/**
|
|
3438
|
+
* Disallow empty images
|
|
3439
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
3440
|
+
*/
|
|
3441
|
+
'markdown/no-empty-images'?: Linter.RuleEntry<[]>;
|
|
3427
3442
|
/**
|
|
3428
3443
|
* Disallow empty links
|
|
3429
3444
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
@@ -3439,11 +3454,31 @@ interface RuleOptions {
|
|
|
3439
3454
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
3440
3455
|
*/
|
|
3441
3456
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>;
|
|
3457
|
+
/**
|
|
3458
|
+
* Disallow headings without a space after the hash characters
|
|
3459
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
|
|
3460
|
+
*/
|
|
3461
|
+
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<[]>;
|
|
3442
3462
|
/**
|
|
3443
3463
|
* Disallow missing label references
|
|
3444
3464
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
3445
3465
|
*/
|
|
3446
3466
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
3467
|
+
/**
|
|
3468
|
+
* Disallow multiple H1 headings in the same document
|
|
3469
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
3470
|
+
*/
|
|
3471
|
+
'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>;
|
|
3472
|
+
/**
|
|
3473
|
+
* Require alternative text for images
|
|
3474
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
3475
|
+
*/
|
|
3476
|
+
'markdown/require-alt-text'?: Linter.RuleEntry<[]>;
|
|
3477
|
+
/**
|
|
3478
|
+
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
3479
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
3480
|
+
*/
|
|
3481
|
+
'markdown/table-column-count'?: Linter.RuleEntry<[]>;
|
|
3447
3482
|
/**
|
|
3448
3483
|
* Enforce a maximum number of classes per file
|
|
3449
3484
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -4454,6 +4489,11 @@ interface RuleOptions {
|
|
|
4454
4489
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
4455
4490
|
*/
|
|
4456
4491
|
'node/no-sync'?: Linter.RuleEntry<NodeNoSync>;
|
|
4492
|
+
/**
|
|
4493
|
+
* disallow top-level `await` in published modules
|
|
4494
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
4495
|
+
*/
|
|
4496
|
+
'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>;
|
|
4457
4497
|
/**
|
|
4458
4498
|
* disallow `bin` files that npm ignores
|
|
4459
4499
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -5189,7 +5229,7 @@ interface RuleOptions {
|
|
|
5189
5229
|
* enforce using quantifier
|
|
5190
5230
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
5191
5231
|
*/
|
|
5192
|
-
'regexp/prefer-quantifier'?: Linter.RuleEntry<
|
|
5232
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>;
|
|
5193
5233
|
/**
|
|
5194
5234
|
* enforce using `?` quantifier
|
|
5195
5235
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
@@ -10114,10 +10154,10 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
|
|
|
10114
10154
|
postTag?: number;
|
|
10115
10155
|
postType?: number;
|
|
10116
10156
|
};
|
|
10157
|
+
disableWrapIndent?: boolean;
|
|
10117
10158
|
preserveMainDescriptionPostDelimiter?: boolean;
|
|
10118
10159
|
tags?: string[];
|
|
10119
10160
|
wrapIndent?: string;
|
|
10120
|
-
disableWrapIndent?: boolean;
|
|
10121
10161
|
}];
|
|
10122
10162
|
// ----- jsdoc/check-param-names -----
|
|
10123
10163
|
type JsdocCheckParamNames = [] | [{
|
|
@@ -11195,10 +11235,19 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
11195
11235
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
11196
11236
|
required?: string[];
|
|
11197
11237
|
}];
|
|
11238
|
+
// ----- markdown/no-duplicate-definitions -----
|
|
11239
|
+
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
11240
|
+
allowDefinitions?: string[];
|
|
11241
|
+
allowFootnoteDefinitions?: string[];
|
|
11242
|
+
}];
|
|
11198
11243
|
// ----- markdown/no-html -----
|
|
11199
11244
|
type MarkdownNoHtml = [] | [{
|
|
11200
11245
|
allowed?: string[];
|
|
11201
11246
|
}];
|
|
11247
|
+
// ----- markdown/no-multiple-h1 -----
|
|
11248
|
+
type MarkdownNoMultipleH1 = [] | [{
|
|
11249
|
+
frontmatterTitle?: string;
|
|
11250
|
+
}];
|
|
11202
11251
|
// ----- max-classes-per-file -----
|
|
11203
11252
|
type MaxClassesPerFile = [] | [(number | {
|
|
11204
11253
|
ignoreExpressions?: boolean;
|
|
@@ -11846,7 +11895,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
|
|
|
11846
11895
|
// ----- node/no-sync -----
|
|
11847
11896
|
type NodeNoSync = [] | [{
|
|
11848
11897
|
allowAtRootLevel?: boolean;
|
|
11849
|
-
ignores?: string
|
|
11898
|
+
ignores?: (string | {
|
|
11899
|
+
from?: "file";
|
|
11900
|
+
path?: string;
|
|
11901
|
+
name?: string[];
|
|
11902
|
+
} | {
|
|
11903
|
+
from?: "lib";
|
|
11904
|
+
name?: string[];
|
|
11905
|
+
} | {
|
|
11906
|
+
from?: "package";
|
|
11907
|
+
package?: string;
|
|
11908
|
+
name?: string[];
|
|
11909
|
+
})[];
|
|
11910
|
+
}];
|
|
11911
|
+
// ----- node/no-top-level-await -----
|
|
11912
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
11913
|
+
ignoreBin?: boolean;
|
|
11914
|
+
convertPath?: ({
|
|
11915
|
+
[k: string]: [string, string];
|
|
11916
|
+
} | [{
|
|
11917
|
+
include: [string, ...(string)[]];
|
|
11918
|
+
exclude?: string[];
|
|
11919
|
+
replace: [string, string];
|
|
11920
|
+
}, ...({
|
|
11921
|
+
include: [string, ...(string)[]];
|
|
11922
|
+
exclude?: string[];
|
|
11923
|
+
replace: [string, string];
|
|
11924
|
+
})[]]);
|
|
11850
11925
|
}];
|
|
11851
11926
|
// ----- node/no-unpublished-bin -----
|
|
11852
11927
|
type NodeNoUnpublishedBin = [] | [{
|
|
@@ -12147,7 +12222,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12147
12222
|
partitionByNewLine?: boolean;
|
|
12148
12223
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12149
12224
|
groups?: (string | string[] | {
|
|
12150
|
-
newlinesBetween
|
|
12225
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12226
|
+
commentAbove?: string;
|
|
12151
12227
|
})[];
|
|
12152
12228
|
}[];
|
|
12153
12229
|
// ----- perfectionist/sort-classes -----
|
|
@@ -12261,7 +12337,8 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12261
12337
|
partitionByNewLine?: boolean;
|
|
12262
12338
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12263
12339
|
groups?: (string | string[] | {
|
|
12264
|
-
newlinesBetween
|
|
12340
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12341
|
+
commentAbove?: string;
|
|
12265
12342
|
})[];
|
|
12266
12343
|
}];
|
|
12267
12344
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -12307,7 +12384,8 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
12307
12384
|
[k: string]: (string | string[]) | undefined;
|
|
12308
12385
|
};
|
|
12309
12386
|
groups?: (string | string[] | {
|
|
12310
|
-
newlinesBetween
|
|
12387
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12388
|
+
commentAbove?: string;
|
|
12311
12389
|
})[];
|
|
12312
12390
|
}];
|
|
12313
12391
|
// ----- perfectionist/sort-enums -----
|
|
@@ -12400,7 +12478,8 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12400
12478
|
partitionByNewLine?: boolean;
|
|
12401
12479
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12402
12480
|
groups?: (string | string[] | {
|
|
12403
|
-
newlinesBetween
|
|
12481
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12482
|
+
commentAbove?: string;
|
|
12404
12483
|
})[];
|
|
12405
12484
|
}];
|
|
12406
12485
|
// ----- perfectionist/sort-exports -----
|
|
@@ -12480,7 +12559,8 @@ type PerfectionistSortExports = {
|
|
|
12480
12559
|
partitionByNewLine?: boolean;
|
|
12481
12560
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12482
12561
|
groups?: (string | string[] | {
|
|
12483
|
-
newlinesBetween
|
|
12562
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12563
|
+
commentAbove?: string;
|
|
12484
12564
|
})[];
|
|
12485
12565
|
}[];
|
|
12486
12566
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -12499,7 +12579,8 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
12499
12579
|
[k: string]: (string | string[]) | undefined;
|
|
12500
12580
|
};
|
|
12501
12581
|
groups?: (string | string[] | {
|
|
12502
|
-
newlinesBetween
|
|
12582
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12583
|
+
commentAbove?: string;
|
|
12503
12584
|
})[];
|
|
12504
12585
|
}];
|
|
12505
12586
|
// ----- perfectionist/sort-imports -----
|
|
@@ -12574,6 +12655,10 @@ type PerfectionistSortImports = {
|
|
|
12574
12655
|
flags?: string;
|
|
12575
12656
|
} | string));
|
|
12576
12657
|
})[]);
|
|
12658
|
+
tsconfig?: {
|
|
12659
|
+
rootDir: string;
|
|
12660
|
+
filename?: string;
|
|
12661
|
+
};
|
|
12577
12662
|
maxLineLength?: number;
|
|
12578
12663
|
sortSideEffects?: boolean;
|
|
12579
12664
|
environment?: ("node" | "bun");
|
|
@@ -12610,7 +12695,8 @@ type PerfectionistSortImports = {
|
|
|
12610
12695
|
flags?: string;
|
|
12611
12696
|
} | string));
|
|
12612
12697
|
groups?: (string | string[] | {
|
|
12613
|
-
newlinesBetween
|
|
12698
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12699
|
+
commentAbove?: string;
|
|
12614
12700
|
})[];
|
|
12615
12701
|
}[];
|
|
12616
12702
|
// ----- perfectionist/sort-interfaces -----
|
|
@@ -12735,7 +12821,8 @@ type PerfectionistSortInterfaces = {
|
|
|
12735
12821
|
} | string));
|
|
12736
12822
|
sortBy?: ("name" | "value");
|
|
12737
12823
|
groups?: (string | string[] | {
|
|
12738
|
-
newlinesBetween
|
|
12824
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12825
|
+
commentAbove?: string;
|
|
12739
12826
|
})[];
|
|
12740
12827
|
}[];
|
|
12741
12828
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -12812,7 +12899,8 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12812
12899
|
partitionByNewLine?: boolean;
|
|
12813
12900
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12814
12901
|
groups?: (string | string[] | {
|
|
12815
|
-
newlinesBetween
|
|
12902
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12903
|
+
commentAbove?: string;
|
|
12816
12904
|
})[];
|
|
12817
12905
|
}[];
|
|
12818
12906
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -12908,7 +12996,8 @@ type PerfectionistSortJsxProps = {
|
|
|
12908
12996
|
flags?: string;
|
|
12909
12997
|
} | string));
|
|
12910
12998
|
groups?: (string | string[] | {
|
|
12911
|
-
newlinesBetween
|
|
12999
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13000
|
+
commentAbove?: string;
|
|
12912
13001
|
})[];
|
|
12913
13002
|
}[];
|
|
12914
13003
|
// ----- perfectionist/sort-maps -----
|
|
@@ -12992,7 +13081,8 @@ type PerfectionistSortMaps = {
|
|
|
12992
13081
|
partitionByNewLine?: boolean;
|
|
12993
13082
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12994
13083
|
groups?: (string | string[] | {
|
|
12995
|
-
newlinesBetween
|
|
13084
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13085
|
+
commentAbove?: string;
|
|
12996
13086
|
})[];
|
|
12997
13087
|
}[];
|
|
12998
13088
|
// ----- perfectionist/sort-modules -----
|
|
@@ -13085,7 +13175,8 @@ type PerfectionistSortModules = [] | [{
|
|
|
13085
13175
|
partitionByNewLine?: boolean;
|
|
13086
13176
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13087
13177
|
groups?: (string | string[] | {
|
|
13088
|
-
newlinesBetween
|
|
13178
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13179
|
+
commentAbove?: string;
|
|
13089
13180
|
})[];
|
|
13090
13181
|
}];
|
|
13091
13182
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -13166,7 +13257,8 @@ type PerfectionistSortNamedExports = {
|
|
|
13166
13257
|
partitionByNewLine?: boolean;
|
|
13167
13258
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13168
13259
|
groups?: (string | string[] | {
|
|
13169
|
-
newlinesBetween
|
|
13260
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13261
|
+
commentAbove?: string;
|
|
13170
13262
|
})[];
|
|
13171
13263
|
}[];
|
|
13172
13264
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -13247,7 +13339,8 @@ type PerfectionistSortNamedImports = {
|
|
|
13247
13339
|
partitionByNewLine?: boolean;
|
|
13248
13340
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13249
13341
|
groups?: (string | string[] | {
|
|
13250
|
-
newlinesBetween
|
|
13342
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13343
|
+
commentAbove?: string;
|
|
13251
13344
|
})[];
|
|
13252
13345
|
}[];
|
|
13253
13346
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -13372,7 +13465,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
13372
13465
|
} | string));
|
|
13373
13466
|
sortBy?: ("name" | "value");
|
|
13374
13467
|
groups?: (string | string[] | {
|
|
13375
|
-
newlinesBetween
|
|
13468
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13469
|
+
commentAbove?: string;
|
|
13376
13470
|
})[];
|
|
13377
13471
|
}[];
|
|
13378
13472
|
// ----- perfectionist/sort-objects -----
|
|
@@ -13496,7 +13590,8 @@ type PerfectionistSortObjects = {
|
|
|
13496
13590
|
flags?: string;
|
|
13497
13591
|
} | string));
|
|
13498
13592
|
groups?: (string | string[] | {
|
|
13499
|
-
newlinesBetween
|
|
13593
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13594
|
+
commentAbove?: string;
|
|
13500
13595
|
})[];
|
|
13501
13596
|
}[];
|
|
13502
13597
|
// ----- perfectionist/sort-sets -----
|
|
@@ -13583,7 +13678,8 @@ type PerfectionistSortSets = {
|
|
|
13583
13678
|
partitionByNewLine?: boolean;
|
|
13584
13679
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13585
13680
|
groups?: (string | string[] | {
|
|
13586
|
-
newlinesBetween
|
|
13681
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13682
|
+
commentAbove?: string;
|
|
13587
13683
|
})[];
|
|
13588
13684
|
}[];
|
|
13589
13685
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -13673,7 +13769,8 @@ type PerfectionistSortUnionTypes = {
|
|
|
13673
13769
|
partitionByNewLine?: boolean;
|
|
13674
13770
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13675
13771
|
groups?: (string | string[] | {
|
|
13676
|
-
newlinesBetween
|
|
13772
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13773
|
+
commentAbove?: string;
|
|
13677
13774
|
})[];
|
|
13678
13775
|
}[];
|
|
13679
13776
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -13750,7 +13847,8 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13750
13847
|
partitionByNewLine?: boolean;
|
|
13751
13848
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13752
13849
|
groups?: (string | string[] | {
|
|
13753
|
-
newlinesBetween
|
|
13850
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13851
|
+
commentAbove?: string;
|
|
13754
13852
|
})[];
|
|
13755
13853
|
}];
|
|
13756
13854
|
// ----- pinia/prefer-use-store-naming-convention -----
|
|
@@ -13952,6 +14050,10 @@ type RegexpPreferLookaround = [] | [{
|
|
|
13952
14050
|
type RegexpPreferNamedReplacement = [] | [{
|
|
13953
14051
|
strictTypes?: boolean;
|
|
13954
14052
|
}];
|
|
14053
|
+
// ----- regexp/prefer-quantifier -----
|
|
14054
|
+
type RegexpPreferQuantifier = [] | [{
|
|
14055
|
+
allows?: string[];
|
|
14056
|
+
}];
|
|
13955
14057
|
// ----- regexp/prefer-range -----
|
|
13956
14058
|
type RegexpPreferRange = [] | [{
|
|
13957
14059
|
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
@@ -14227,6 +14329,7 @@ type SveltePreferConst = [] | [{
|
|
|
14227
14329
|
destructuring?: ("any" | "all");
|
|
14228
14330
|
ignoreReadBeforeAssign?: boolean;
|
|
14229
14331
|
excludedRunes?: string[];
|
|
14332
|
+
[k: string]: unknown | undefined;
|
|
14230
14333
|
}];
|
|
14231
14334
|
// ----- svelte/require-event-prefix -----
|
|
14232
14335
|
type SvelteRequireEventPrefix = [] | [{
|
|
@@ -16096,7 +16199,7 @@ type VueNoRestrictedCustomEvent = (string | {
|
|
|
16096
16199
|
})[];
|
|
16097
16200
|
// ----- vue/no-restricted-html-elements -----
|
|
16098
16201
|
type VueNoRestrictedHtmlElements = (string | {
|
|
16099
|
-
element: string;
|
|
16202
|
+
element: (string | string[]);
|
|
16100
16203
|
message?: string;
|
|
16101
16204
|
})[];
|
|
16102
16205
|
// ----- vue/no-restricted-props -----
|
package/dist/index.js
CHANGED
|
@@ -3043,16 +3043,16 @@ function defineESLintConfig(options = {}, ...userConfigs) {
|
|
|
3043
3043
|
...resolveSubOptions(options, "javascript"),
|
|
3044
3044
|
overrides: getOverrides(options, "javascript")
|
|
3045
3045
|
}));
|
|
3046
|
-
if (enableImportX) configImportX({
|
|
3046
|
+
if (enableImportX) configs.push(configImportX({
|
|
3047
3047
|
typescript: !!enableTypeScript,
|
|
3048
3048
|
...resolveSubOptions(options, "importX"),
|
|
3049
3049
|
overrides: getOverrides(options, "importX")
|
|
3050
|
-
});
|
|
3051
|
-
if (enableJsdoc) configJsdoc({
|
|
3050
|
+
}));
|
|
3051
|
+
if (enableJsdoc) configs.push(configJsdoc({
|
|
3052
3052
|
typescript: !!enableTypeScript,
|
|
3053
3053
|
overrides: getOverrides(options, "jsdoc"),
|
|
3054
3054
|
...resolveSubOptions(options, "jsdoc")
|
|
3055
|
-
});
|
|
3055
|
+
}));
|
|
3056
3056
|
if (enablePerfectionist) configs.push(configPerfectionist({
|
|
3057
3057
|
...resolveSubOptions(options, "perfectionist"),
|
|
3058
3058
|
overrides: getOverrides(options, "perfectionist")
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.6",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -89,33 +89,33 @@
|
|
|
89
89
|
"@clack/prompts": "^0.11.0",
|
|
90
90
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
91
91
|
"@eslint/js": "^9.28.0",
|
|
92
|
-
"@eslint/markdown": "^6.
|
|
93
|
-
"@unocss/eslint-plugin": "^66.1.
|
|
92
|
+
"@eslint/markdown": "^6.5.0",
|
|
93
|
+
"@unocss/eslint-plugin": "^66.1.4",
|
|
94
94
|
"@vitest/eslint-plugin": "^1.2.1",
|
|
95
95
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
96
96
|
"eslint-flat-config-utils": "^2.1.0",
|
|
97
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
97
|
+
"eslint-import-resolver-typescript": "^4.4.3",
|
|
98
98
|
"eslint-merge-processors": "^2.0.0",
|
|
99
99
|
"eslint-parser-plain": "^0.1.1",
|
|
100
100
|
"eslint-plugin-antfu": "^3.1.1",
|
|
101
101
|
"eslint-plugin-command": "^3.2.1",
|
|
102
|
-
"eslint-plugin-de-morgan": "^1.
|
|
102
|
+
"eslint-plugin-de-morgan": "^1.3.0",
|
|
103
103
|
"eslint-plugin-depend": "^1.2.0",
|
|
104
104
|
"eslint-plugin-github-action": "^0.0.16",
|
|
105
|
-
"eslint-plugin-import-x": "^4.15.
|
|
106
|
-
"eslint-plugin-jsdoc": "^50.
|
|
105
|
+
"eslint-plugin-import-x": "^4.15.1",
|
|
106
|
+
"eslint-plugin-jsdoc": "^50.7.1",
|
|
107
107
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
108
|
-
"eslint-plugin-n": "^17.
|
|
108
|
+
"eslint-plugin-n": "^17.19.0",
|
|
109
109
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
110
110
|
"eslint-plugin-ntnyq": "^0.11.0",
|
|
111
|
-
"eslint-plugin-perfectionist": "^4.
|
|
111
|
+
"eslint-plugin-perfectionist": "^4.14.0",
|
|
112
112
|
"eslint-plugin-pinia": "^0.4.1",
|
|
113
113
|
"eslint-plugin-prettier": "^5.4.1",
|
|
114
|
-
"eslint-plugin-regexp": "^2.
|
|
114
|
+
"eslint-plugin-regexp": "^2.9.0",
|
|
115
115
|
"eslint-plugin-svgo": "^0.8.0",
|
|
116
116
|
"eslint-plugin-toml": "^0.12.0",
|
|
117
117
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
118
|
-
"eslint-plugin-vue": "^10.
|
|
118
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
119
119
|
"eslint-plugin-yml": "^1.18.0",
|
|
120
120
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
121
121
|
"globals": "^16.2.0",
|
|
@@ -123,14 +123,15 @@
|
|
|
123
123
|
"local-pkg": "^1.1.1",
|
|
124
124
|
"prettier": "^3.5.3",
|
|
125
125
|
"toml-eslint-parser": "^0.10.0",
|
|
126
|
-
"typescript-eslint": "^8.33.
|
|
126
|
+
"typescript-eslint": "^8.33.1",
|
|
127
127
|
"vue-eslint-parser": "^10.1.3",
|
|
128
128
|
"yaml-eslint-parser": "^1.3.0"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@ntnyq/prettier-config": "^2.2.0",
|
|
132
|
-
"@types/node": "^22.15.
|
|
132
|
+
"@types/node": "^22.15.30",
|
|
133
133
|
"bumpp": "^10.1.1",
|
|
134
|
+
"consola": "^3.4.2",
|
|
134
135
|
"eslint": "^9.28.0",
|
|
135
136
|
"eslint-plugin-eslint-plugin": "^6.4.0",
|
|
136
137
|
"eslint-typegen": "^2.2.0",
|
|
@@ -139,11 +140,10 @@
|
|
|
139
140
|
"nano-staged": "^0.8.0",
|
|
140
141
|
"npm-run-all2": "^8.0.4",
|
|
141
142
|
"tinyglobby": "^0.2.14",
|
|
142
|
-
"tsdown": "^0.12.
|
|
143
|
-
"tsx": "^4.19.4",
|
|
143
|
+
"tsdown": "^0.12.7",
|
|
144
144
|
"typescript": "^5.8.3",
|
|
145
145
|
"uncase": "^0.1.0",
|
|
146
|
-
"vitest": "^3.
|
|
146
|
+
"vitest": "^3.2.2"
|
|
147
147
|
},
|
|
148
148
|
"engines": {
|
|
149
149
|
"node": ">=20.11.0"
|
|
@@ -153,14 +153,12 @@
|
|
|
153
153
|
"*.{css,scss,html}": "prettier -uw"
|
|
154
154
|
},
|
|
155
155
|
"scripts": {
|
|
156
|
-
"build": "
|
|
157
|
-
"build:inspector": "pnpm dlx @eslint/config-inspector build --config eslint-inspector.config.ts",
|
|
158
|
-
"build:lib": "tsdown",
|
|
156
|
+
"build": "tsdown",
|
|
159
157
|
"dev": "tsdown --watch",
|
|
160
158
|
"docs:build": "pnpm -C docs run build",
|
|
161
159
|
"docs:dev": "pnpm -C docs run dev",
|
|
162
|
-
"
|
|
163
|
-
"generate
|
|
160
|
+
"inspector:build": "run-s build inspector:generate",
|
|
161
|
+
"inspector:generate": "pnpm dlx @eslint/config-inspector build --config eslint-inspector.config.ts",
|
|
164
162
|
"lint": "eslint --cache",
|
|
165
163
|
"release": "run-s release:check release:version release:publish",
|
|
166
164
|
"release:check": "run-s build lint test typecheck",
|