@ntnyq/eslint-config 5.0.0-beta.5 → 5.0.0-beta.7
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 +243 -121
- package/dist/index.js +4 -4
- package/package.json +25 -27
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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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
|
|
@@ -6640,6 +6680,11 @@ interface RuleOptions {
|
|
|
6640
6680
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
6641
6681
|
*/
|
|
6642
6682
|
'vitest/consistent-test-it'?: Linter.RuleEntry<VitestConsistentTestIt>;
|
|
6683
|
+
/**
|
|
6684
|
+
* enforce using vitest or vi but not both
|
|
6685
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
|
|
6686
|
+
*/
|
|
6687
|
+
'vitest/consistent-vitest-vi'?: Linter.RuleEntry<VitestConsistentVitestVi>;
|
|
6643
6688
|
/**
|
|
6644
6689
|
* enforce having expectation in test body
|
|
6645
6690
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
@@ -6716,6 +6761,11 @@ interface RuleOptions {
|
|
|
6716
6761
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
6717
6762
|
*/
|
|
6718
6763
|
'vitest/no-import-node-test'?: Linter.RuleEntry<[]>;
|
|
6764
|
+
/**
|
|
6765
|
+
* disallow importing Vitest globals
|
|
6766
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
|
|
6767
|
+
*/
|
|
6768
|
+
'vitest/no-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
6719
6769
|
/**
|
|
6720
6770
|
* disallow string interpolation in snapshots
|
|
6721
6771
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
@@ -6747,7 +6797,7 @@ interface RuleOptions {
|
|
|
6747
6797
|
*/
|
|
6748
6798
|
'vitest/no-standalone-expect'?: Linter.RuleEntry<VitestNoStandaloneExpect>;
|
|
6749
6799
|
/**
|
|
6750
|
-
*
|
|
6800
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
6751
6801
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
6752
6802
|
*/
|
|
6753
6803
|
'vitest/no-test-prefixes'?: Linter.RuleEntry<[]>;
|
|
@@ -6841,6 +6891,11 @@ interface RuleOptions {
|
|
|
6841
6891
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
6842
6892
|
*/
|
|
6843
6893
|
'vitest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>;
|
|
6894
|
+
/**
|
|
6895
|
+
* enforce importing Vitest globals
|
|
6896
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
6897
|
+
*/
|
|
6898
|
+
'vitest/prefer-importing-vitest-globals'?: Linter.RuleEntry<[]>;
|
|
6844
6899
|
/**
|
|
6845
6900
|
* enforce lowercase titles
|
|
6846
6901
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
@@ -10114,10 +10169,10 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
|
|
|
10114
10169
|
postTag?: number;
|
|
10115
10170
|
postType?: number;
|
|
10116
10171
|
};
|
|
10172
|
+
disableWrapIndent?: boolean;
|
|
10117
10173
|
preserveMainDescriptionPostDelimiter?: boolean;
|
|
10118
10174
|
tags?: string[];
|
|
10119
10175
|
wrapIndent?: string;
|
|
10120
|
-
disableWrapIndent?: boolean;
|
|
10121
10176
|
}];
|
|
10122
10177
|
// ----- jsdoc/check-param-names -----
|
|
10123
10178
|
type JsdocCheckParamNames = [] | [{
|
|
@@ -11195,10 +11250,19 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
11195
11250
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
11196
11251
|
required?: string[];
|
|
11197
11252
|
}];
|
|
11253
|
+
// ----- markdown/no-duplicate-definitions -----
|
|
11254
|
+
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
11255
|
+
allowDefinitions?: string[];
|
|
11256
|
+
allowFootnoteDefinitions?: string[];
|
|
11257
|
+
}];
|
|
11198
11258
|
// ----- markdown/no-html -----
|
|
11199
11259
|
type MarkdownNoHtml = [] | [{
|
|
11200
11260
|
allowed?: string[];
|
|
11201
11261
|
}];
|
|
11262
|
+
// ----- markdown/no-multiple-h1 -----
|
|
11263
|
+
type MarkdownNoMultipleH1 = [] | [{
|
|
11264
|
+
frontmatterTitle?: string;
|
|
11265
|
+
}];
|
|
11202
11266
|
// ----- max-classes-per-file -----
|
|
11203
11267
|
type MaxClassesPerFile = [] | [(number | {
|
|
11204
11268
|
ignoreExpressions?: boolean;
|
|
@@ -11846,7 +11910,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
|
|
|
11846
11910
|
// ----- node/no-sync -----
|
|
11847
11911
|
type NodeNoSync = [] | [{
|
|
11848
11912
|
allowAtRootLevel?: boolean;
|
|
11849
|
-
ignores?: string
|
|
11913
|
+
ignores?: (string | {
|
|
11914
|
+
from?: "file";
|
|
11915
|
+
path?: string;
|
|
11916
|
+
name?: string[];
|
|
11917
|
+
} | {
|
|
11918
|
+
from?: "lib";
|
|
11919
|
+
name?: string[];
|
|
11920
|
+
} | {
|
|
11921
|
+
from?: "package";
|
|
11922
|
+
package?: string;
|
|
11923
|
+
name?: string[];
|
|
11924
|
+
})[];
|
|
11925
|
+
}];
|
|
11926
|
+
// ----- node/no-top-level-await -----
|
|
11927
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
11928
|
+
ignoreBin?: boolean;
|
|
11929
|
+
convertPath?: ({
|
|
11930
|
+
[k: string]: [string, string];
|
|
11931
|
+
} | [{
|
|
11932
|
+
include: [string, ...(string)[]];
|
|
11933
|
+
exclude?: string[];
|
|
11934
|
+
replace: [string, string];
|
|
11935
|
+
}, ...({
|
|
11936
|
+
include: [string, ...(string)[]];
|
|
11937
|
+
exclude?: string[];
|
|
11938
|
+
replace: [string, string];
|
|
11939
|
+
})[]]);
|
|
11850
11940
|
}];
|
|
11851
11941
|
// ----- node/no-unpublished-bin -----
|
|
11852
11942
|
type NodeNoUnpublishedBin = [] | [{
|
|
@@ -12077,7 +12167,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12077
12167
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12078
12168
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
12079
12169
|
customGroups?: ({
|
|
12080
|
-
newlinesInside?: ("always" | "never");
|
|
12170
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12081
12171
|
fallbackSort?: {
|
|
12082
12172
|
order?: ("asc" | "desc");
|
|
12083
12173
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12096,7 +12186,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12096
12186
|
} | string));
|
|
12097
12187
|
}[];
|
|
12098
12188
|
} | {
|
|
12099
|
-
newlinesInside?: ("always" | "never");
|
|
12189
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12100
12190
|
fallbackSort?: {
|
|
12101
12191
|
order?: ("asc" | "desc");
|
|
12102
12192
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12145,9 +12235,10 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12145
12235
|
} | string)));
|
|
12146
12236
|
});
|
|
12147
12237
|
partitionByNewLine?: boolean;
|
|
12148
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12238
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12149
12239
|
groups?: (string | string[] | {
|
|
12150
|
-
newlinesBetween
|
|
12240
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12241
|
+
commentAbove?: string;
|
|
12151
12242
|
})[];
|
|
12152
12243
|
}[];
|
|
12153
12244
|
// ----- perfectionist/sort-classes -----
|
|
@@ -12163,7 +12254,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12163
12254
|
order?: ("asc" | "desc");
|
|
12164
12255
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12165
12256
|
customGroups?: ({
|
|
12166
|
-
newlinesInside?: ("always" | "never");
|
|
12257
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12167
12258
|
fallbackSort?: {
|
|
12168
12259
|
order?: ("asc" | "desc");
|
|
12169
12260
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12197,7 +12288,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12197
12288
|
} | string));
|
|
12198
12289
|
}[];
|
|
12199
12290
|
} | {
|
|
12200
|
-
newlinesInside?: ("always" | "never");
|
|
12291
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12201
12292
|
fallbackSort?: {
|
|
12202
12293
|
order?: ("asc" | "desc");
|
|
12203
12294
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12259,9 +12350,10 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12259
12350
|
} | string)));
|
|
12260
12351
|
});
|
|
12261
12352
|
partitionByNewLine?: boolean;
|
|
12262
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12353
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12263
12354
|
groups?: (string | string[] | {
|
|
12264
|
-
newlinesBetween
|
|
12355
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12356
|
+
commentAbove?: string;
|
|
12265
12357
|
})[];
|
|
12266
12358
|
}];
|
|
12267
12359
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -12307,7 +12399,8 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
12307
12399
|
[k: string]: (string | string[]) | undefined;
|
|
12308
12400
|
};
|
|
12309
12401
|
groups?: (string | string[] | {
|
|
12310
|
-
newlinesBetween
|
|
12402
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12403
|
+
commentAbove?: string;
|
|
12311
12404
|
})[];
|
|
12312
12405
|
}];
|
|
12313
12406
|
// ----- perfectionist/sort-enums -----
|
|
@@ -12325,7 +12418,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12325
12418
|
customGroups?: ({
|
|
12326
12419
|
[k: string]: (string | string[]) | undefined;
|
|
12327
12420
|
} | ({
|
|
12328
|
-
newlinesInside?: ("always" | "never");
|
|
12421
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12329
12422
|
fallbackSort?: {
|
|
12330
12423
|
order?: ("asc" | "desc");
|
|
12331
12424
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12350,7 +12443,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12350
12443
|
} | string));
|
|
12351
12444
|
}[];
|
|
12352
12445
|
} | {
|
|
12353
|
-
newlinesInside?: ("always" | "never");
|
|
12446
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12354
12447
|
fallbackSort?: {
|
|
12355
12448
|
order?: ("asc" | "desc");
|
|
12356
12449
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12398,9 +12491,10 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12398
12491
|
} | string)));
|
|
12399
12492
|
});
|
|
12400
12493
|
partitionByNewLine?: boolean;
|
|
12401
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12494
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12402
12495
|
groups?: (string | string[] | {
|
|
12403
|
-
newlinesBetween
|
|
12496
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12497
|
+
commentAbove?: string;
|
|
12404
12498
|
})[];
|
|
12405
12499
|
}];
|
|
12406
12500
|
// ----- perfectionist/sort-exports -----
|
|
@@ -12417,7 +12511,7 @@ type PerfectionistSortExports = {
|
|
|
12417
12511
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12418
12512
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
12419
12513
|
customGroups?: ({
|
|
12420
|
-
newlinesInside?: ("always" | "never");
|
|
12514
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12421
12515
|
fallbackSort?: {
|
|
12422
12516
|
order?: ("asc" | "desc");
|
|
12423
12517
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12437,7 +12531,7 @@ type PerfectionistSortExports = {
|
|
|
12437
12531
|
} | string));
|
|
12438
12532
|
}[];
|
|
12439
12533
|
} | {
|
|
12440
|
-
newlinesInside?: ("always" | "never");
|
|
12534
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12441
12535
|
fallbackSort?: {
|
|
12442
12536
|
order?: ("asc" | "desc");
|
|
12443
12537
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12478,9 +12572,10 @@ type PerfectionistSortExports = {
|
|
|
12478
12572
|
} | string)));
|
|
12479
12573
|
});
|
|
12480
12574
|
partitionByNewLine?: boolean;
|
|
12481
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12575
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12482
12576
|
groups?: (string | string[] | {
|
|
12483
|
-
newlinesBetween
|
|
12577
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12578
|
+
commentAbove?: string;
|
|
12484
12579
|
})[];
|
|
12485
12580
|
}[];
|
|
12486
12581
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -12499,7 +12594,8 @@ type PerfectionistSortHeritageClauses = [] | [{
|
|
|
12499
12594
|
[k: string]: (string | string[]) | undefined;
|
|
12500
12595
|
};
|
|
12501
12596
|
groups?: (string | string[] | {
|
|
12502
|
-
newlinesBetween
|
|
12597
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12598
|
+
commentAbove?: string;
|
|
12503
12599
|
})[];
|
|
12504
12600
|
}];
|
|
12505
12601
|
// ----- perfectionist/sort-imports -----
|
|
@@ -12522,7 +12618,7 @@ type PerfectionistSortImports = {
|
|
|
12522
12618
|
[k: string]: (string | string[]) | undefined;
|
|
12523
12619
|
};
|
|
12524
12620
|
} | ({
|
|
12525
|
-
newlinesInside?: ("always" | "never");
|
|
12621
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12526
12622
|
fallbackSort?: {
|
|
12527
12623
|
order?: ("asc" | "desc");
|
|
12528
12624
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12549,7 +12645,7 @@ type PerfectionistSortImports = {
|
|
|
12549
12645
|
} | string));
|
|
12550
12646
|
}[];
|
|
12551
12647
|
} | {
|
|
12552
|
-
newlinesInside?: ("always" | "never");
|
|
12648
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12553
12649
|
fallbackSort?: {
|
|
12554
12650
|
order?: ("asc" | "desc");
|
|
12555
12651
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12574,6 +12670,10 @@ type PerfectionistSortImports = {
|
|
|
12574
12670
|
flags?: string;
|
|
12575
12671
|
} | string));
|
|
12576
12672
|
})[]);
|
|
12673
|
+
tsconfig?: {
|
|
12674
|
+
rootDir: string;
|
|
12675
|
+
filename?: string;
|
|
12676
|
+
};
|
|
12577
12677
|
maxLineLength?: number;
|
|
12578
12678
|
sortSideEffects?: boolean;
|
|
12579
12679
|
environment?: ("node" | "bun");
|
|
@@ -12601,7 +12701,7 @@ type PerfectionistSortImports = {
|
|
|
12601
12701
|
} | string)));
|
|
12602
12702
|
});
|
|
12603
12703
|
partitionByNewLine?: boolean;
|
|
12604
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12704
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12605
12705
|
internalPattern?: (({
|
|
12606
12706
|
pattern: string;
|
|
12607
12707
|
flags?: string;
|
|
@@ -12610,7 +12710,8 @@ type PerfectionistSortImports = {
|
|
|
12610
12710
|
flags?: string;
|
|
12611
12711
|
} | string));
|
|
12612
12712
|
groups?: (string | string[] | {
|
|
12613
|
-
newlinesBetween
|
|
12713
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12714
|
+
commentAbove?: string;
|
|
12614
12715
|
})[];
|
|
12615
12716
|
}[];
|
|
12616
12717
|
// ----- perfectionist/sort-interfaces -----
|
|
@@ -12629,7 +12730,7 @@ type PerfectionistSortInterfaces = {
|
|
|
12629
12730
|
customGroups?: ({
|
|
12630
12731
|
[k: string]: (string | string[]) | undefined;
|
|
12631
12732
|
} | ({
|
|
12632
|
-
newlinesInside?: ("always" | "never");
|
|
12733
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12633
12734
|
fallbackSort?: {
|
|
12634
12735
|
order?: ("asc" | "desc");
|
|
12635
12736
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12658,7 +12759,7 @@ type PerfectionistSortInterfaces = {
|
|
|
12658
12759
|
sortBy?: ("name" | "value");
|
|
12659
12760
|
}[];
|
|
12660
12761
|
} | {
|
|
12661
|
-
newlinesInside?: ("always" | "never");
|
|
12762
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12662
12763
|
fallbackSort?: {
|
|
12663
12764
|
order?: ("asc" | "desc");
|
|
12664
12765
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12725,7 +12826,7 @@ type PerfectionistSortInterfaces = {
|
|
|
12725
12826
|
} | string)));
|
|
12726
12827
|
});
|
|
12727
12828
|
partitionByNewLine?: boolean;
|
|
12728
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12829
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12729
12830
|
ignorePattern?: (({
|
|
12730
12831
|
pattern: string;
|
|
12731
12832
|
flags?: string;
|
|
@@ -12735,7 +12836,8 @@ type PerfectionistSortInterfaces = {
|
|
|
12735
12836
|
} | string));
|
|
12736
12837
|
sortBy?: ("name" | "value");
|
|
12737
12838
|
groups?: (string | string[] | {
|
|
12738
|
-
newlinesBetween
|
|
12839
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12840
|
+
commentAbove?: string;
|
|
12739
12841
|
})[];
|
|
12740
12842
|
}[];
|
|
12741
12843
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -12751,7 +12853,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12751
12853
|
order?: ("asc" | "desc");
|
|
12752
12854
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12753
12855
|
customGroups?: ({
|
|
12754
|
-
newlinesInside?: ("always" | "never");
|
|
12856
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12755
12857
|
fallbackSort?: {
|
|
12756
12858
|
order?: ("asc" | "desc");
|
|
12757
12859
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12770,7 +12872,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12770
12872
|
} | string));
|
|
12771
12873
|
}[];
|
|
12772
12874
|
} | {
|
|
12773
|
-
newlinesInside?: ("always" | "never");
|
|
12875
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12774
12876
|
fallbackSort?: {
|
|
12775
12877
|
order?: ("asc" | "desc");
|
|
12776
12878
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12810,9 +12912,10 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12810
12912
|
} | string)));
|
|
12811
12913
|
});
|
|
12812
12914
|
partitionByNewLine?: boolean;
|
|
12813
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
12915
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12814
12916
|
groups?: (string | string[] | {
|
|
12815
|
-
newlinesBetween
|
|
12917
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12918
|
+
commentAbove?: string;
|
|
12816
12919
|
})[];
|
|
12817
12920
|
}[];
|
|
12818
12921
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -12830,7 +12933,7 @@ type PerfectionistSortJsxProps = {
|
|
|
12830
12933
|
customGroups?: ({
|
|
12831
12934
|
[k: string]: (string | string[]) | undefined;
|
|
12832
12935
|
} | ({
|
|
12833
|
-
newlinesInside?: ("always" | "never");
|
|
12936
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12834
12937
|
fallbackSort?: {
|
|
12835
12938
|
order?: ("asc" | "desc");
|
|
12836
12939
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12857,7 +12960,7 @@ type PerfectionistSortJsxProps = {
|
|
|
12857
12960
|
} | string));
|
|
12858
12961
|
}[];
|
|
12859
12962
|
} | {
|
|
12860
|
-
newlinesInside?: ("always" | "never");
|
|
12963
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12861
12964
|
fallbackSort?: {
|
|
12862
12965
|
order?: ("asc" | "desc");
|
|
12863
12966
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12899,7 +13002,7 @@ type PerfectionistSortJsxProps = {
|
|
|
12899
13002
|
} | string));
|
|
12900
13003
|
};
|
|
12901
13004
|
partitionByNewLine?: boolean;
|
|
12902
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13005
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12903
13006
|
ignorePattern?: (({
|
|
12904
13007
|
pattern: string;
|
|
12905
13008
|
flags?: string;
|
|
@@ -12908,7 +13011,8 @@ type PerfectionistSortJsxProps = {
|
|
|
12908
13011
|
flags?: string;
|
|
12909
13012
|
} | string));
|
|
12910
13013
|
groups?: (string | string[] | {
|
|
12911
|
-
newlinesBetween
|
|
13014
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13015
|
+
commentAbove?: string;
|
|
12912
13016
|
})[];
|
|
12913
13017
|
}[];
|
|
12914
13018
|
// ----- perfectionist/sort-maps -----
|
|
@@ -12924,7 +13028,7 @@ type PerfectionistSortMaps = {
|
|
|
12924
13028
|
order?: ("asc" | "desc");
|
|
12925
13029
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12926
13030
|
customGroups?: ({
|
|
12927
|
-
newlinesInside?: ("always" | "never");
|
|
13031
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12928
13032
|
fallbackSort?: {
|
|
12929
13033
|
order?: ("asc" | "desc");
|
|
12930
13034
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12942,7 +13046,7 @@ type PerfectionistSortMaps = {
|
|
|
12942
13046
|
} | string));
|
|
12943
13047
|
}[];
|
|
12944
13048
|
} | {
|
|
12945
|
-
newlinesInside?: ("always" | "never");
|
|
13049
|
+
newlinesInside?: (("always" | "never") | number);
|
|
12946
13050
|
fallbackSort?: {
|
|
12947
13051
|
order?: ("asc" | "desc");
|
|
12948
13052
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -12990,9 +13094,10 @@ type PerfectionistSortMaps = {
|
|
|
12990
13094
|
} | string)));
|
|
12991
13095
|
});
|
|
12992
13096
|
partitionByNewLine?: boolean;
|
|
12993
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13097
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12994
13098
|
groups?: (string | string[] | {
|
|
12995
|
-
newlinesBetween
|
|
13099
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13100
|
+
commentAbove?: string;
|
|
12996
13101
|
})[];
|
|
12997
13102
|
}[];
|
|
12998
13103
|
// ----- perfectionist/sort-modules -----
|
|
@@ -13008,7 +13113,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
13008
13113
|
order?: ("asc" | "desc");
|
|
13009
13114
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13010
13115
|
customGroups?: ({
|
|
13011
|
-
newlinesInside?: ("always" | "never");
|
|
13116
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13012
13117
|
fallbackSort?: {
|
|
13013
13118
|
order?: ("asc" | "desc");
|
|
13014
13119
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13035,7 +13140,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
13035
13140
|
} | string));
|
|
13036
13141
|
}[];
|
|
13037
13142
|
} | {
|
|
13038
|
-
newlinesInside?: ("always" | "never");
|
|
13143
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13039
13144
|
fallbackSort?: {
|
|
13040
13145
|
order?: ("asc" | "desc");
|
|
13041
13146
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13083,9 +13188,10 @@ type PerfectionistSortModules = [] | [{
|
|
|
13083
13188
|
} | string)));
|
|
13084
13189
|
});
|
|
13085
13190
|
partitionByNewLine?: boolean;
|
|
13086
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13191
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13087
13192
|
groups?: (string | string[] | {
|
|
13088
|
-
newlinesBetween
|
|
13193
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13194
|
+
commentAbove?: string;
|
|
13089
13195
|
})[];
|
|
13090
13196
|
}];
|
|
13091
13197
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -13103,7 +13209,7 @@ type PerfectionistSortNamedExports = {
|
|
|
13103
13209
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
13104
13210
|
ignoreAlias?: boolean;
|
|
13105
13211
|
customGroups?: ({
|
|
13106
|
-
newlinesInside?: ("always" | "never");
|
|
13212
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13107
13213
|
fallbackSort?: {
|
|
13108
13214
|
order?: ("asc" | "desc");
|
|
13109
13215
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13123,7 +13229,7 @@ type PerfectionistSortNamedExports = {
|
|
|
13123
13229
|
} | string));
|
|
13124
13230
|
}[];
|
|
13125
13231
|
} | {
|
|
13126
|
-
newlinesInside?: ("always" | "never");
|
|
13232
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13127
13233
|
fallbackSort?: {
|
|
13128
13234
|
order?: ("asc" | "desc");
|
|
13129
13235
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13164,9 +13270,10 @@ type PerfectionistSortNamedExports = {
|
|
|
13164
13270
|
} | string)));
|
|
13165
13271
|
});
|
|
13166
13272
|
partitionByNewLine?: boolean;
|
|
13167
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13273
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13168
13274
|
groups?: (string | string[] | {
|
|
13169
|
-
newlinesBetween
|
|
13275
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13276
|
+
commentAbove?: string;
|
|
13170
13277
|
})[];
|
|
13171
13278
|
}[];
|
|
13172
13279
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -13184,7 +13291,7 @@ type PerfectionistSortNamedImports = {
|
|
|
13184
13291
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
13185
13292
|
ignoreAlias?: boolean;
|
|
13186
13293
|
customGroups?: ({
|
|
13187
|
-
newlinesInside?: ("always" | "never");
|
|
13294
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13188
13295
|
fallbackSort?: {
|
|
13189
13296
|
order?: ("asc" | "desc");
|
|
13190
13297
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13204,7 +13311,7 @@ type PerfectionistSortNamedImports = {
|
|
|
13204
13311
|
} | string));
|
|
13205
13312
|
}[];
|
|
13206
13313
|
} | {
|
|
13207
|
-
newlinesInside?: ("always" | "never");
|
|
13314
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13208
13315
|
fallbackSort?: {
|
|
13209
13316
|
order?: ("asc" | "desc");
|
|
13210
13317
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13245,9 +13352,10 @@ type PerfectionistSortNamedImports = {
|
|
|
13245
13352
|
} | string)));
|
|
13246
13353
|
});
|
|
13247
13354
|
partitionByNewLine?: boolean;
|
|
13248
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13355
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13249
13356
|
groups?: (string | string[] | {
|
|
13250
|
-
newlinesBetween
|
|
13357
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13358
|
+
commentAbove?: string;
|
|
13251
13359
|
})[];
|
|
13252
13360
|
}[];
|
|
13253
13361
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -13266,7 +13374,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13266
13374
|
customGroups?: ({
|
|
13267
13375
|
[k: string]: (string | string[]) | undefined;
|
|
13268
13376
|
} | ({
|
|
13269
|
-
newlinesInside?: ("always" | "never");
|
|
13377
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13270
13378
|
fallbackSort?: {
|
|
13271
13379
|
order?: ("asc" | "desc");
|
|
13272
13380
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13295,7 +13403,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13295
13403
|
sortBy?: ("name" | "value");
|
|
13296
13404
|
}[];
|
|
13297
13405
|
} | {
|
|
13298
|
-
newlinesInside?: ("always" | "never");
|
|
13406
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13299
13407
|
fallbackSort?: {
|
|
13300
13408
|
order?: ("asc" | "desc");
|
|
13301
13409
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13362,7 +13470,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13362
13470
|
} | string)));
|
|
13363
13471
|
});
|
|
13364
13472
|
partitionByNewLine?: boolean;
|
|
13365
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13473
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13366
13474
|
ignorePattern?: (({
|
|
13367
13475
|
pattern: string;
|
|
13368
13476
|
flags?: string;
|
|
@@ -13372,7 +13480,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
13372
13480
|
} | string));
|
|
13373
13481
|
sortBy?: ("name" | "value");
|
|
13374
13482
|
groups?: (string | string[] | {
|
|
13375
|
-
newlinesBetween
|
|
13483
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13484
|
+
commentAbove?: string;
|
|
13376
13485
|
})[];
|
|
13377
13486
|
}[];
|
|
13378
13487
|
// ----- perfectionist/sort-objects -----
|
|
@@ -13393,7 +13502,7 @@ type PerfectionistSortObjects = {
|
|
|
13393
13502
|
customGroups?: ({
|
|
13394
13503
|
[k: string]: (string | string[]) | undefined;
|
|
13395
13504
|
} | ({
|
|
13396
|
-
newlinesInside?: ("always" | "never");
|
|
13505
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13397
13506
|
fallbackSort?: {
|
|
13398
13507
|
order?: ("asc" | "desc");
|
|
13399
13508
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13420,7 +13529,7 @@ type PerfectionistSortObjects = {
|
|
|
13420
13529
|
} | string));
|
|
13421
13530
|
}[];
|
|
13422
13531
|
} | {
|
|
13423
|
-
newlinesInside?: ("always" | "never");
|
|
13532
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13424
13533
|
fallbackSort?: {
|
|
13425
13534
|
order?: ("asc" | "desc");
|
|
13426
13535
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13487,7 +13596,7 @@ type PerfectionistSortObjects = {
|
|
|
13487
13596
|
} | string)));
|
|
13488
13597
|
});
|
|
13489
13598
|
partitionByNewLine?: boolean;
|
|
13490
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13599
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13491
13600
|
ignorePattern?: (({
|
|
13492
13601
|
pattern: string;
|
|
13493
13602
|
flags?: string;
|
|
@@ -13496,7 +13605,8 @@ type PerfectionistSortObjects = {
|
|
|
13496
13605
|
flags?: string;
|
|
13497
13606
|
} | string));
|
|
13498
13607
|
groups?: (string | string[] | {
|
|
13499
|
-
newlinesBetween
|
|
13608
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13609
|
+
commentAbove?: string;
|
|
13500
13610
|
})[];
|
|
13501
13611
|
}[];
|
|
13502
13612
|
// ----- perfectionist/sort-sets -----
|
|
@@ -13513,7 +13623,7 @@ type PerfectionistSortSets = {
|
|
|
13513
13623
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13514
13624
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
13515
13625
|
customGroups?: ({
|
|
13516
|
-
newlinesInside?: ("always" | "never");
|
|
13626
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13517
13627
|
fallbackSort?: {
|
|
13518
13628
|
order?: ("asc" | "desc");
|
|
13519
13629
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13532,7 +13642,7 @@ type PerfectionistSortSets = {
|
|
|
13532
13642
|
} | string));
|
|
13533
13643
|
}[];
|
|
13534
13644
|
} | {
|
|
13535
|
-
newlinesInside?: ("always" | "never");
|
|
13645
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13536
13646
|
fallbackSort?: {
|
|
13537
13647
|
order?: ("asc" | "desc");
|
|
13538
13648
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13581,9 +13691,10 @@ type PerfectionistSortSets = {
|
|
|
13581
13691
|
} | string)));
|
|
13582
13692
|
});
|
|
13583
13693
|
partitionByNewLine?: boolean;
|
|
13584
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13694
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13585
13695
|
groups?: (string | string[] | {
|
|
13586
|
-
newlinesBetween
|
|
13696
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13697
|
+
commentAbove?: string;
|
|
13587
13698
|
})[];
|
|
13588
13699
|
}[];
|
|
13589
13700
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -13612,7 +13723,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
13612
13723
|
order?: ("asc" | "desc");
|
|
13613
13724
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13614
13725
|
customGroups?: ({
|
|
13615
|
-
newlinesInside?: ("always" | "never");
|
|
13726
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13616
13727
|
fallbackSort?: {
|
|
13617
13728
|
order?: ("asc" | "desc");
|
|
13618
13729
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13631,7 +13742,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
13631
13742
|
} | string));
|
|
13632
13743
|
}[];
|
|
13633
13744
|
} | {
|
|
13634
|
-
newlinesInside?: ("always" | "never");
|
|
13745
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13635
13746
|
fallbackSort?: {
|
|
13636
13747
|
order?: ("asc" | "desc");
|
|
13637
13748
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13671,9 +13782,10 @@ type PerfectionistSortUnionTypes = {
|
|
|
13671
13782
|
} | string)));
|
|
13672
13783
|
});
|
|
13673
13784
|
partitionByNewLine?: boolean;
|
|
13674
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13785
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13675
13786
|
groups?: (string | string[] | {
|
|
13676
|
-
newlinesBetween
|
|
13787
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13788
|
+
commentAbove?: string;
|
|
13677
13789
|
})[];
|
|
13678
13790
|
}[];
|
|
13679
13791
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -13689,7 +13801,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13689
13801
|
order?: ("asc" | "desc");
|
|
13690
13802
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13691
13803
|
customGroups?: ({
|
|
13692
|
-
newlinesInside?: ("always" | "never");
|
|
13804
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13693
13805
|
fallbackSort?: {
|
|
13694
13806
|
order?: ("asc" | "desc");
|
|
13695
13807
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13708,7 +13820,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13708
13820
|
} | string));
|
|
13709
13821
|
}[];
|
|
13710
13822
|
} | {
|
|
13711
|
-
newlinesInside?: ("always" | "never");
|
|
13823
|
+
newlinesInside?: (("always" | "never") | number);
|
|
13712
13824
|
fallbackSort?: {
|
|
13713
13825
|
order?: ("asc" | "desc");
|
|
13714
13826
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
@@ -13748,9 +13860,10 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13748
13860
|
} | string)));
|
|
13749
13861
|
});
|
|
13750
13862
|
partitionByNewLine?: boolean;
|
|
13751
|
-
newlinesBetween?: ("ignore" | "always" | "never");
|
|
13863
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13752
13864
|
groups?: (string | string[] | {
|
|
13753
|
-
newlinesBetween
|
|
13865
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13866
|
+
commentAbove?: string;
|
|
13754
13867
|
})[];
|
|
13755
13868
|
}];
|
|
13756
13869
|
// ----- pinia/prefer-use-store-naming-convention -----
|
|
@@ -13952,6 +14065,10 @@ type RegexpPreferLookaround = [] | [{
|
|
|
13952
14065
|
type RegexpPreferNamedReplacement = [] | [{
|
|
13953
14066
|
strictTypes?: boolean;
|
|
13954
14067
|
}];
|
|
14068
|
+
// ----- regexp/prefer-quantifier -----
|
|
14069
|
+
type RegexpPreferQuantifier = [] | [{
|
|
14070
|
+
allows?: string[];
|
|
14071
|
+
}];
|
|
13955
14072
|
// ----- regexp/prefer-range -----
|
|
13956
14073
|
type RegexpPreferRange = [] | [{
|
|
13957
14074
|
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
@@ -14227,6 +14344,7 @@ type SveltePreferConst = [] | [{
|
|
|
14227
14344
|
destructuring?: ("any" | "all");
|
|
14228
14345
|
ignoreReadBeforeAssign?: boolean;
|
|
14229
14346
|
excludedRunes?: string[];
|
|
14347
|
+
[k: string]: unknown | undefined;
|
|
14230
14348
|
}];
|
|
14231
14349
|
// ----- svelte/require-event-prefix -----
|
|
14232
14350
|
type SvelteRequireEventPrefix = [] | [{
|
|
@@ -15135,6 +15253,10 @@ type VitestConsistentTestIt = [] | [{
|
|
|
15135
15253
|
fn?: ("test" | "it");
|
|
15136
15254
|
withinDescribe?: ("test" | "it");
|
|
15137
15255
|
}];
|
|
15256
|
+
// ----- vitest/consistent-vitest-vi -----
|
|
15257
|
+
type VitestConsistentVitestVi = [] | [{
|
|
15258
|
+
fn?: ("vi" | "vitest");
|
|
15259
|
+
}];
|
|
15138
15260
|
// ----- vitest/expect-expect -----
|
|
15139
15261
|
type VitestExpectExpect = [] | [{
|
|
15140
15262
|
assertFunctionNames?: string[];
|
|
@@ -16096,7 +16218,7 @@ type VueNoRestrictedCustomEvent = (string | {
|
|
|
16096
16218
|
})[];
|
|
16097
16219
|
// ----- vue/no-restricted-html-elements -----
|
|
16098
16220
|
type VueNoRestrictedHtmlElements = (string | {
|
|
16099
|
-
element: string;
|
|
16221
|
+
element: (string | string[]);
|
|
16100
16222
|
message?: string;
|
|
16101
16223
|
})[];
|
|
16102
16224
|
// ----- 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.7",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -88,34 +88,34 @@
|
|
|
88
88
|
"@antfu/install-pkg": "^1.1.0",
|
|
89
89
|
"@clack/prompts": "^0.11.0",
|
|
90
90
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
91
|
-
"@eslint/js": "^9.
|
|
92
|
-
"@eslint/markdown": "^6.
|
|
93
|
-
"@unocss/eslint-plugin": "^66.
|
|
94
|
-
"@vitest/eslint-plugin": "^1.2.
|
|
91
|
+
"@eslint/js": "^9.29.0",
|
|
92
|
+
"@eslint/markdown": "^6.5.0",
|
|
93
|
+
"@unocss/eslint-plugin": "^66.2.3",
|
|
94
|
+
"@vitest/eslint-plugin": "^1.2.7",
|
|
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": "^
|
|
105
|
+
"eslint-plugin-import-x": "^4.15.2",
|
|
106
|
+
"eslint-plugin-jsdoc": "^51.0.3",
|
|
107
107
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
108
|
-
"eslint-plugin-n": "^17.
|
|
108
|
+
"eslint-plugin-n": "^17.20.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.15.0",
|
|
112
112
|
"eslint-plugin-pinia": "^0.4.1",
|
|
113
|
-
"eslint-plugin-prettier": "^5.
|
|
114
|
-
"eslint-plugin-regexp": "^2.
|
|
113
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
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,15 +123,16 @@
|
|
|
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.
|
|
126
|
+
"typescript-eslint": "^8.34.1",
|
|
127
127
|
"vue-eslint-parser": "^10.1.3",
|
|
128
128
|
"yaml-eslint-parser": "^1.3.0"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@ntnyq/prettier-config": "^
|
|
132
|
-
"@types/node": "^
|
|
133
|
-
"bumpp": "^10.
|
|
134
|
-
"
|
|
131
|
+
"@ntnyq/prettier-config": "^3.0.1",
|
|
132
|
+
"@types/node": "^24.0.3",
|
|
133
|
+
"bumpp": "^10.2.0",
|
|
134
|
+
"consola": "^3.4.2",
|
|
135
|
+
"eslint": "^9.29.0",
|
|
135
136
|
"eslint-plugin-eslint-plugin": "^6.4.0",
|
|
136
137
|
"eslint-typegen": "^2.2.0",
|
|
137
138
|
"husky": "^9.1.7",
|
|
@@ -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.8",
|
|
144
144
|
"typescript": "^5.8.3",
|
|
145
145
|
"uncase": "^0.1.0",
|
|
146
|
-
"vitest": "^3.
|
|
146
|
+
"vitest": "^3.2.4"
|
|
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",
|