@vinicunca/eslint-config 2.15.2 → 2.15.4

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 CHANGED
@@ -661,233 +661,233 @@ interface RuleOptions {
661
661
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
662
662
  /**
663
663
  * Enforce or ban the use of inline type-only markers for named imports.
664
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md
664
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
665
665
  */
666
666
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
667
667
  /**
668
668
  * Ensure a default export is present, given a default import.
669
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/default.md
669
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
670
670
  */
671
671
  'import/default'?: Linter.RuleEntry<[]>
672
672
  /**
673
673
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
674
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/dynamic-import-chunkname.md
674
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
675
675
  */
676
676
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
677
677
  /**
678
678
  * Forbid any invalid exports, i.e. re-export of the same name.
679
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/export.md
679
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
680
680
  */
681
681
  'import/export'?: Linter.RuleEntry<[]>
682
682
  /**
683
683
  * Ensure all exports appear after other statements.
684
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/exports-last.md
684
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
685
685
  */
686
686
  'import/exports-last'?: Linter.RuleEntry<[]>
687
687
  /**
688
688
  * Ensure consistent use of file extension within the import path.
689
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/extensions.md
689
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
690
690
  */
691
691
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
692
692
  /**
693
693
  * Ensure all imports appear before other statements.
694
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/first.md
694
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
695
695
  */
696
696
  'import/first'?: Linter.RuleEntry<ImportFirst>
697
697
  /**
698
698
  * Prefer named exports to be grouped together in a single export declaration.
699
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/group-exports.md
699
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
700
700
  */
701
701
  'import/group-exports'?: Linter.RuleEntry<[]>
702
702
  /**
703
703
  * Replaced by `import-x/first`.
704
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/imports-first.md
704
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
705
705
  * @deprecated
706
706
  */
707
707
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
708
708
  /**
709
709
  * Enforce the maximum number of dependencies a module can have.
710
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/max-dependencies.md
710
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
711
711
  */
712
712
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
713
713
  /**
714
714
  * Ensure named imports correspond to a named export in the remote file.
715
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/named.md
715
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
716
716
  */
717
717
  'import/named'?: Linter.RuleEntry<ImportNamed>
718
718
  /**
719
719
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
720
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/namespace.md
720
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
721
721
  */
722
722
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
723
723
  /**
724
724
  * Enforce a newline after import statements.
725
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/newline-after-import.md
725
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
726
726
  */
727
727
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
728
728
  /**
729
729
  * Forbid import of modules using absolute paths.
730
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-absolute-path.md
730
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
731
731
  */
732
732
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
733
733
  /**
734
734
  * Forbid AMD `require` and `define` calls.
735
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-amd.md
735
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
736
736
  */
737
737
  'import/no-amd'?: Linter.RuleEntry<[]>
738
738
  /**
739
739
  * Forbid anonymous values as default exports.
740
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-anonymous-default-export.md
740
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
741
741
  */
742
742
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
743
743
  /**
744
744
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
745
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-commonjs.md
745
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
746
746
  */
747
747
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
748
748
  /**
749
749
  * Forbid a module from importing a module with a dependency path back to itself.
750
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-cycle.md
750
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
751
751
  */
752
752
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
753
753
  /**
754
754
  * Forbid default exports.
755
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-default-export.md
755
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
756
756
  */
757
757
  'import/no-default-export'?: Linter.RuleEntry<[]>
758
758
  /**
759
759
  * Forbid imported names marked with `@deprecated` documentation tag.
760
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-deprecated.md
760
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
761
761
  */
762
762
  'import/no-deprecated'?: Linter.RuleEntry<[]>
763
763
  /**
764
764
  * Forbid repeated import of the same module in multiple places.
765
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-duplicates.md
765
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
766
766
  */
767
767
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
768
768
  /**
769
769
  * Forbid `require()` calls with expressions.
770
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-dynamic-require.md
770
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
771
771
  */
772
772
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
773
773
  /**
774
774
  * Forbid empty named import blocks.
775
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-empty-named-blocks.md
775
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
776
776
  */
777
777
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
778
778
  /**
779
779
  * Forbid the use of extraneous packages.
780
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-extraneous-dependencies.md
780
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
781
781
  */
782
782
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
783
783
  /**
784
784
  * Forbid import statements with CommonJS module.exports.
785
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-import-module-exports.md
785
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
786
786
  */
787
787
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
788
788
  /**
789
789
  * Forbid importing the submodules of other modules.
790
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-internal-modules.md
790
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
791
791
  */
792
792
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
793
793
  /**
794
794
  * Forbid the use of mutable exports with `var` or `let`.
795
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-mutable-exports.md
795
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
796
796
  */
797
797
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
798
798
  /**
799
799
  * Forbid use of exported name as identifier of default export.
800
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default.md
800
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
801
801
  */
802
802
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
803
803
  /**
804
804
  * Forbid use of exported name as property of default export.
805
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default-member.md
805
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
806
806
  */
807
807
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
808
808
  /**
809
809
  * Forbid named default exports.
810
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-default.md
810
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
811
811
  */
812
812
  'import/no-named-default'?: Linter.RuleEntry<[]>
813
813
  /**
814
814
  * Forbid named exports.
815
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-export.md
815
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
816
816
  */
817
817
  'import/no-named-export'?: Linter.RuleEntry<[]>
818
818
  /**
819
819
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
820
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-namespace.md
820
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
821
821
  */
822
822
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
823
823
  /**
824
824
  * Forbid Node.js builtin modules.
825
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-nodejs-modules.md
825
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
826
826
  */
827
827
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
828
828
  /**
829
829
  * Forbid importing packages through relative paths.
830
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-packages.md
830
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
831
831
  */
832
832
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
833
833
  /**
834
834
  * Forbid importing modules from parent directories.
835
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-parent-imports.md
835
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
836
836
  */
837
837
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
838
838
  /**
839
839
  * Forbid importing a default export by a different name.
840
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-rename-default.md
840
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
841
841
  */
842
842
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
843
843
  /**
844
844
  * Enforce which files can be imported in a given folder.
845
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-restricted-paths.md
845
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
846
846
  */
847
847
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
848
848
  /**
849
849
  * Forbid a module from importing itself.
850
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-self-import.md
850
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
851
851
  */
852
852
  'import/no-self-import'?: Linter.RuleEntry<[]>
853
853
  /**
854
854
  * Forbid unassigned imports.
855
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unassigned-import.md
855
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
856
856
  */
857
857
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
858
858
  /**
859
859
  * Ensure imports point to a file/module that can be resolved.
860
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unresolved.md
860
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
861
861
  */
862
862
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
863
863
  /**
864
864
  * Forbid modules without exports, or exports without matching import in another module.
865
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unused-modules.md
865
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
866
866
  */
867
867
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
868
868
  /**
869
869
  * Forbid unnecessary path segments in import and require statements.
870
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-useless-path-segments.md
870
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
871
871
  */
872
872
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
873
873
  /**
874
874
  * Forbid webpack loader syntax in imports.
875
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-webpack-loader-syntax.md
875
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
876
876
  */
877
877
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
878
878
  /**
879
879
  * Enforce a convention in module import order.
880
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/order.md
880
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
881
881
  */
882
882
  'import/order'?: Linter.RuleEntry<ImportOrder>
883
883
  /**
884
884
  * Prefer a default export if module exports a single name or multiple names.
885
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/prefer-default-export.md
885
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
886
886
  */
887
887
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
888
888
  /**
889
889
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
890
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/unambiguous.md
890
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
891
891
  */
892
892
  'import/unambiguous'?: Linter.RuleEntry<[]>
893
893
  /**
@@ -6280,7 +6280,7 @@ interface RuleOptions {
6280
6280
  */
6281
6281
  'test/prefer-todo'?: Linter.RuleEntry<[]>
6282
6282
  /**
6283
- * Prefer `vi.mocked()` over `fn as Mock`
6283
+ * require `vi.mocked()` over `fn as Mock`
6284
6284
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
6285
6285
  */
6286
6286
  'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>
@@ -6315,7 +6315,7 @@ interface RuleOptions {
6315
6315
  */
6316
6316
  'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
6317
6317
  /**
6318
- * Require promises that have expectations in their chain to be valid
6318
+ * require promises that have expectations in their chain to be valid
6319
6319
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect-in-promise.md
6320
6320
  */
6321
6321
  'test/valid-expect-in-promise'?: Linter.RuleEntry<[]>
@@ -11826,12 +11826,43 @@ type PaddingLineBetweenStatements = {
11826
11826
  next: _PaddingLineBetweenStatementsStatementType
11827
11827
  }[]
11828
11828
  // ----- perfectionist/sort-array-includes -----
11829
- type PerfectionistSortArrayIncludes = []|[{
11829
+ type PerfectionistSortArrayIncludes = {
11830
11830
 
11831
11831
  partitionByComment?: (string[] | boolean | string)
11832
11832
 
11833
11833
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
11834
11834
 
11835
+ customGroups?: ({
11836
+
11837
+ groupName?: string
11838
+
11839
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11840
+
11841
+ order?: ("desc" | "asc")
11842
+ anyOf?: {
11843
+
11844
+ selector?: ("literal" | "spread")
11845
+
11846
+ elementNamePattern?: string
11847
+ }[]
11848
+ } | {
11849
+
11850
+ groupName?: string
11851
+
11852
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
11853
+
11854
+ order?: ("desc" | "asc")
11855
+
11856
+ selector?: ("literal" | "spread")
11857
+
11858
+ elementNamePattern?: string
11859
+ })[]
11860
+ useConfigurationIf?: {
11861
+ allNamesMatchPattern?: string
11862
+ }
11863
+
11864
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11865
+
11835
11866
  partitionByNewLine?: boolean
11836
11867
 
11837
11868
  specialCharacters?: ("remove" | "trim" | "keep")
@@ -11842,10 +11873,10 @@ type PerfectionistSortArrayIncludes = []|[{
11842
11873
 
11843
11874
  locales?: (string | string[])
11844
11875
 
11845
- order?: ("asc" | "desc")
11876
+ groups?: (string | string[])[]
11846
11877
 
11847
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11848
- }]
11878
+ order?: ("asc" | "desc")
11879
+ }[]
11849
11880
  // ----- perfectionist/sort-classes -----
11850
11881
  type PerfectionistSortClasses = []|[{
11851
11882
 
@@ -11901,13 +11932,13 @@ type PerfectionistSortClasses = []|[{
11901
11932
 
11902
11933
  alphabet?: string
11903
11934
 
11935
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
11936
+
11904
11937
  locales?: (string | string[])
11905
11938
 
11906
11939
  groups?: (string | string[])[]
11907
11940
 
11908
11941
  order?: ("asc" | "desc")
11909
-
11910
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11911
11942
  }]
11912
11943
  // ----- perfectionist/sort-decorators -----
11913
11944
  type PerfectionistSortDecorators = []|[{
@@ -11934,13 +11965,13 @@ type PerfectionistSortDecorators = []|[{
11934
11965
 
11935
11966
  alphabet?: string
11936
11967
 
11968
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
11969
+
11937
11970
  locales?: (string | string[])
11938
11971
 
11939
11972
  groups?: (string | string[])[]
11940
11973
 
11941
11974
  order?: ("asc" | "desc")
11942
-
11943
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11944
11975
  }]
11945
11976
  // ----- perfectionist/sort-enums -----
11946
11977
  type PerfectionistSortEnums = []|[{
@@ -11959,11 +11990,11 @@ type PerfectionistSortEnums = []|[{
11959
11990
 
11960
11991
  alphabet?: string
11961
11992
 
11993
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
11994
+
11962
11995
  locales?: (string | string[])
11963
11996
 
11964
11997
  order?: ("asc" | "desc")
11965
-
11966
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11967
11998
  }]
11968
11999
  // ----- perfectionist/sort-exports -----
11969
12000
  type PerfectionistSortExports = []|[{
@@ -11980,11 +12011,11 @@ type PerfectionistSortExports = []|[{
11980
12011
 
11981
12012
  alphabet?: string
11982
12013
 
12014
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12015
+
11983
12016
  locales?: (string | string[])
11984
12017
 
11985
12018
  order?: ("asc" | "desc")
11986
-
11987
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11988
12019
  }]
11989
12020
  // ----- perfectionist/sort-heritage-clauses -----
11990
12021
  type PerfectionistSortHeritageClauses = []|[{
@@ -11999,13 +12030,13 @@ type PerfectionistSortHeritageClauses = []|[{
11999
12030
 
12000
12031
  alphabet?: string
12001
12032
 
12033
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12034
+
12002
12035
  locales?: (string | string[])
12003
12036
 
12004
12037
  groups?: (string | string[])[]
12005
12038
 
12006
12039
  order?: ("asc" | "desc")
12007
-
12008
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12009
12040
  }]
12010
12041
  // ----- perfectionist/sort-imports -----
12011
12042
  type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
@@ -12044,13 +12075,13 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
12044
12075
 
12045
12076
  alphabet?: string
12046
12077
 
12078
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12079
+
12047
12080
  locales?: (string | string[])
12048
12081
 
12049
12082
  groups?: (string | string[])[]
12050
12083
 
12051
12084
  order?: ("asc" | "desc")
12052
-
12053
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12054
12085
  })
12055
12086
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
12056
12087
  [k: string]: unknown | undefined
@@ -12060,9 +12091,13 @@ interface _PerfectionistSortImports_IsLineLength {
12060
12091
  [k: string]: unknown | undefined
12061
12092
  }
12062
12093
  // ----- perfectionist/sort-interfaces -----
12063
- type PerfectionistSortInterfaces = []|[{
12094
+ type PerfectionistSortInterfaces = {
12064
12095
 
12065
12096
  ignorePattern?: string[]
12097
+ useConfigurationIf?: {
12098
+ allNamesMatchPattern?: string
12099
+ declarationMatchesPattern?: string
12100
+ }
12066
12101
 
12067
12102
  partitionByComment?: (string[] | boolean | string)
12068
12103
  customGroups?: ({
@@ -12099,6 +12134,8 @@ type PerfectionistSortInterfaces = []|[{
12099
12134
 
12100
12135
  groupKind?: ("mixed" | "required-first" | "optional-first")
12101
12136
 
12137
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12138
+
12102
12139
  partitionByNewLine?: boolean
12103
12140
 
12104
12141
  specialCharacters?: ("remove" | "trim" | "keep")
@@ -12114,9 +12151,7 @@ type PerfectionistSortInterfaces = []|[{
12114
12151
  groups?: (string | string[])[]
12115
12152
 
12116
12153
  order?: ("asc" | "desc")
12117
-
12118
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12119
- }]
12154
+ }[]
12120
12155
  // ----- perfectionist/sort-intersection-types -----
12121
12156
  type PerfectionistSortIntersectionTypes = []|[{
12122
12157
 
@@ -12132,13 +12167,13 @@ type PerfectionistSortIntersectionTypes = []|[{
12132
12167
 
12133
12168
  alphabet?: string
12134
12169
 
12170
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12171
+
12135
12172
  locales?: (string | string[])
12136
12173
 
12137
12174
  groups?: (string | string[])[]
12138
12175
 
12139
12176
  order?: ("asc" | "desc")
12140
-
12141
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12142
12177
  }]
12143
12178
  // ----- perfectionist/sort-jsx-props -----
12144
12179
  type PerfectionistSortJsxProps = []|[{
@@ -12155,13 +12190,13 @@ type PerfectionistSortJsxProps = []|[{
12155
12190
 
12156
12191
  alphabet?: string
12157
12192
 
12193
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12194
+
12158
12195
  locales?: (string | string[])
12159
12196
 
12160
12197
  groups?: (string | string[])[]
12161
12198
 
12162
12199
  order?: ("asc" | "desc")
12163
-
12164
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12165
12200
  }]
12166
12201
  // ----- perfectionist/sort-maps -----
12167
12202
  type PerfectionistSortMaps = []|[{
@@ -12176,11 +12211,11 @@ type PerfectionistSortMaps = []|[{
12176
12211
 
12177
12212
  alphabet?: string
12178
12213
 
12214
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12215
+
12179
12216
  locales?: (string | string[])
12180
12217
 
12181
12218
  order?: ("asc" | "desc")
12182
-
12183
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12184
12219
  }]
12185
12220
  // ----- perfectionist/sort-modules -----
12186
12221
  type PerfectionistSortModules = []|[{
@@ -12231,13 +12266,13 @@ type PerfectionistSortModules = []|[{
12231
12266
 
12232
12267
  alphabet?: string
12233
12268
 
12269
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12270
+
12234
12271
  locales?: (string | string[])
12235
12272
 
12236
12273
  groups?: (string | string[])[]
12237
12274
 
12238
12275
  order?: ("asc" | "desc")
12239
-
12240
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12241
12276
  }]
12242
12277
  // ----- perfectionist/sort-named-exports -----
12243
12278
  type PerfectionistSortNamedExports = []|[{
@@ -12254,11 +12289,11 @@ type PerfectionistSortNamedExports = []|[{
12254
12289
 
12255
12290
  alphabet?: string
12256
12291
 
12292
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12293
+
12257
12294
  locales?: (string | string[])
12258
12295
 
12259
12296
  order?: ("asc" | "desc")
12260
-
12261
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12262
12297
  }]
12263
12298
  // ----- perfectionist/sort-named-imports -----
12264
12299
  type PerfectionistSortNamedImports = []|[{
@@ -12277,16 +12312,20 @@ type PerfectionistSortNamedImports = []|[{
12277
12312
 
12278
12313
  alphabet?: string
12279
12314
 
12315
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12316
+
12280
12317
  locales?: (string | string[])
12281
12318
 
12282
12319
  order?: ("asc" | "desc")
12283
-
12284
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12285
12320
  }]
12286
12321
  // ----- perfectionist/sort-object-types -----
12287
- type PerfectionistSortObjectTypes = []|[{
12322
+ type PerfectionistSortObjectTypes = {
12288
12323
 
12289
12324
  ignorePattern?: string[]
12325
+ useConfigurationIf?: {
12326
+ allNamesMatchPattern?: string
12327
+ declarationMatchesPattern?: string
12328
+ }
12290
12329
 
12291
12330
  partitionByComment?: (string[] | boolean | string)
12292
12331
  customGroups?: ({
@@ -12323,6 +12362,8 @@ type PerfectionistSortObjectTypes = []|[{
12323
12362
 
12324
12363
  groupKind?: ("mixed" | "required-first" | "optional-first")
12325
12364
 
12365
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12366
+
12326
12367
  partitionByNewLine?: boolean
12327
12368
 
12328
12369
  specialCharacters?: ("remove" | "trim" | "keep")
@@ -12338,9 +12379,7 @@ type PerfectionistSortObjectTypes = []|[{
12338
12379
  groups?: (string | string[])[]
12339
12380
 
12340
12381
  order?: ("asc" | "desc")
12341
-
12342
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12343
- }]
12382
+ }[]
12344
12383
  // ----- perfectionist/sort-objects -----
12345
12384
  type PerfectionistSortObjects = {
12346
12385
 
@@ -12350,6 +12389,10 @@ type PerfectionistSortObjects = {
12350
12389
  })
12351
12390
 
12352
12391
  ignorePattern?: string[]
12392
+ useConfigurationIf?: {
12393
+ allNamesMatchPattern?: string
12394
+ callingFunctionNamePattern?: string
12395
+ }
12353
12396
 
12354
12397
  partitionByComment?: (string[] | boolean | string)
12355
12398
 
@@ -12359,10 +12402,9 @@ type PerfectionistSortObjects = {
12359
12402
 
12360
12403
  styledComponents?: boolean
12361
12404
 
12405
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12406
+
12362
12407
  partitionByNewLine?: boolean
12363
- useConfigurationIf?: {
12364
- allNamesMatchPattern?: string
12365
- }
12366
12408
 
12367
12409
  specialCharacters?: ("remove" | "trim" | "keep")
12368
12410
 
@@ -12381,16 +12423,45 @@ type PerfectionistSortObjects = {
12381
12423
  groups?: (string | string[])[]
12382
12424
 
12383
12425
  order?: ("asc" | "desc")
12384
-
12385
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12386
12426
  }[]
12387
12427
  // ----- perfectionist/sort-sets -----
12388
- type PerfectionistSortSets = []|[{
12428
+ type PerfectionistSortSets = {
12389
12429
 
12390
12430
  partitionByComment?: (string[] | boolean | string)
12391
12431
 
12392
12432
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
12393
12433
 
12434
+ customGroups?: ({
12435
+
12436
+ groupName?: string
12437
+
12438
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12439
+
12440
+ order?: ("desc" | "asc")
12441
+ anyOf?: {
12442
+
12443
+ selector?: ("literal" | "spread")
12444
+
12445
+ elementNamePattern?: string
12446
+ }[]
12447
+ } | {
12448
+
12449
+ groupName?: string
12450
+
12451
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12452
+
12453
+ order?: ("desc" | "asc")
12454
+
12455
+ selector?: ("literal" | "spread")
12456
+
12457
+ elementNamePattern?: string
12458
+ })[]
12459
+ useConfigurationIf?: {
12460
+ allNamesMatchPattern?: string
12461
+ }
12462
+
12463
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12464
+
12394
12465
  partitionByNewLine?: boolean
12395
12466
 
12396
12467
  specialCharacters?: ("remove" | "trim" | "keep")
@@ -12401,10 +12472,10 @@ type PerfectionistSortSets = []|[{
12401
12472
 
12402
12473
  locales?: (string | string[])
12403
12474
 
12404
- order?: ("asc" | "desc")
12475
+ groups?: (string | string[])[]
12405
12476
 
12406
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12407
- }]
12477
+ order?: ("asc" | "desc")
12478
+ }[]
12408
12479
  // ----- perfectionist/sort-switch-case -----
12409
12480
  type PerfectionistSortSwitchCase = []|[{
12410
12481
 
@@ -12414,11 +12485,11 @@ type PerfectionistSortSwitchCase = []|[{
12414
12485
 
12415
12486
  alphabet?: string
12416
12487
 
12488
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12489
+
12417
12490
  locales?: (string | string[])
12418
12491
 
12419
12492
  order?: ("asc" | "desc")
12420
-
12421
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12422
12493
  }]
12423
12494
  // ----- perfectionist/sort-union-types -----
12424
12495
  type PerfectionistSortUnionTypes = []|[{
@@ -12435,13 +12506,13 @@ type PerfectionistSortUnionTypes = []|[{
12435
12506
 
12436
12507
  alphabet?: string
12437
12508
 
12509
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12510
+
12438
12511
  locales?: (string | string[])
12439
12512
 
12440
12513
  groups?: (string | string[])[]
12441
12514
 
12442
12515
  order?: ("asc" | "desc")
12443
-
12444
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12445
12516
  }]
12446
12517
  // ----- perfectionist/sort-variable-declarations -----
12447
12518
  type PerfectionistSortVariableDeclarations = []|[{
@@ -12456,11 +12527,11 @@ type PerfectionistSortVariableDeclarations = []|[{
12456
12527
 
12457
12528
  alphabet?: string
12458
12529
 
12530
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12531
+
12459
12532
  locales?: (string | string[])
12460
12533
 
12461
12534
  order?: ("asc" | "desc")
12462
-
12463
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12464
12535
  }]
12465
12536
  // ----- prefer-arrow-callback -----
12466
12537
  type PreferArrowCallback = []|[{