@kitschpatrol/eslint-config 5.4.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/bin/cli.js +102 -528
  2. package/dist/index.d.ts +912 -536
  3. package/dist/index.js +28 -19
  4. package/package.json +28 -28
package/dist/index.d.ts CHANGED
@@ -598,6 +598,10 @@ interface RuleOptions {
598
598
  * Disallow to use duplicate attributes
599
599
  */
600
600
  'html/no-duplicate-attrs'?: Linter.RuleEntry<[]>
601
+ /**
602
+ * Disallow to use duplicate class
603
+ */
604
+ 'html/no-duplicate-class'?: Linter.RuleEntry<[]>
601
605
  /**
602
606
  * Disallow to use duplicate id
603
607
  */
@@ -746,6 +750,10 @@ interface RuleOptions {
746
750
  * Enforce attributes alphabetical sorting
747
751
  */
748
752
  'html/sort-attrs'?: Linter.RuleEntry<HtmlSortAttrs>
753
+ /**
754
+ * Enforce the use of baseline features.
755
+ */
756
+ 'html/use-baseline'?: Linter.RuleEntry<HtmlUseBaseline>
749
757
  /**
750
758
  * Disallow specified identifiers
751
759
  * @see https://eslint.org/docs/latest/rules/id-blacklist
@@ -775,233 +783,233 @@ interface RuleOptions {
775
783
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
776
784
  /**
777
785
  * Enforce or ban the use of inline type-only markers for named imports.
778
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/consistent-type-specifier-style.md
786
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/consistent-type-specifier-style.md
779
787
  */
780
788
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
781
789
  /**
782
790
  * Ensure a default export is present, given a default import.
783
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/default.md
791
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/default.md
784
792
  */
785
793
  'import/default'?: Linter.RuleEntry<[]>
786
794
  /**
787
795
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
788
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/dynamic-import-chunkname.md
796
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/dynamic-import-chunkname.md
789
797
  */
790
798
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
791
799
  /**
792
800
  * Forbid any invalid exports, i.e. re-export of the same name.
793
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/export.md
801
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/export.md
794
802
  */
795
803
  'import/export'?: Linter.RuleEntry<[]>
796
804
  /**
797
805
  * Ensure all exports appear after other statements.
798
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/exports-last.md
806
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/exports-last.md
799
807
  */
800
808
  'import/exports-last'?: Linter.RuleEntry<[]>
801
809
  /**
802
810
  * Ensure consistent use of file extension within the import path.
803
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/extensions.md
811
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/extensions.md
804
812
  */
805
813
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
806
814
  /**
807
815
  * Ensure all imports appear before other statements.
808
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/first.md
816
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/first.md
809
817
  */
810
818
  'import/first'?: Linter.RuleEntry<ImportFirst>
811
819
  /**
812
820
  * Prefer named exports to be grouped together in a single export declaration.
813
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/group-exports.md
821
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/group-exports.md
814
822
  */
815
823
  'import/group-exports'?: Linter.RuleEntry<[]>
816
824
  /**
817
825
  * Replaced by `import-x/first`.
818
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/imports-first.md
826
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/imports-first.md
819
827
  * @deprecated
820
828
  */
821
829
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
822
830
  /**
823
831
  * Enforce the maximum number of dependencies a module can have.
824
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/max-dependencies.md
832
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/max-dependencies.md
825
833
  */
826
834
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
827
835
  /**
828
836
  * Ensure named imports correspond to a named export in the remote file.
829
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/named.md
837
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/named.md
830
838
  */
831
839
  'import/named'?: Linter.RuleEntry<ImportNamed>
832
840
  /**
833
841
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
834
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/namespace.md
842
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/namespace.md
835
843
  */
836
844
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
837
845
  /**
838
846
  * Enforce a newline after import statements.
839
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/newline-after-import.md
847
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/newline-after-import.md
840
848
  */
841
849
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
842
850
  /**
843
851
  * Forbid import of modules using absolute paths.
844
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-absolute-path.md
852
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-absolute-path.md
845
853
  */
846
854
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
847
855
  /**
848
856
  * Forbid AMD `require` and `define` calls.
849
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-amd.md
857
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-amd.md
850
858
  */
851
859
  'import/no-amd'?: Linter.RuleEntry<[]>
852
860
  /**
853
861
  * Forbid anonymous values as default exports.
854
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-anonymous-default-export.md
862
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-anonymous-default-export.md
855
863
  */
856
864
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
857
865
  /**
858
866
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
859
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-commonjs.md
867
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-commonjs.md
860
868
  */
861
869
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
862
870
  /**
863
871
  * Forbid a module from importing a module with a dependency path back to itself.
864
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-cycle.md
872
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-cycle.md
865
873
  */
866
874
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
867
875
  /**
868
876
  * Forbid default exports.
869
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-default-export.md
877
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-default-export.md
870
878
  */
871
879
  'import/no-default-export'?: Linter.RuleEntry<[]>
872
880
  /**
873
881
  * Forbid imported names marked with `@deprecated` documentation tag.
874
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-deprecated.md
882
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-deprecated.md
875
883
  */
876
884
  'import/no-deprecated'?: Linter.RuleEntry<[]>
877
885
  /**
878
886
  * Forbid repeated import of the same module in multiple places.
879
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-duplicates.md
887
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-duplicates.md
880
888
  */
881
889
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
882
890
  /**
883
891
  * Forbid `require()` calls with expressions.
884
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-dynamic-require.md
892
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-dynamic-require.md
885
893
  */
886
894
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
887
895
  /**
888
896
  * Forbid empty named import blocks.
889
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-empty-named-blocks.md
897
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-empty-named-blocks.md
890
898
  */
891
899
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
892
900
  /**
893
901
  * Forbid the use of extraneous packages.
894
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-extraneous-dependencies.md
902
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-extraneous-dependencies.md
895
903
  */
896
904
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
897
905
  /**
898
906
  * Forbid import statements with CommonJS module.exports.
899
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-import-module-exports.md
907
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-import-module-exports.md
900
908
  */
901
909
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
902
910
  /**
903
911
  * Forbid importing the submodules of other modules.
904
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-internal-modules.md
912
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-internal-modules.md
905
913
  */
906
914
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
907
915
  /**
908
916
  * Forbid the use of mutable exports with `var` or `let`.
909
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-mutable-exports.md
917
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-mutable-exports.md
910
918
  */
911
919
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
912
920
  /**
913
921
  * Forbid use of exported name as identifier of default export.
914
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-as-default.md
922
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-as-default.md
915
923
  */
916
924
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
917
925
  /**
918
926
  * Forbid use of exported name as property of default export.
919
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-as-default-member.md
927
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-as-default-member.md
920
928
  */
921
929
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
922
930
  /**
923
931
  * Forbid named default exports.
924
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-default.md
932
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-default.md
925
933
  */
926
934
  'import/no-named-default'?: Linter.RuleEntry<[]>
927
935
  /**
928
936
  * Forbid named exports.
929
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-export.md
937
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-export.md
930
938
  */
931
939
  'import/no-named-export'?: Linter.RuleEntry<[]>
932
940
  /**
933
941
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
934
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-namespace.md
942
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-namespace.md
935
943
  */
936
944
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
937
945
  /**
938
946
  * Forbid Node.js builtin modules.
939
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-nodejs-modules.md
947
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-nodejs-modules.md
940
948
  */
941
949
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
942
950
  /**
943
951
  * Forbid importing packages through relative paths.
944
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-relative-packages.md
952
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-relative-packages.md
945
953
  */
946
954
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
947
955
  /**
948
956
  * Forbid importing modules from parent directories.
949
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-relative-parent-imports.md
957
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-relative-parent-imports.md
950
958
  */
951
959
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
952
960
  /**
953
961
  * Forbid importing a default export by a different name.
954
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-rename-default.md
962
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-rename-default.md
955
963
  */
956
964
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
957
965
  /**
958
966
  * Enforce which files can be imported in a given folder.
959
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-restricted-paths.md
967
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-restricted-paths.md
960
968
  */
961
969
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
962
970
  /**
963
971
  * Forbid a module from importing itself.
964
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-self-import.md
972
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-self-import.md
965
973
  */
966
974
  'import/no-self-import'?: Linter.RuleEntry<[]>
967
975
  /**
968
976
  * Forbid unassigned imports.
969
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-unassigned-import.md
977
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unassigned-import.md
970
978
  */
971
979
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
972
980
  /**
973
981
  * Ensure imports point to a file/module that can be resolved.
974
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-unresolved.md
982
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unresolved.md
975
983
  */
976
984
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
977
985
  /**
978
986
  * Forbid modules without exports, or exports without matching import in another module.
979
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-unused-modules.md
987
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unused-modules.md
980
988
  */
981
989
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
982
990
  /**
983
991
  * Forbid unnecessary path segments in import and require statements.
984
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-useless-path-segments.md
992
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-useless-path-segments.md
985
993
  */
986
994
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
987
995
  /**
988
996
  * Forbid webpack loader syntax in imports.
989
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-webpack-loader-syntax.md
997
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-webpack-loader-syntax.md
990
998
  */
991
999
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
992
1000
  /**
993
1001
  * Enforce a convention in module import order.
994
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/order.md
1002
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/order.md
995
1003
  */
996
1004
  'import/order'?: Linter.RuleEntry<ImportOrder>
997
1005
  /**
998
1006
  * Prefer a default export if module exports a single name or multiple names.
999
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/prefer-default-export.md
1007
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/prefer-default-export.md
1000
1008
  */
1001
1009
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
1002
1010
  /**
1003
1011
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1004
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/unambiguous.md
1012
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/unambiguous.md
1005
1013
  */
1006
1014
  'import/unambiguous'?: Linter.RuleEntry<[]>
1007
1015
  /**
@@ -1326,6 +1334,10 @@ interface RuleOptions {
1326
1334
  * Requires the `author` property to be present.
1327
1335
  */
1328
1336
  'json-package/require-author'?: Linter.RuleEntry<[]>
1337
+ /**
1338
+ * Requires the `description` property to be present.
1339
+ */
1340
+ 'json-package/require-description'?: Linter.RuleEntry<[]>
1329
1341
  /**
1330
1342
  * Requires the `engines` property to be present.
1331
1343
  */
@@ -1350,6 +1362,10 @@ interface RuleOptions {
1350
1362
  * Requires the `version` property to be present.
1351
1363
  */
1352
1364
  'json-package/require-version'?: Linter.RuleEntry<[]>
1365
+ /**
1366
+ * Restricts the range of dependencies to allow or disallow specific types of ranges.
1367
+ */
1368
+ 'json-package/restrict-dependency-ranges'?: Linter.RuleEntry<JsonPackageRestrictDependencyRanges>
1353
1369
  /**
1354
1370
  * Dependencies, scripts, and configuration values must be declared in alphabetical order.
1355
1371
  */
@@ -2536,7 +2552,7 @@ interface RuleOptions {
2536
2552
  * Disallow identifiers from shadowing restricted names
2537
2553
  * @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
2538
2554
  */
2539
- 'no-shadow-restricted-names'?: Linter.RuleEntry<[]>
2555
+ 'no-shadow-restricted-names'?: Linter.RuleEntry<NoShadowRestrictedNames>
2540
2556
  /**
2541
2557
  * Disallow spacing between function identifiers and their applications (deprecated)
2542
2558
  * @see https://eslint.org/docs/latest/rules/no-spaced-func
@@ -3216,10 +3232,15 @@ interface RuleOptions {
3216
3232
  */
3217
3233
  'react-debug/hook'?: Linter.RuleEntry<[]>
3218
3234
  /**
3219
- * Report all identifiers that are initialized from React.
3235
+ * Reports all identifiers that are initialized from React.
3220
3236
  * @see https://eslint-react.xyz/docs/rules/debug-is-from-react
3221
3237
  */
3222
3238
  'react-debug/is-from-react'?: Linter.RuleEntry<[]>
3239
+ /**
3240
+ * Reports all JSX elements and fragments.
3241
+ * @see https://eslint-react.xyz/docs/rules/debug-jsx
3242
+ */
3243
+ 'react-debug/jsx'?: Linter.RuleEntry<[]>
3223
3244
  /**
3224
3245
  * Reports all React Hooks.
3225
3246
  * @see https://eslint-react.xyz/docs/rules/debug-hook
@@ -3425,6 +3446,11 @@ interface RuleOptions {
3425
3446
  * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3426
3447
  */
3427
3448
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
3449
+ /**
3450
+ * Enforces that the 'key' attribute is placed before the spread attribute in JSX elements.
3451
+ * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
3452
+ */
3453
+ 'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>
3428
3454
  /**
3429
3455
  * Disallow duplicate props in JSX elements.
3430
3456
  * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
@@ -3435,6 +3461,11 @@ interface RuleOptions {
3435
3461
  * @see https://eslint-react.xyz/docs/rules/jsx-no-undef
3436
3462
  */
3437
3463
  'react/jsx-no-undef'?: Linter.RuleEntry<[]>
3464
+ /**
3465
+ * Marks React variables as used when JSX is used.
3466
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-react
3467
+ */
3468
+ 'react/jsx-uses-react'?: Linter.RuleEntry<[]>
3438
3469
  /**
3439
3470
  * Marks variables used in JSX elements as used.
3440
3471
  * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
@@ -3481,7 +3512,7 @@ interface RuleOptions {
3481
3512
  */
3482
3513
  'react/no-children-to-array'?: Linter.RuleEntry<[]>
3483
3514
  /**
3484
- * Disallow class components.
3515
+ * Disallow class components except for error boundaries.
3485
3516
  * @see https://eslint-react.xyz/docs/rules/no-class-component
3486
3517
  */
3487
3518
  'react/no-class-component'?: Linter.RuleEntry<[]>
@@ -3580,6 +3611,11 @@ interface RuleOptions {
3580
3611
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
3581
3612
  */
3582
3613
  'react/no-missing-key'?: Linter.RuleEntry<[]>
3614
+ /**
3615
+ * Prevents incorrect usage of `captureOwnerStack`.
3616
+ * @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
3617
+ */
3618
+ 'react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>
3583
3619
  /**
3584
3620
  * Disallow nesting component definitions inside other components.
3585
3621
  * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
@@ -3590,6 +3626,11 @@ interface RuleOptions {
3590
3626
  * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3591
3627
  */
3592
3628
  'react/no-nested-components'?: Linter.RuleEntry<[]>
3629
+ /**
3630
+ * Disallow nesting lazy component declarations inside other components.
3631
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3632
+ */
3633
+ 'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
3593
3634
  /**
3594
3635
  * Disallow `propTypes` in favor of TypeScript or another type-checking solution.
3595
3636
  * @see https://eslint-react.xyz/docs/rules/no-prop-types
@@ -3606,7 +3647,7 @@ interface RuleOptions {
3606
3647
  */
3607
3648
  'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
3608
3649
  /**
3609
- * Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
3650
+ * Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
3610
3651
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
3611
3652
  */
3612
3653
  'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
@@ -3616,7 +3657,7 @@ interface RuleOptions {
3616
3657
  */
3617
3658
  'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
3618
3659
  /**
3619
- * Disallow deprecated string `refs`.
3660
+ * Replaces string refs with callback refs.
3620
3661
  * @see https://eslint-react.xyz/docs/rules/no-string-refs
3621
3662
  */
3622
3663
  'react/no-string-refs'?: Linter.RuleEntry<[]>
@@ -4723,7 +4764,7 @@ interface RuleOptions {
4723
4764
  */
4724
4765
  'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
4725
4766
  /**
4726
- * disallow using `test` as a prefix
4767
+ * Disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
4727
4768
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
4728
4769
  */
4729
4770
  'test/no-test-prefixes'?: Linter.RuleEntry<[]>
@@ -4782,6 +4823,11 @@ interface RuleOptions {
4782
4823
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
4783
4824
  */
4784
4825
  'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
4826
+ /**
4827
+ * enforce using a function as a describe title over an equivalent string
4828
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-describe-function-title.md
4829
+ */
4830
+ 'test/prefer-describe-function-title'?: Linter.RuleEntry<[]>
4785
4831
  /**
4786
4832
  * enforce using `each` rather than manual loops
4787
4833
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
@@ -5416,6 +5462,11 @@ interface RuleOptions {
5416
5462
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
5417
5463
  */
5418
5464
  'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
5465
+ /**
5466
+ * Disallow conversion idioms when they do not change the type or value of the expression
5467
+ * @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
5468
+ */
5469
+ 'ts/no-unnecessary-type-conversion'?: Linter.RuleEntry<[]>
5419
5470
  /**
5420
5471
  * Disallow type parameters that aren't used multiple times
5421
5472
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
@@ -5701,643 +5752,670 @@ interface RuleOptions {
5701
5752
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5702
5753
  /**
5703
5754
  * Improve regexes by making them shorter, consistent, and safer.
5704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
5755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
5705
5756
  */
5706
5757
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5707
5758
  /**
5708
5759
  * Enforce a specific parameter name in catch clauses.
5709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
5760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
5710
5761
  */
5711
5762
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5712
5763
  /**
5713
5764
  * Enforce consistent assertion style with `node:assert`.
5714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
5765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
5715
5766
  */
5716
5767
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5717
5768
  /**
5718
5769
  * Prefer passing `Date` directly to the constructor when cloning.
5719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
5770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
5720
5771
  */
5721
5772
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5722
5773
  /**
5723
5774
  * Use destructured variables over properties.
5724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
5775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
5725
5776
  */
5726
5777
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5727
5778
  /**
5728
5779
  * Prefer consistent types when spreading a ternary in an array literal.
5729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
5780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
5730
5781
  */
5731
5782
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5732
5783
  /**
5733
5784
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
5785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
5735
5786
  */
5736
5787
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5737
5788
  /**
5738
5789
  * Move function definitions to the highest possible scope.
5739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
5790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
5740
5791
  */
5741
5792
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5742
5793
  /**
5743
5794
  * Enforce correct `Error` subclassing.
5744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
5795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
5745
5796
  */
5746
5797
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5747
5798
  /**
5748
5799
  * Enforce no spaces between braces.
5749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
5800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
5750
5801
  */
5751
5802
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5752
5803
  /**
5753
5804
  * Enforce passing a `message` value when creating a built-in error.
5754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
5805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
5755
5806
  */
5756
5807
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5757
5808
  /**
5758
5809
  * Require escape sequences to use uppercase or lowercase values.
5759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
5810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
5760
5811
  */
5761
5812
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5762
5813
  /**
5763
5814
  * Add expiration conditions to TODO comments.
5764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
5815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
5765
5816
  */
5766
5817
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5767
5818
  /**
5768
5819
  * Enforce explicitly comparing the `length` or `size` property of a value.
5769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
5820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
5770
5821
  */
5771
5822
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5772
5823
  /**
5773
5824
  * Enforce a case style for filenames.
5774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
5825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
5775
5826
  */
5776
5827
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5777
5828
  /**
5778
5829
  * Enforce specific import styles per module.
5779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
5830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
5780
5831
  */
5781
5832
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5782
5833
  /**
5783
5834
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
5835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
5785
5836
  */
5786
5837
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5787
5838
  /**
5788
5839
  * Enforce specifying rules to disable in `eslint-disable` comments.
5789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
5840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
5790
5841
  */
5791
5842
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5792
5843
  /**
5793
5844
  * Disallow recursive access to `this` within getters and setters.
5794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
5845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
5795
5846
  */
5796
5847
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5797
5848
  /**
5798
5849
  * Disallow anonymous functions and classes as the default export.
5799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
5850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
5800
5851
  */
5801
5852
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5802
5853
  /**
5803
5854
  * Prevent passing a function reference directly to iterator methods.
5804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
5855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
5805
5856
  */
5806
5857
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5807
5858
  /**
5808
5859
  * Prefer `for…of` over the `forEach` method.
5809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
5860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
5810
5861
  */
5811
5862
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5812
5863
  /**
5813
5864
  * Disallow using the `this` argument in array methods.
5814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
5865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
5815
5866
  */
5816
5867
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5817
5868
  /**
5818
- * Enforce combining multiple `Array#push()` into one call.
5819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
5869
+ * Replaced by `unicorn/prefer-single-call` which covers more cases.
5870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
5871
+ * @deprecated
5820
5872
  */
5821
- 'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5873
+ 'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
5822
5874
  /**
5823
5875
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
5876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
5825
5877
  */
5826
5878
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5827
5879
  /**
5828
5880
  * Disallow member access from await expression.
5829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
5881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
5830
5882
  */
5831
5883
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5832
5884
  /**
5833
5885
  * Disallow using `await` in `Promise` method parameters.
5834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
5886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
5835
5887
  */
5836
5888
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5837
5889
  /**
5838
5890
  * Do not use leading/trailing space between `console.log` parameters.
5839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
5891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
5840
5892
  */
5841
5893
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5842
5894
  /**
5843
5895
  * Do not use `document.cookie` directly.
5844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
5896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
5845
5897
  */
5846
5898
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5847
5899
  /**
5848
5900
  * Disallow empty files.
5849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
5901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
5850
5902
  */
5851
5903
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5852
5904
  /**
5853
5905
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
5906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
5855
5907
  */
5856
5908
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5857
5909
  /**
5858
5910
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
5911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
5860
5912
  */
5861
5913
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5862
5914
  /**
5863
5915
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
5916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
5865
5917
  * @deprecated
5866
5918
  */
5867
5919
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5868
5920
  /**
5869
5921
  * Disallow `instanceof` with built-in objects
5870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
5922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
5871
5923
  */
5872
5924
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5873
5925
  /**
5874
5926
  * Disallow invalid options in `fetch()` and `new Request()`.
5875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
5927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
5876
5928
  */
5877
5929
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5878
5930
  /**
5879
5931
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
5932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
5881
5933
  */
5882
5934
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5883
5935
  /**
5884
5936
  * Disallow identifiers starting with `new` or `class`.
5885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
5937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
5886
5938
  */
5887
5939
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5888
5940
  /**
5889
- * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
5941
+ * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
5943
+ * @deprecated
5891
5944
  */
5892
5945
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5893
5946
  /**
5894
5947
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
5948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
5896
5949
  */
5897
5950
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5898
5951
  /**
5899
5952
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
5953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
5901
5954
  */
5902
5955
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5903
5956
  /**
5904
5957
  * Disallow named usage of default import and export.
5905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
5958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
5906
5959
  */
5907
5960
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5908
5961
  /**
5909
5962
  * Disallow negated conditions.
5910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
5963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
5911
5964
  */
5912
5965
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5913
5966
  /**
5914
5967
  * Disallow negated expression in equality check.
5915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
5968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
5916
5969
  */
5917
5970
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5918
5971
  /**
5919
5972
  * Disallow nested ternary expressions.
5920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
5973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
5921
5974
  */
5922
5975
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5923
5976
  /**
5924
5977
  * Disallow `new Array()`.
5925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
5978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
5926
5979
  */
5927
5980
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5928
5981
  /**
5929
5982
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
5983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
5931
5984
  */
5932
5985
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5933
5986
  /**
5934
5987
  * Disallow the use of the `null` literal.
5935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
5988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
5936
5989
  */
5937
5990
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5938
5991
  /**
5939
5992
  * Disallow the use of objects as default parameters.
5940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
5993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
5941
5994
  */
5942
5995
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5943
5996
  /**
5944
5997
  * Disallow `process.exit()`.
5945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
5998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
5946
5999
  */
5947
6000
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5948
6001
  /**
5949
6002
  * Disallow passing single-element arrays to `Promise` methods.
5950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
6003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
5951
6004
  */
5952
6005
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5953
6006
  /**
5954
6007
  * Disallow classes that only have static members.
5955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
6008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
5956
6009
  */
5957
6010
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5958
6011
  /**
5959
6012
  * Disallow `then` property.
5960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
6013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
5961
6014
  */
5962
6015
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5963
6016
  /**
5964
6017
  * Disallow assigning `this` to a variable.
5965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
6018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
5966
6019
  */
5967
6020
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5968
6021
  /**
5969
6022
  * Disallow comparing `undefined` using `typeof`.
5970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
6023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
5971
6024
  */
5972
6025
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6026
+ /**
6027
+ * Disallow using `1` as the `depth` argument of `Array#flat()`.
6028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6029
+ */
6030
+ 'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6031
+ /**
6032
+ * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
6034
+ */
6035
+ 'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
5973
6036
  /**
5974
6037
  * Disallow awaiting non-promise values.
5975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
6038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
5976
6039
  */
5977
6040
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5978
6041
  /**
5979
6042
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
6043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
5981
6044
  */
5982
6045
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6046
+ /**
6047
+ * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
6049
+ */
6050
+ 'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
5983
6051
  /**
5984
6052
  * Disallow unreadable array destructuring.
5985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
6053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
5986
6054
  */
5987
6055
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5988
6056
  /**
5989
6057
  * Disallow unreadable IIFEs.
5990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
6058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
5991
6059
  */
5992
6060
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5993
6061
  /**
5994
6062
  * Disallow unused object properties.
5995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
6063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
5996
6064
  */
5997
6065
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5998
6066
  /**
5999
6067
  * Disallow useless fallback when spreading in object literals.
6000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
6068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
6001
6069
  */
6002
6070
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6003
6071
  /**
6004
6072
  * Disallow useless array length check.
6005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
6073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
6006
6074
  */
6007
6075
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6008
6076
  /**
6009
6077
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
6078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
6011
6079
  */
6012
6080
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6013
6081
  /**
6014
6082
  * Disallow unnecessary spread.
6015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
6083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
6016
6084
  */
6017
6085
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6018
6086
  /**
6019
6087
  * Disallow useless case in switch statements.
6020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
6088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
6021
6089
  */
6022
6090
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6023
6091
  /**
6024
6092
  * Disallow useless `undefined`.
6025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
6093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
6026
6094
  */
6027
6095
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6028
6096
  /**
6029
6097
  * Disallow number literals with zero fractions or dangling dots.
6030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
6098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
6031
6099
  */
6032
6100
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6033
6101
  /**
6034
6102
  * Enforce proper case for numeric literals.
6035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
6103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
6036
6104
  */
6037
6105
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6038
6106
  /**
6039
6107
  * Enforce the style of numeric separators by correctly grouping digits.
6040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
6108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
6041
6109
  */
6042
6110
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6043
6111
  /**
6044
6112
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
6113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
6046
6114
  */
6047
6115
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6048
6116
  /**
6049
6117
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
6118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
6051
6119
  */
6052
6120
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6053
6121
  /**
6054
6122
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
6123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
6056
6124
  */
6057
6125
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6058
6126
  /**
6059
6127
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
6128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
6061
6129
  */
6062
6130
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6063
6131
  /**
6064
6132
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
6133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
6066
6134
  */
6067
6135
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6068
6136
  /**
6069
6137
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
6138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
6071
6139
  */
6072
6140
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6073
6141
  /**
6074
6142
  * Prefer `.at()` method for index access and `String#charAt()`.
6075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
6143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
6076
6144
  */
6077
6145
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6078
6146
  /**
6079
6147
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
6148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
6081
6149
  */
6082
6150
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6083
6151
  /**
6084
6152
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
6153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
6086
6154
  */
6087
6155
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6088
6156
  /**
6089
6157
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
6158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
6091
6159
  */
6092
6160
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6093
6161
  /**
6094
6162
  * Prefer default parameters over reassignment.
6095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
6163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
6096
6164
  */
6097
6165
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6098
6166
  /**
6099
6167
  * Prefer `Node#append()` over `Node#appendChild()`.
6100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
6168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
6101
6169
  */
6102
6170
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6103
6171
  /**
6104
6172
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
6173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
6106
6174
  */
6107
6175
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6108
6176
  /**
6109
6177
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
6178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
6111
6179
  */
6112
6180
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6113
6181
  /**
6114
6182
  * Prefer `.textContent` over `.innerText`.
6115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
6183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
6116
6184
  */
6117
6185
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6118
6186
  /**
6119
6187
  * Prefer `EventTarget` over `EventEmitter`.
6120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
6188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
6121
6189
  */
6122
6190
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6123
6191
  /**
6124
6192
  * Prefer `export…from` when re-exporting.
6125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
6193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
6126
6194
  */
6127
6195
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6128
6196
  /**
6129
6197
  * Prefer `globalThis` over `window`, `self`, and `global`.
6130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
6198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
6131
6199
  */
6132
6200
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6201
+ /**
6202
+ * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
6204
+ */
6205
+ 'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6133
6206
  /**
6134
6207
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
6208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
6136
6209
  */
6137
6210
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6138
6211
  /**
6139
6212
  * Prefer reading a JSON file as a buffer.
6140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
6213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
6141
6214
  */
6142
6215
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6143
6216
  /**
6144
6217
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
6218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
6146
6219
  */
6147
6220
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6148
6221
  /**
6149
6222
  * Prefer using a logical operator over a ternary.
6150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6151
6224
  */
6152
6225
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6153
6226
  /**
6154
6227
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
6228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
6156
6229
  */
6157
6230
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6158
6231
  /**
6159
6232
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
6233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
6161
6234
  */
6162
6235
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6163
6236
  /**
6164
6237
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
6238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
6166
6239
  */
6167
6240
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6168
6241
  /**
6169
6242
  * Prefer modern `Math` APIs over legacy patterns.
6170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
6243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
6171
6244
  */
6172
6245
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6173
6246
  /**
6174
6247
  * Prefer JavaScript modules (ESM) over CommonJS.
6175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
6248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
6176
6249
  */
6177
6250
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6178
6251
  /**
6179
6252
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
6253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
6181
6254
  */
6182
6255
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6183
6256
  /**
6184
6257
  * Prefer negative index over `.length - index` when possible.
6185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
6258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
6186
6259
  */
6187
6260
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6188
6261
  /**
6189
6262
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
6263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
6191
6264
  */
6192
6265
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6193
6266
  /**
6194
6267
  * Prefer `Number` static properties over global ones.
6195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
6268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
6196
6269
  */
6197
6270
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6198
6271
  /**
6199
6272
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
6273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
6201
6274
  */
6202
6275
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6203
6276
  /**
6204
6277
  * Prefer omitting the `catch` binding parameter.
6205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
6278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
6206
6279
  */
6207
6280
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6208
6281
  /**
6209
6282
  * Prefer borrowing methods from the prototype instead of the instance.
6210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
6283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
6211
6284
  */
6212
6285
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6213
6286
  /**
6214
6287
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
6288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
6216
6289
  */
6217
6290
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6218
6291
  /**
6219
6292
  * Prefer `Reflect.apply()` over `Function#apply()`.
6220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
6293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
6221
6294
  */
6222
6295
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6223
6296
  /**
6224
6297
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
6298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
6226
6299
  */
6227
6300
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6228
6301
  /**
6229
6302
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
6303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
6231
6304
  */
6232
6305
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6233
6306
  /**
6234
6307
  * Prefer using `Set#size` instead of `Array#length`.
6235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
6308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
6236
6309
  */
6237
6310
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6311
+ /**
6312
+ * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
6314
+ */
6315
+ 'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6238
6316
  /**
6239
6317
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
6318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
6241
6319
  */
6242
6320
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6243
6321
  /**
6244
6322
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
6323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
6246
6324
  */
6247
6325
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6248
6326
  /**
6249
6327
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
6328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
6251
6329
  */
6252
6330
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6253
6331
  /**
6254
6332
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
6333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
6256
6334
  */
6257
6335
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6258
6336
  /**
6259
6337
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
6338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
6261
6339
  */
6262
6340
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6263
6341
  /**
6264
6342
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
6343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
6266
6344
  */
6267
6345
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6268
6346
  /**
6269
6347
  * Prefer using `structuredClone` to create a deep clone.
6270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
6348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
6271
6349
  */
6272
6350
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6273
6351
  /**
6274
6352
  * Prefer `switch` over multiple `else-if`.
6275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
6353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
6276
6354
  */
6277
6355
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6278
6356
  /**
6279
6357
  * Prefer ternary expressions over simple `if-else` statements.
6280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
6358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
6281
6359
  */
6282
6360
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6283
6361
  /**
6284
6362
  * Prefer top-level await over top-level promises and async function calls.
6285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
6363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
6286
6364
  */
6287
6365
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6288
6366
  /**
6289
6367
  * Enforce throwing `TypeError` in type checking conditions.
6290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
6368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
6291
6369
  */
6292
6370
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6293
6371
  /**
6294
6372
  * Prevent abbreviations.
6295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
6373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
6296
6374
  */
6297
6375
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6298
6376
  /**
6299
6377
  * Enforce consistent relative URL style.
6300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
6378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
6301
6379
  */
6302
6380
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6303
6381
  /**
6304
6382
  * Enforce using the separator argument with `Array#join()`.
6305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
6383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
6306
6384
  */
6307
6385
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6308
6386
  /**
6309
6387
  * Enforce using the digits argument with `Number#toFixed()`.
6310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6311
6389
  */
6312
6390
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6313
6391
  /**
6314
6392
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
6393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
6316
6394
  */
6317
6395
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6318
6396
  /**
6319
6397
  * Enforce better string content.
6320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
6398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
6321
6399
  */
6322
6400
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6323
6401
  /**
6324
6402
  * Enforce consistent brace style for `case` clauses.
6325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
6403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
6326
6404
  */
6327
6405
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6328
6406
  /**
6329
6407
  * Fix whitespace-insensitive template indentation.
6330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
6408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
6331
6409
  */
6332
6410
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6333
6411
  /**
6334
6412
  * Enforce consistent case for text encoding identifiers.
6335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
6413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
6336
6414
  */
6337
6415
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6338
6416
  /**
6339
6417
  * Require `new` when creating an error.
6340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
6418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
6341
6419
  */
6342
6420
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6343
6421
  /**
@@ -7077,6 +7155,8 @@ type ClassMethodsUseThis =
7077
7155
  {
7078
7156
  exceptMethods?: string[]
7079
7157
  enforceForClassFields?: boolean
7158
+ ignoreOverrideMethods?: boolean
7159
+ ignoreClassesWithImplements?: 'all' | 'public-fields'
7080
7160
  },
7081
7161
  ]
7082
7162
  // ----- comma-dangle -----
@@ -7493,6 +7573,14 @@ type HtmlSortAttrs =
7493
7573
  [k: string]: unknown | undefined
7494
7574
  },
7495
7575
  ]
7576
+ // ----- html/use-baseline -----
7577
+ type HtmlUseBaseline =
7578
+ | []
7579
+ | [
7580
+ {
7581
+ available?: ('widely' | 'newly') | number
7582
+ },
7583
+ ]
7496
7584
  // ----- id-blacklist -----
7497
7585
  type IdBlacklist = string[]
7498
7586
  // ----- id-denylist -----
@@ -8748,6 +8836,33 @@ type JsonPackageRepositoryShorthand =
8748
8836
  [k: string]: unknown | undefined
8749
8837
  },
8750
8838
  ]
8839
+ // ----- json-package/restrict-dependency-ranges -----
8840
+ type JsonPackageRestrictDependencyRanges =
8841
+ | []
8842
+ | [
8843
+ | {
8844
+ forDependencyTypes?: (
8845
+ | 'dependencies'
8846
+ | 'devDependencies'
8847
+ | 'optionalDependencies'
8848
+ | 'peerDependencies'
8849
+ )[]
8850
+ forPackages?: string[]
8851
+ forVersions?: string
8852
+ rangeType: ('caret' | 'pin' | 'tilde') | ('caret' | 'pin' | 'tilde')[]
8853
+ }
8854
+ | {
8855
+ forDependencyTypes?: (
8856
+ | 'dependencies'
8857
+ | 'devDependencies'
8858
+ | 'optionalDependencies'
8859
+ | 'peerDependencies'
8860
+ )[]
8861
+ forPackages?: string[]
8862
+ forVersions?: string
8863
+ rangeType: ('caret' | 'pin' | 'tilde') | ('caret' | 'pin' | 'tilde')[]
8864
+ }[],
8865
+ ]
8751
8866
  // ----- json-package/sort-collections -----
8752
8867
  type JsonPackageSortCollections = [] | [string[]]
8753
8868
  // ----- json/array-bracket-newline -----
@@ -10316,6 +10431,10 @@ type NoEmptyFunction =
10316
10431
  | 'constructors'
10317
10432
  | 'asyncFunctions'
10318
10433
  | 'asyncMethods'
10434
+ | 'privateConstructors'
10435
+ | 'protectedConstructors'
10436
+ | 'decoratedFunctions'
10437
+ | 'overrideMethods'
10319
10438
  )[]
10320
10439
  },
10321
10440
  ]
@@ -10757,14 +10876,10 @@ type NoRestrictedModules =
10757
10876
  // ----- no-restricted-properties -----
10758
10877
  type NoRestrictedProperties = (
10759
10878
  | {
10760
- object: string
10761
- property?: string
10762
- message?: string
10879
+ [k: string]: unknown | undefined
10763
10880
  }
10764
10881
  | {
10765
- object?: string
10766
- property: string
10767
- message?: string
10882
+ [k: string]: unknown | undefined
10768
10883
  }
10769
10884
  )[]
10770
10885
  // ----- no-restricted-syntax -----
@@ -10804,6 +10919,14 @@ type NoShadow =
10804
10919
  ignoreOnInitialization?: boolean
10805
10920
  },
10806
10921
  ]
10922
+ // ----- no-shadow-restricted-names -----
10923
+ type NoShadowRestrictedNames =
10924
+ | []
10925
+ | [
10926
+ {
10927
+ reportGlobalThis?: boolean
10928
+ },
10929
+ ]
10807
10930
  // ----- no-sync -----
10808
10931
  type NoSync =
10809
10932
  | []
@@ -10900,6 +11023,7 @@ type NoUnusedExpressions =
10900
11023
  allowTernary?: boolean
10901
11024
  allowTaggedTemplates?: boolean
10902
11025
  enforceForJSX?: boolean
11026
+ ignoreDirectives?: boolean
10903
11027
  },
10904
11028
  ]
10905
11029
  // ----- no-unused-vars -----
@@ -11391,6 +11515,7 @@ type NodeNoUnpublishedImport =
11391
11515
  resolverConfig?: {
11392
11516
  [k: string]: unknown | undefined
11393
11517
  }
11518
+ tryExtensions?: string[]
11394
11519
  ignoreTypeImport?: boolean
11395
11520
  ignorePrivate?: boolean
11396
11521
  },
@@ -13136,12 +13261,30 @@ type NodeNoUnsupportedFeaturesNodeBuiltins =
13136
13261
  | 'http2.Http2ServerRequest'
13137
13262
  | 'http2.Http2ServerResponse'
13138
13263
  | 'http'
13264
+ | 'http.METHODS'
13265
+ | 'http.STATUS_CODES'
13139
13266
  | 'http.globalAgent'
13267
+ | 'http.maxHeaderSize'
13140
13268
  | 'http.createServer'
13141
13269
  | 'http.get'
13142
13270
  | 'http.request'
13271
+ | 'http.validateHeaderName'
13272
+ | 'http.validateHeaderValue'
13273
+ | 'http.setMaxIdleHTTPParsers'
13143
13274
  | 'http.Agent'
13275
+ | 'http.ClientRequest'
13144
13276
  | 'http.Server'
13277
+ | 'http.ServerResponse'
13278
+ | 'http.IncomingMessage'
13279
+ | 'http.OutgoingMessage'
13280
+ | 'http.WebSocket'
13281
+ | 'https'
13282
+ | 'https.globalAgent'
13283
+ | 'https.createServer'
13284
+ | 'https.get'
13285
+ | 'https.request'
13286
+ | 'https.Agent'
13287
+ | 'https.Server'
13145
13288
  | 'inspector'
13146
13289
  | 'inspector.Session'
13147
13290
  | 'inspector.Network.loadingFailed'
@@ -13452,6 +13595,12 @@ type NodeNoUnsupportedFeaturesNodeBuiltins =
13452
13595
  | 'stream/consumers.text'
13453
13596
  | 'string_decoder'
13454
13597
  | 'string_decoder.StringDecoder'
13598
+ | 'sqlite'
13599
+ | 'sqlite.DatabaseSync'
13600
+ | 'sqlite.StatementSync'
13601
+ | 'sqlite.SQLITE_CHANGESET_OMIT'
13602
+ | 'sqlite.SQLITE_CHANGESET_REPLACE'
13603
+ | 'sqlite.SQLITE_CHANGESET_ABORT'
13455
13604
  | 'test'
13456
13605
  | 'test.after'
13457
13606
  | 'test.afterEach'
@@ -14921,10 +15070,32 @@ type PerfectionistSortEnums =
14921
15070
  },
14922
15071
  ]
14923
15072
  // ----- perfectionist/sort-exports -----
14924
- type PerfectionistSortExports =
14925
- | []
14926
- | [
14927
- {
15073
+ type PerfectionistSortExports = {
15074
+ fallbackSort?: {
15075
+ order?: 'asc' | 'desc'
15076
+
15077
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15078
+ [k: string]: unknown | undefined
15079
+ }
15080
+
15081
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15082
+
15083
+ ignoreCase?: boolean
15084
+
15085
+ alphabet?: string
15086
+
15087
+ locales?: string | string[]
15088
+
15089
+ order?: 'asc' | 'desc'
15090
+
15091
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15092
+
15093
+ groupKind?: 'mixed' | 'values-first' | 'types-first'
15094
+
15095
+ customGroups?: (
15096
+ | {
15097
+ newlinesInside?: 'always' | 'never'
15098
+
14928
15099
  fallbackSort?: {
14929
15100
  order?: 'asc' | 'desc'
14930
15101
 
@@ -14932,21 +15103,91 @@ type PerfectionistSortExports =
14932
15103
  [k: string]: unknown | undefined
14933
15104
  }
14934
15105
 
14935
- specialCharacters?: 'remove' | 'trim' | 'keep'
15106
+ groupName?: string
14936
15107
 
14937
- ignoreCase?: boolean
15108
+ order?: 'asc' | 'desc'
14938
15109
 
14939
- alphabet?: string
15110
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15111
+ anyOf?: {
15112
+ modifiers?: ('value' | 'type')[]
14940
15113
 
14941
- locales?: string | string[]
15114
+ selector?: 'export'
15115
+
15116
+ elementNamePattern?:
15117
+ | (
15118
+ | {
15119
+ pattern?: string
15120
+ flags?: string
15121
+ }
15122
+ | string
15123
+ )[]
15124
+ | (
15125
+ | {
15126
+ pattern?: string
15127
+ flags?: string
15128
+ }
15129
+ | string
15130
+ )
15131
+ }[]
15132
+ }
15133
+ | {
15134
+ newlinesInside?: 'always' | 'never'
15135
+
15136
+ fallbackSort?: {
15137
+ order?: 'asc' | 'desc'
15138
+
15139
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15140
+ [k: string]: unknown | undefined
15141
+ }
15142
+
15143
+ groupName?: string
14942
15144
 
14943
15145
  order?: 'asc' | 'desc'
14944
15146
 
14945
15147
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14946
15148
 
14947
- groupKind?: 'mixed' | 'values-first' | 'types-first'
15149
+ modifiers?: ('value' | 'type')[]
14948
15150
 
14949
- partitionByComment?:
15151
+ selector?: 'export'
15152
+
15153
+ elementNamePattern?:
15154
+ | (
15155
+ | {
15156
+ pattern?: string
15157
+ flags?: string
15158
+ }
15159
+ | string
15160
+ )[]
15161
+ | (
15162
+ | {
15163
+ pattern?: string
15164
+ flags?: string
15165
+ }
15166
+ | string
15167
+ )
15168
+ }
15169
+ )[]
15170
+
15171
+ partitionByComment?:
15172
+ | boolean
15173
+ | (
15174
+ | (
15175
+ | {
15176
+ pattern?: string
15177
+ flags?: string
15178
+ }
15179
+ | string
15180
+ )[]
15181
+ | (
15182
+ | {
15183
+ pattern?: string
15184
+ flags?: string
15185
+ }
15186
+ | string
15187
+ )
15188
+ )
15189
+ | {
15190
+ block?:
14950
15191
  | boolean
14951
15192
  | (
14952
15193
  | (
@@ -14964,48 +15205,38 @@ type PerfectionistSortExports =
14964
15205
  | string
14965
15206
  )
14966
15207
  )
14967
- | {
14968
- block?:
14969
- | boolean
14970
- | (
14971
- | (
14972
- | {
14973
- pattern?: string
14974
- flags?: string
14975
- }
14976
- | string
14977
- )[]
14978
- | (
14979
- | {
14980
- pattern?: string
14981
- flags?: string
14982
- }
14983
- | string
14984
- )
14985
- )
14986
- line?:
14987
- | boolean
14988
- | (
14989
- | (
14990
- | {
14991
- pattern?: string
14992
- flags?: string
14993
- }
14994
- | string
14995
- )[]
14996
- | (
14997
- | {
14998
- pattern?: string
14999
- flags?: string
15000
- }
15001
- | string
15002
- )
15003
- )
15004
- }
15208
+ line?:
15209
+ | boolean
15210
+ | (
15211
+ | (
15212
+ | {
15213
+ pattern?: string
15214
+ flags?: string
15215
+ }
15216
+ | string
15217
+ )[]
15218
+ | (
15219
+ | {
15220
+ pattern?: string
15221
+ flags?: string
15222
+ }
15223
+ | string
15224
+ )
15225
+ )
15226
+ }
15005
15227
 
15006
- partitionByNewLine?: boolean
15007
- },
15008
- ]
15228
+ partitionByNewLine?: boolean
15229
+
15230
+ newlinesBetween?: 'ignore' | 'always' | 'never'
15231
+
15232
+ groups?: (
15233
+ | string
15234
+ | string[]
15235
+ | {
15236
+ newlinesBetween?: 'ignore' | 'always' | 'never'
15237
+ }
15238
+ )[]
15239
+ }[]
15009
15240
  // ----- perfectionist/sort-heritage-clauses -----
15010
15241
  type PerfectionistSortHeritageClauses =
15011
15242
  | []
@@ -15043,159 +15274,24 @@ type PerfectionistSortHeritageClauses =
15043
15274
  )[]
15044
15275
  },
15045
15276
  ]
15046
- // ----- perfectionist/sort-imports -----
15047
- type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports]
15048
- type _PerfectionistSortImportsSortImports =
15049
- _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
15050
- fallbackSort?: {
15051
- order?: 'asc' | 'desc'
15052
-
15053
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15054
- [k: string]: unknown | undefined
15055
- }
15056
-
15057
- specialCharacters?: 'remove' | 'trim' | 'keep'
15058
-
15059
- ignoreCase?: boolean
15060
-
15061
- alphabet?: string
15062
-
15063
- locales?: string | string[]
15064
-
15277
+ // ----- perfectionist/sort-interfaces -----
15278
+ type PerfectionistSortInterfaces = {
15279
+ fallbackSort?: {
15065
15280
  order?: 'asc' | 'desc'
15066
15281
 
15067
15282
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15283
+ [k: string]: unknown | undefined
15284
+ }
15068
15285
 
15069
- customGroups?: {
15070
- value?: {
15071
- [k: string]: unknown | undefined
15072
- }
15073
-
15074
- type?: {
15075
- [k: string]: unknown | undefined
15076
- }
15077
- }
15286
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15078
15287
 
15079
- maxLineLength?: number
15288
+ ignoreCase?: boolean
15080
15289
 
15081
- sortSideEffects?: boolean
15290
+ alphabet?: string
15082
15291
 
15083
- environment?: 'node' | 'bun'
15292
+ locales?: string | string[]
15084
15293
 
15085
- tsconfigRootDir?: string
15086
-
15087
- partitionByComment?:
15088
- | boolean
15089
- | (
15090
- | (
15091
- | {
15092
- pattern?: string
15093
- flags?: string
15094
- }
15095
- | string
15096
- )[]
15097
- | (
15098
- | {
15099
- pattern?: string
15100
- flags?: string
15101
- }
15102
- | string
15103
- )
15104
- )
15105
- | {
15106
- block?:
15107
- | boolean
15108
- | (
15109
- | (
15110
- | {
15111
- pattern?: string
15112
- flags?: string
15113
- }
15114
- | string
15115
- )[]
15116
- | (
15117
- | {
15118
- pattern?: string
15119
- flags?: string
15120
- }
15121
- | string
15122
- )
15123
- )
15124
- line?:
15125
- | boolean
15126
- | (
15127
- | (
15128
- | {
15129
- pattern?: string
15130
- flags?: string
15131
- }
15132
- | string
15133
- )[]
15134
- | (
15135
- | {
15136
- pattern?: string
15137
- flags?: string
15138
- }
15139
- | string
15140
- )
15141
- )
15142
- }
15143
-
15144
- partitionByNewLine?: boolean
15145
-
15146
- newlinesBetween?: 'ignore' | 'always' | 'never'
15147
-
15148
- internalPattern?:
15149
- | (
15150
- | {
15151
- pattern?: string
15152
- flags?: string
15153
- }
15154
- | string
15155
- )[]
15156
- | (
15157
- | {
15158
- pattern?: string
15159
- flags?: string
15160
- }
15161
- | string
15162
- )
15163
-
15164
- groups?: (
15165
- | string
15166
- | string[]
15167
- | {
15168
- newlinesBetween?: 'ignore' | 'always' | 'never'
15169
- }
15170
- )[]
15171
- }
15172
- type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType =
15173
- | {
15174
- [k: string]: unknown | undefined
15175
- }
15176
- | _PerfectionistSortImports_IsLineLength
15177
- interface _PerfectionistSortImports_IsLineLength {
15178
- type: 'line-length'
15179
- [k: string]: unknown | undefined
15180
- }
15181
- // ----- perfectionist/sort-interfaces -----
15182
- type PerfectionistSortInterfaces = {
15183
- fallbackSort?: {
15184
- order?: 'asc' | 'desc'
15185
-
15186
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15187
- [k: string]: unknown | undefined
15188
- }
15189
-
15190
- specialCharacters?: 'remove' | 'trim' | 'keep'
15191
-
15192
- ignoreCase?: boolean
15193
-
15194
- alphabet?: string
15195
-
15196
- locales?: string | string[]
15197
-
15198
- order?: 'asc' | 'desc'
15294
+ order?: 'asc' | 'desc'
15199
15295
 
15200
15296
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15201
15297
  customGroups?:
@@ -15313,6 +15409,8 @@ type PerfectionistSortInterfaces = {
15313
15409
  sortBy?: 'name' | 'value'
15314
15410
  }
15315
15411
  )[]
15412
+
15413
+ groupKind?: 'mixed' | 'required-first' | 'optional-first'
15316
15414
  useConfigurationIf?: {
15317
15415
  allNamesMatchPattern?:
15318
15416
  | (
@@ -15347,8 +15445,6 @@ type PerfectionistSortInterfaces = {
15347
15445
  )
15348
15446
  }
15349
15447
 
15350
- groupKind?: 'mixed' | 'required-first' | 'optional-first'
15351
-
15352
15448
  partitionByComment?:
15353
15449
  | boolean
15354
15450
  | (
@@ -15549,6 +15645,117 @@ type PerfectionistSortJsxProps = {
15549
15645
  order?: 'asc' | 'desc'
15550
15646
 
15551
15647
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15648
+ customGroups?:
15649
+ | {
15650
+ [k: string]: (string | string[]) | undefined
15651
+ }
15652
+ | (
15653
+ | {
15654
+ newlinesInside?: 'always' | 'never'
15655
+
15656
+ fallbackSort?: {
15657
+ order?: 'asc' | 'desc'
15658
+
15659
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15660
+ [k: string]: unknown | undefined
15661
+ }
15662
+
15663
+ groupName?: string
15664
+
15665
+ order?: 'asc' | 'desc'
15666
+
15667
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15668
+ anyOf?: {
15669
+ modifiers?: ('shorthand' | 'multiline')[]
15670
+
15671
+ selector?: 'multiline' | 'prop' | 'shorthand'
15672
+
15673
+ elementValuePattern?:
15674
+ | (
15675
+ | {
15676
+ pattern?: string
15677
+ flags?: string
15678
+ }
15679
+ | string
15680
+ )[]
15681
+ | (
15682
+ | {
15683
+ pattern?: string
15684
+ flags?: string
15685
+ }
15686
+ | string
15687
+ )
15688
+
15689
+ elementNamePattern?:
15690
+ | (
15691
+ | {
15692
+ pattern?: string
15693
+ flags?: string
15694
+ }
15695
+ | string
15696
+ )[]
15697
+ | (
15698
+ | {
15699
+ pattern?: string
15700
+ flags?: string
15701
+ }
15702
+ | string
15703
+ )
15704
+ }[]
15705
+ }
15706
+ | {
15707
+ newlinesInside?: 'always' | 'never'
15708
+
15709
+ fallbackSort?: {
15710
+ order?: 'asc' | 'desc'
15711
+
15712
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15713
+ [k: string]: unknown | undefined
15714
+ }
15715
+
15716
+ groupName?: string
15717
+
15718
+ order?: 'asc' | 'desc'
15719
+
15720
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15721
+
15722
+ modifiers?: ('shorthand' | 'multiline')[]
15723
+
15724
+ selector?: 'multiline' | 'prop' | 'shorthand'
15725
+
15726
+ elementValuePattern?:
15727
+ | (
15728
+ | {
15729
+ pattern?: string
15730
+ flags?: string
15731
+ }
15732
+ | string
15733
+ )[]
15734
+ | (
15735
+ | {
15736
+ pattern?: string
15737
+ flags?: string
15738
+ }
15739
+ | string
15740
+ )
15741
+
15742
+ elementNamePattern?:
15743
+ | (
15744
+ | {
15745
+ pattern?: string
15746
+ flags?: string
15747
+ }
15748
+ | string
15749
+ )[]
15750
+ | (
15751
+ | {
15752
+ pattern?: string
15753
+ flags?: string
15754
+ }
15755
+ | string
15756
+ )
15757
+ }
15758
+ )[]
15552
15759
  useConfigurationIf?: {
15553
15760
  allNamesMatchPattern?:
15554
15761
  | (
@@ -15587,10 +15794,6 @@ type PerfectionistSortJsxProps = {
15587
15794
 
15588
15795
  newlinesBetween?: 'ignore' | 'always' | 'never'
15589
15796
 
15590
- customGroups?: {
15591
- [k: string]: (string | string[]) | undefined
15592
- }
15593
-
15594
15797
  ignorePattern?:
15595
15798
  | (
15596
15799
  | {
@@ -15979,24 +16182,218 @@ type PerfectionistSortModules =
15979
16182
  )
15980
16183
  }
15981
16184
 
15982
- partitionByNewLine?: boolean
16185
+ partitionByNewLine?: boolean
16186
+
16187
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16188
+
16189
+ groups?: (
16190
+ | string
16191
+ | string[]
16192
+ | {
16193
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16194
+ }
16195
+ )[]
16196
+ },
16197
+ ]
16198
+ // ----- perfectionist/sort-named-exports -----
16199
+ type PerfectionistSortNamedExports = {
16200
+ fallbackSort?: {
16201
+ order?: 'asc' | 'desc'
16202
+
16203
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16204
+ [k: string]: unknown | undefined
16205
+ }
16206
+
16207
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16208
+
16209
+ ignoreCase?: boolean
16210
+
16211
+ alphabet?: string
16212
+
16213
+ locales?: string | string[]
16214
+
16215
+ order?: 'asc' | 'desc'
16216
+
16217
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16218
+
16219
+ groupKind?: 'mixed' | 'values-first' | 'types-first'
16220
+
16221
+ ignoreAlias?: boolean
16222
+
16223
+ customGroups?: (
16224
+ | {
16225
+ newlinesInside?: 'always' | 'never'
16226
+
16227
+ fallbackSort?: {
16228
+ order?: 'asc' | 'desc'
16229
+
16230
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16231
+ [k: string]: unknown | undefined
16232
+ }
16233
+
16234
+ groupName?: string
16235
+
16236
+ order?: 'asc' | 'desc'
16237
+
16238
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16239
+ anyOf?: {
16240
+ modifiers?: ('value' | 'type')[]
16241
+
16242
+ selector?: 'export'
16243
+
16244
+ elementNamePattern?:
16245
+ | (
16246
+ | {
16247
+ pattern?: string
16248
+ flags?: string
16249
+ }
16250
+ | string
16251
+ )[]
16252
+ | (
16253
+ | {
16254
+ pattern?: string
16255
+ flags?: string
16256
+ }
16257
+ | string
16258
+ )
16259
+ }[]
16260
+ }
16261
+ | {
16262
+ newlinesInside?: 'always' | 'never'
16263
+
16264
+ fallbackSort?: {
16265
+ order?: 'asc' | 'desc'
16266
+
16267
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16268
+ [k: string]: unknown | undefined
16269
+ }
16270
+
16271
+ groupName?: string
16272
+
16273
+ order?: 'asc' | 'desc'
16274
+
16275
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16276
+
16277
+ modifiers?: ('value' | 'type')[]
16278
+
16279
+ selector?: 'export'
16280
+
16281
+ elementNamePattern?:
16282
+ | (
16283
+ | {
16284
+ pattern?: string
16285
+ flags?: string
16286
+ }
16287
+ | string
16288
+ )[]
16289
+ | (
16290
+ | {
16291
+ pattern?: string
16292
+ flags?: string
16293
+ }
16294
+ | string
16295
+ )
16296
+ }
16297
+ )[]
16298
+
16299
+ partitionByComment?:
16300
+ | boolean
16301
+ | (
16302
+ | (
16303
+ | {
16304
+ pattern?: string
16305
+ flags?: string
16306
+ }
16307
+ | string
16308
+ )[]
16309
+ | (
16310
+ | {
16311
+ pattern?: string
16312
+ flags?: string
16313
+ }
16314
+ | string
16315
+ )
16316
+ )
16317
+ | {
16318
+ block?:
16319
+ | boolean
16320
+ | (
16321
+ | (
16322
+ | {
16323
+ pattern?: string
16324
+ flags?: string
16325
+ }
16326
+ | string
16327
+ )[]
16328
+ | (
16329
+ | {
16330
+ pattern?: string
16331
+ flags?: string
16332
+ }
16333
+ | string
16334
+ )
16335
+ )
16336
+ line?:
16337
+ | boolean
16338
+ | (
16339
+ | (
16340
+ | {
16341
+ pattern?: string
16342
+ flags?: string
16343
+ }
16344
+ | string
16345
+ )[]
16346
+ | (
16347
+ | {
16348
+ pattern?: string
16349
+ flags?: string
16350
+ }
16351
+ | string
16352
+ )
16353
+ )
16354
+ }
16355
+
16356
+ partitionByNewLine?: boolean
16357
+
16358
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16359
+
16360
+ groups?: (
16361
+ | string
16362
+ | string[]
16363
+ | {
16364
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16365
+ }
16366
+ )[]
16367
+ }[]
16368
+ // ----- perfectionist/sort-named-imports -----
16369
+ type PerfectionistSortNamedImports = {
16370
+ fallbackSort?: {
16371
+ order?: 'asc' | 'desc'
16372
+
16373
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16374
+ [k: string]: unknown | undefined
16375
+ }
15983
16376
 
15984
- newlinesBetween?: 'ignore' | 'always' | 'never'
16377
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16378
+
16379
+ ignoreCase?: boolean
16380
+
16381
+ alphabet?: string
16382
+
16383
+ locales?: string | string[]
16384
+
16385
+ order?: 'asc' | 'desc'
16386
+
16387
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16388
+
16389
+ groupKind?: 'mixed' | 'values-first' | 'types-first'
16390
+
16391
+ ignoreAlias?: boolean
16392
+
16393
+ customGroups?: (
16394
+ | {
16395
+ newlinesInside?: 'always' | 'never'
15985
16396
 
15986
- groups?: (
15987
- | string
15988
- | string[]
15989
- | {
15990
- newlinesBetween?: 'ignore' | 'always' | 'never'
15991
- }
15992
- )[]
15993
- },
15994
- ]
15995
- // ----- perfectionist/sort-named-exports -----
15996
- type PerfectionistSortNamedExports =
15997
- | []
15998
- | [
15999
- {
16000
16397
  fallbackSort?: {
16001
16398
  order?: 'asc' | 'desc'
16002
16399
 
@@ -16004,23 +16401,91 @@ type PerfectionistSortNamedExports =
16004
16401
  [k: string]: unknown | undefined
16005
16402
  }
16006
16403
 
16007
- specialCharacters?: 'remove' | 'trim' | 'keep'
16404
+ groupName?: string
16008
16405
 
16009
- ignoreCase?: boolean
16406
+ order?: 'asc' | 'desc'
16010
16407
 
16011
- alphabet?: string
16408
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16409
+ anyOf?: {
16410
+ modifiers?: ('value' | 'type')[]
16012
16411
 
16013
- locales?: string | string[]
16412
+ selector?: 'import'
16413
+
16414
+ elementNamePattern?:
16415
+ | (
16416
+ | {
16417
+ pattern?: string
16418
+ flags?: string
16419
+ }
16420
+ | string
16421
+ )[]
16422
+ | (
16423
+ | {
16424
+ pattern?: string
16425
+ flags?: string
16426
+ }
16427
+ | string
16428
+ )
16429
+ }[]
16430
+ }
16431
+ | {
16432
+ newlinesInside?: 'always' | 'never'
16433
+
16434
+ fallbackSort?: {
16435
+ order?: 'asc' | 'desc'
16436
+
16437
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16438
+ [k: string]: unknown | undefined
16439
+ }
16440
+
16441
+ groupName?: string
16014
16442
 
16015
16443
  order?: 'asc' | 'desc'
16016
16444
 
16017
16445
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16018
16446
 
16019
- groupKind?: 'mixed' | 'values-first' | 'types-first'
16447
+ modifiers?: ('value' | 'type')[]
16020
16448
 
16021
- ignoreAlias?: boolean
16449
+ selector?: 'import'
16022
16450
 
16023
- partitionByComment?:
16451
+ elementNamePattern?:
16452
+ | (
16453
+ | {
16454
+ pattern?: string
16455
+ flags?: string
16456
+ }
16457
+ | string
16458
+ )[]
16459
+ | (
16460
+ | {
16461
+ pattern?: string
16462
+ flags?: string
16463
+ }
16464
+ | string
16465
+ )
16466
+ }
16467
+ )[]
16468
+
16469
+ partitionByComment?:
16470
+ | boolean
16471
+ | (
16472
+ | (
16473
+ | {
16474
+ pattern?: string
16475
+ flags?: string
16476
+ }
16477
+ | string
16478
+ )[]
16479
+ | (
16480
+ | {
16481
+ pattern?: string
16482
+ flags?: string
16483
+ }
16484
+ | string
16485
+ )
16486
+ )
16487
+ | {
16488
+ block?:
16024
16489
  | boolean
16025
16490
  | (
16026
16491
  | (
@@ -16038,77 +16503,7 @@ type PerfectionistSortNamedExports =
16038
16503
  | string
16039
16504
  )
16040
16505
  )
16041
- | {
16042
- block?:
16043
- | boolean
16044
- | (
16045
- | (
16046
- | {
16047
- pattern?: string
16048
- flags?: string
16049
- }
16050
- | string
16051
- )[]
16052
- | (
16053
- | {
16054
- pattern?: string
16055
- flags?: string
16056
- }
16057
- | string
16058
- )
16059
- )
16060
- line?:
16061
- | boolean
16062
- | (
16063
- | (
16064
- | {
16065
- pattern?: string
16066
- flags?: string
16067
- }
16068
- | string
16069
- )[]
16070
- | (
16071
- | {
16072
- pattern?: string
16073
- flags?: string
16074
- }
16075
- | string
16076
- )
16077
- )
16078
- }
16079
-
16080
- partitionByNewLine?: boolean
16081
- },
16082
- ]
16083
- // ----- perfectionist/sort-named-imports -----
16084
- type PerfectionistSortNamedImports =
16085
- | []
16086
- | [
16087
- {
16088
- fallbackSort?: {
16089
- order?: 'asc' | 'desc'
16090
-
16091
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16092
- [k: string]: unknown | undefined
16093
- }
16094
-
16095
- specialCharacters?: 'remove' | 'trim' | 'keep'
16096
-
16097
- ignoreCase?: boolean
16098
-
16099
- alphabet?: string
16100
-
16101
- locales?: string | string[]
16102
-
16103
- order?: 'asc' | 'desc'
16104
-
16105
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16106
-
16107
- groupKind?: 'mixed' | 'values-first' | 'types-first'
16108
-
16109
- ignoreAlias?: boolean
16110
-
16111
- partitionByComment?:
16506
+ line?:
16112
16507
  | boolean
16113
16508
  | (
16114
16509
  | (
@@ -16126,48 +16521,20 @@ type PerfectionistSortNamedImports =
16126
16521
  | string
16127
16522
  )
16128
16523
  )
16129
- | {
16130
- block?:
16131
- | boolean
16132
- | (
16133
- | (
16134
- | {
16135
- pattern?: string
16136
- flags?: string
16137
- }
16138
- | string
16139
- )[]
16140
- | (
16141
- | {
16142
- pattern?: string
16143
- flags?: string
16144
- }
16145
- | string
16146
- )
16147
- )
16148
- line?:
16149
- | boolean
16150
- | (
16151
- | (
16152
- | {
16153
- pattern?: string
16154
- flags?: string
16155
- }
16156
- | string
16157
- )[]
16158
- | (
16159
- | {
16160
- pattern?: string
16161
- flags?: string
16162
- }
16163
- | string
16164
- )
16165
- )
16166
- }
16524
+ }
16167
16525
 
16168
- partitionByNewLine?: boolean
16169
- },
16170
- ]
16526
+ partitionByNewLine?: boolean
16527
+
16528
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16529
+
16530
+ groups?: (
16531
+ | string
16532
+ | string[]
16533
+ | {
16534
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16535
+ }
16536
+ )[]
16537
+ }[]
16171
16538
  // ----- perfectionist/sort-object-types -----
16172
16539
  type PerfectionistSortObjectTypes = {
16173
16540
  fallbackSort?: {
@@ -16303,6 +16670,8 @@ type PerfectionistSortObjectTypes = {
16303
16670
  sortBy?: 'name' | 'value'
16304
16671
  }
16305
16672
  )[]
16673
+
16674
+ groupKind?: 'mixed' | 'required-first' | 'optional-first'
16306
16675
  useConfigurationIf?: {
16307
16676
  allNamesMatchPattern?:
16308
16677
  | (
@@ -16337,8 +16706,6 @@ type PerfectionistSortObjectTypes = {
16337
16706
  )
16338
16707
  }
16339
16708
 
16340
- groupKind?: 'mixed' | 'required-first' | 'optional-first'
16341
-
16342
16709
  partitionByComment?:
16343
16710
  | boolean
16344
16711
  | (
@@ -17908,6 +18275,7 @@ type SvelteNoUnusedProps =
17908
18275
  checkImportedTypes?: boolean
17909
18276
  ignoreTypePatterns?: string[]
17910
18277
  ignorePropertyPatterns?: string[]
18278
+ allowUnusedNestedProperties?: boolean
17911
18279
  },
17912
18280
  ]
17913
18281
  // ----- svelte/no-useless-mustaches -----
@@ -21562,6 +21930,8 @@ type TsNoUnnecessaryTypeAssertion =
21562
21930
  | []
21563
21931
  | [
21564
21932
  {
21933
+ checkLiteralConstAssertions?: boolean
21934
+
21565
21935
  typesToIgnore?: string[]
21566
21936
  },
21567
21937
  ]
@@ -21574,6 +21944,7 @@ type TsNoUnusedExpressions =
21574
21944
  allowTernary?: boolean
21575
21945
  allowTaggedTemplates?: boolean
21576
21946
  enforceForJSX?: boolean
21947
+ ignoreDirectives?: boolean
21577
21948
  },
21578
21949
  ]
21579
21950
  // ----- ts/no-unused-vars -----
@@ -21655,6 +22026,8 @@ type TsOnlyThrowError =
21655
22026
  }
21656
22027
  )[]
21657
22028
 
22029
+ allowRethrowing?: boolean
22030
+
21658
22031
  allowThrowingAny?: boolean
21659
22032
 
21660
22033
  allowThrowingUnknown?: boolean
@@ -21740,6 +22113,8 @@ type TsPreferNullishCoalescing =
21740
22113
 
21741
22114
  ignoreConditionalTests?: boolean
21742
22115
 
22116
+ ignoreIfStatements?: boolean
22117
+
21743
22118
  ignoreMixedLogicalExpressions?: boolean
21744
22119
 
21745
22120
  ignorePrimitives?:
@@ -22130,14 +22505,6 @@ interface _UnicornImportStyle_ModuleStyles {
22130
22505
  interface _UnicornImportStyle_BooleanObject {
22131
22506
  [k: string]: boolean | undefined
22132
22507
  }
22133
- // ----- unicorn/no-array-push-push -----
22134
- type UnicornNoArrayPushPush =
22135
- | []
22136
- | [
22137
- {
22138
- ignore?: unknown[]
22139
- },
22140
- ]
22141
22508
  // ----- unicorn/no-array-reduce -----
22142
22509
  type UnicornNoArrayReduce =
22143
22510
  | []
@@ -22299,6 +22666,14 @@ type UnicornPreferObjectFromEntries =
22299
22666
  functions?: unknown[]
22300
22667
  },
22301
22668
  ]
22669
+ // ----- unicorn/prefer-single-call -----
22670
+ type UnicornPreferSingleCall =
22671
+ | []
22672
+ | [
22673
+ {
22674
+ ignore?: unknown[]
22675
+ },
22676
+ ]
22302
22677
  // ----- unicorn/prefer-structured-clone -----
22303
22678
  type UnicornPreferStructuredClone =
22304
22679
  | []
@@ -22504,6 +22879,7 @@ type YamlIndent =
22504
22879
  {
22505
22880
  indentBlockSequences?: boolean
22506
22881
  indicatorValueIndent?: number
22882
+ alignMultilineFlowScalars?: boolean
22507
22883
  },
22508
22884
  ]
22509
22885
  // ----- yaml/key-name-casing -----