@jsse/eslint-config 0.9.1 → 0.9.2

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.
@@ -1,7 +1,59 @@
1
1
  import { ParserOptions } from "@typescript-eslint/parser";
2
2
  import { Linter } from "eslint";
3
- import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
4
3
 
4
+ //#region node_modules/.pnpm/eslint-config-flat-gitignore@2.3.0_eslint@10.6.0_jiti@2.7.0_/node_modules/eslint-config-flat-gitignore/dist/index.d.mts
5
+ interface FlatGitignoreOptions {
6
+ /**
7
+ * Name of the configuration.
8
+ * @default 'gitignore'
9
+ */
10
+ name?: string;
11
+ /**
12
+ * Path to `.gitignore` files, or files with compatible formats like `.eslintignore`.
13
+ * @default ['.gitignore'] // or findUpSync('.gitignore')
14
+ */
15
+ files?: string | string[];
16
+ /**
17
+ * Path to `.gitmodules` file.
18
+ * @default ['.gitmodules'] // or findUpSync('.gitmodules')
19
+ */
20
+ filesGitModules?: string | string[];
21
+ /**
22
+ * Throw an error if gitignore file not found.
23
+ * @default true
24
+ */
25
+ strict?: boolean;
26
+ /**
27
+ * Mark the current working directory as the root directory,
28
+ * disable searching for `.gitignore` files in parent directories.
29
+ *
30
+ * This option is not effective when `files` is explicitly specified.
31
+ * @default false
32
+ */
33
+ root?: boolean;
34
+ /**
35
+ * Current working directory.
36
+ * Used to resolve relative paths.
37
+ * @default process.cwd()
38
+ */
39
+ cwd?: string;
40
+ /**
41
+ * Also include recursive `.gitignore` files under `cwd`.
42
+ *
43
+ * This option is useful for monorepos or projects that keep
44
+ * per-folder `.gitignore` files.
45
+ *
46
+ * Pass `{ skipDirs: ['name'] }` to skip directory names while
47
+ * scanning recursively. `skipDirs` matches by directory name at
48
+ * any depth (not by path), and is applied in addition to `.git`
49
+ * and `node_modules`.
50
+ * @default false
51
+ */
52
+ recursive?: boolean | {
53
+ skipDirs: string[];
54
+ };
55
+ }
56
+ //#endregion
5
57
  //#region src/_generated/dts/builtins.d.ts
6
58
  interface BuiltinsRuleOptions {
7
59
  /**
@@ -3864,152 +3916,6 @@ interface EslintReactRuleOptions {
3864
3916
  * @see https://eslint-react.xyz/docs/rules/use-state
3865
3917
  */
3866
3918
  "@eslint-react/x-use-state"?: Linter.RuleEntry<EslintReactXUseState>;
3867
- /**
3868
- * Validates against calling capitalized functions/methods instead of using JSX
3869
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/capitalized-calls
3870
- */
3871
- "react-hooks/capitalized-calls"?: Linter.RuleEntry<ReactHooksCapitalizedCalls$1>;
3872
- /**
3873
- * Deprecated: this rule has been removed in 7.1.0.
3874
- * @deprecated
3875
- */
3876
- "react-hooks/component-hook-factories"?: Linter.RuleEntry<[]>;
3877
- /**
3878
- * Validates the compiler configuration options
3879
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/config
3880
- */
3881
- "react-hooks/config"?: Linter.RuleEntry<ReactHooksConfig$1>;
3882
- /**
3883
- * Validates usage of error boundaries instead of try/catch for errors in child components
3884
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries
3885
- */
3886
- "react-hooks/error-boundaries"?: Linter.RuleEntry<ReactHooksErrorBoundaries$1>;
3887
- /**
3888
- * verifies the list of dependencies for Hooks like useEffect and similar
3889
- * @see https://github.com/facebook/react/issues/14920
3890
- */
3891
- "react-hooks/exhaustive-deps"?: Linter.RuleEntry<ReactHooksExhaustiveDeps$1>;
3892
- /**
3893
- * Validates that effect dependencies are exhaustive and without extraneous values
3894
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-effect-dependencies
3895
- */
3896
- "react-hooks/exhaustive-effect-dependencies"?: Linter.RuleEntry<ReactHooksExhaustiveEffectDependencies$1>;
3897
- /**
3898
- * Validates usage of fbt
3899
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/fbt
3900
- */
3901
- "react-hooks/fbt"?: Linter.RuleEntry<ReactHooksFbt$1>;
3902
- /**
3903
- * Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
3904
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/gating
3905
- */
3906
- "react-hooks/gating"?: Linter.RuleEntry<ReactHooksGating$1>;
3907
- /**
3908
- * Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
3909
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/globals
3910
- */
3911
- "react-hooks/globals"?: Linter.RuleEntry<ReactHooksGlobals$1>;
3912
- /**
3913
- * Validates the rules of hooks
3914
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/hooks
3915
- */
3916
- "react-hooks/hooks"?: Linter.RuleEntry<ReactHooksHooks$1>;
3917
- /**
3918
- * Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
3919
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
3920
- */
3921
- "react-hooks/immutability"?: Linter.RuleEntry<ReactHooksImmutability$1>;
3922
- /**
3923
- * Validates against usage of libraries which are incompatible with memoization (manual or automatic)
3924
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library
3925
- */
3926
- "react-hooks/incompatible-library"?: Linter.RuleEntry<ReactHooksIncompatibleLibrary$1>;
3927
- /**
3928
- * Internal invariants
3929
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/invariant
3930
- */
3931
- "react-hooks/invariant"?: Linter.RuleEntry<ReactHooksInvariant$1>;
3932
- /**
3933
- * Validates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
3934
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memo-dependencies
3935
- */
3936
- "react-hooks/memo-dependencies"?: Linter.RuleEntry<ReactHooksMemoDependencies$1>;
3937
- /**
3938
- * Validates that effect dependencies are memoized
3939
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/memoized-effect-dependencies
3940
- */
3941
- "react-hooks/memoized-effect-dependencies"?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies$1>;
3942
- /**
3943
- * Validates against deriving values from state in an effect
3944
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/no-deriving-state-in-effects
3945
- */
3946
- "react-hooks/no-deriving-state-in-effects"?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects$1>;
3947
- /**
3948
- * Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
3949
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization
3950
- */
3951
- "react-hooks/preserve-manual-memoization"?: Linter.RuleEntry<ReactHooksPreserveManualMemoization$1>;
3952
- /**
3953
- * Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
3954
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
3955
- */
3956
- "react-hooks/purity"?: Linter.RuleEntry<ReactHooksPurity$1>;
3957
- /**
3958
- * Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
3959
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
3960
- */
3961
- "react-hooks/refs"?: Linter.RuleEntry<ReactHooksRefs$1>;
3962
- /**
3963
- * Validates against suppression of other rules
3964
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/rule-suppression
3965
- */
3966
- "react-hooks/rule-suppression"?: Linter.RuleEntry<ReactHooksRuleSuppression$1>;
3967
- /**
3968
- * enforces the Rules of Hooks
3969
- * @see https://react.dev/reference/rules/rules-of-hooks
3970
- */
3971
- "react-hooks/rules-of-hooks"?: Linter.RuleEntry<ReactHooksRulesOfHooks$1>;
3972
- /**
3973
- * Validates against calling setState synchronously in an effect. This can indicate non-local derived data, a derived event pattern, or improper external data synchronization.
3974
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
3975
- */
3976
- "react-hooks/set-state-in-effect"?: Linter.RuleEntry<ReactHooksSetStateInEffect$1>;
3977
- /**
3978
- * Validates against setting state during render, which can trigger additional renders and potential infinite render loops
3979
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render
3980
- */
3981
- "react-hooks/set-state-in-render"?: Linter.RuleEntry<ReactHooksSetStateInRender$1>;
3982
- /**
3983
- * Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
3984
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
3985
- */
3986
- "react-hooks/static-components"?: Linter.RuleEntry<ReactHooksStaticComponents$1>;
3987
- /**
3988
- * Validates against invalid syntax
3989
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/syntax
3990
- */
3991
- "react-hooks/syntax"?: Linter.RuleEntry<ReactHooksSyntax$1>;
3992
- /**
3993
- * Unimplemented features
3994
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/todo
3995
- */
3996
- "react-hooks/todo"?: Linter.RuleEntry<ReactHooksTodo$1>;
3997
- /**
3998
- * Validates against syntax that we do not plan to support in React Compiler
3999
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax
4000
- */
4001
- "react-hooks/unsupported-syntax"?: Linter.RuleEntry<ReactHooksUnsupportedSyntax$1>;
4002
- /**
4003
- * Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
4004
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo
4005
- */
4006
- "react-hooks/use-memo"?: Linter.RuleEntry<ReactHooksUseMemo$1>;
4007
- /**
4008
- * Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
4009
- * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/void-use-memo
4010
- */
4011
- "react-hooks/void-use-memo"?: Linter.RuleEntry<ReactHooksVoidUseMemo$1>;
4012
- "react-refresh/only-export-components"?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
4013
3919
  }
4014
3920
  /* ======= Declarations ======= */
4015
3921
  // ----- @eslint-react/dom-no-unknown-property -----
@@ -4054,99 +3960,6 @@ type EslintReactXUseState = [] | [{
4054
3960
  enforceAssignment?: boolean;
4055
3961
  enforceLazyInitialization?: boolean;
4056
3962
  enforceSetterName?: boolean;
4057
- }]; // ----- react-hooks/capitalized-calls -----
4058
- type ReactHooksCapitalizedCalls$1 = [] | [{
4059
- [k: string]: unknown | undefined;
4060
- }]; // ----- react-hooks/config -----
4061
- type ReactHooksConfig$1 = [] | [{
4062
- [k: string]: unknown | undefined;
4063
- }]; // ----- react-hooks/error-boundaries -----
4064
- type ReactHooksErrorBoundaries$1 = [] | [{
4065
- [k: string]: unknown | undefined;
4066
- }]; // ----- react-hooks/exhaustive-deps -----
4067
- type ReactHooksExhaustiveDeps$1 = [] | [{
4068
- additionalHooks?: string;
4069
- enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
4070
- experimental_autoDependenciesHooks?: string[];
4071
- requireExplicitEffectDeps?: boolean;
4072
- }]; // ----- react-hooks/exhaustive-effect-dependencies -----
4073
- type ReactHooksExhaustiveEffectDependencies$1 = [] | [{
4074
- [k: string]: unknown | undefined;
4075
- }]; // ----- react-hooks/fbt -----
4076
- type ReactHooksFbt$1 = [] | [{
4077
- [k: string]: unknown | undefined;
4078
- }]; // ----- react-hooks/gating -----
4079
- type ReactHooksGating$1 = [] | [{
4080
- [k: string]: unknown | undefined;
4081
- }]; // ----- react-hooks/globals -----
4082
- type ReactHooksGlobals$1 = [] | [{
4083
- [k: string]: unknown | undefined;
4084
- }]; // ----- react-hooks/hooks -----
4085
- type ReactHooksHooks$1 = [] | [{
4086
- [k: string]: unknown | undefined;
4087
- }]; // ----- react-hooks/immutability -----
4088
- type ReactHooksImmutability$1 = [] | [{
4089
- [k: string]: unknown | undefined;
4090
- }]; // ----- react-hooks/incompatible-library -----
4091
- type ReactHooksIncompatibleLibrary$1 = [] | [{
4092
- [k: string]: unknown | undefined;
4093
- }]; // ----- react-hooks/invariant -----
4094
- type ReactHooksInvariant$1 = [] | [{
4095
- [k: string]: unknown | undefined;
4096
- }]; // ----- react-hooks/memo-dependencies -----
4097
- type ReactHooksMemoDependencies$1 = [] | [{
4098
- [k: string]: unknown | undefined;
4099
- }]; // ----- react-hooks/memoized-effect-dependencies -----
4100
- type ReactHooksMemoizedEffectDependencies$1 = [] | [{
4101
- [k: string]: unknown | undefined;
4102
- }]; // ----- react-hooks/no-deriving-state-in-effects -----
4103
- type ReactHooksNoDerivingStateInEffects$1 = [] | [{
4104
- [k: string]: unknown | undefined;
4105
- }]; // ----- react-hooks/preserve-manual-memoization -----
4106
- type ReactHooksPreserveManualMemoization$1 = [] | [{
4107
- [k: string]: unknown | undefined;
4108
- }]; // ----- react-hooks/purity -----
4109
- type ReactHooksPurity$1 = [] | [{
4110
- [k: string]: unknown | undefined;
4111
- }]; // ----- react-hooks/refs -----
4112
- type ReactHooksRefs$1 = [] | [{
4113
- [k: string]: unknown | undefined;
4114
- }]; // ----- react-hooks/rule-suppression -----
4115
- type ReactHooksRuleSuppression$1 = [] | [{
4116
- [k: string]: unknown | undefined;
4117
- }]; // ----- react-hooks/rules-of-hooks -----
4118
- type ReactHooksRulesOfHooks$1 = [] | [{
4119
- additionalHooks?: string;
4120
- }]; // ----- react-hooks/set-state-in-effect -----
4121
- type ReactHooksSetStateInEffect$1 = [] | [{
4122
- [k: string]: unknown | undefined;
4123
- }]; // ----- react-hooks/set-state-in-render -----
4124
- type ReactHooksSetStateInRender$1 = [] | [{
4125
- [k: string]: unknown | undefined;
4126
- }]; // ----- react-hooks/static-components -----
4127
- type ReactHooksStaticComponents$1 = [] | [{
4128
- [k: string]: unknown | undefined;
4129
- }]; // ----- react-hooks/syntax -----
4130
- type ReactHooksSyntax$1 = [] | [{
4131
- [k: string]: unknown | undefined;
4132
- }]; // ----- react-hooks/todo -----
4133
- type ReactHooksTodo$1 = [] | [{
4134
- [k: string]: unknown | undefined;
4135
- }]; // ----- react-hooks/unsupported-syntax -----
4136
- type ReactHooksUnsupportedSyntax$1 = [] | [{
4137
- [k: string]: unknown | undefined;
4138
- }]; // ----- react-hooks/use-memo -----
4139
- type ReactHooksUseMemo$1 = [] | [{
4140
- [k: string]: unknown | undefined;
4141
- }]; // ----- react-hooks/void-use-memo -----
4142
- type ReactHooksVoidUseMemo$1 = [] | [{
4143
- [k: string]: unknown | undefined;
4144
- }]; // ----- react-refresh/only-export-components -----
4145
- type ReactRefreshOnlyExportComponents = [] | [{
4146
- extraHOCs?: string[];
4147
- allowExportNames?: string[];
4148
- allowConstantExport?: boolean;
4149
- checkJS?: boolean;
4150
3963
  }];
4151
3964
  //#endregion
4152
3965
  //#region src/_generated/dts/ignores.d.ts
@@ -5542,11 +5355,13 @@ type JsoncSortArrayValues = [{
5542
5355
  type?: "asc" | "desc";
5543
5356
  caseSensitive?: boolean;
5544
5357
  natural?: boolean;
5358
+ key?: string;
5545
5359
  };
5546
5360
  })[] | {
5547
5361
  type?: "asc" | "desc";
5548
5362
  caseSensitive?: boolean;
5549
5363
  natural?: boolean;
5364
+ key?: string;
5550
5365
  };
5551
5366
  minValues?: number;
5552
5367
  }, ...{
@@ -5557,11 +5372,13 @@ type JsoncSortArrayValues = [{
5557
5372
  type?: "asc" | "desc";
5558
5373
  caseSensitive?: boolean;
5559
5374
  natural?: boolean;
5375
+ key?: string;
5560
5376
  };
5561
5377
  })[] | {
5562
5378
  type?: "asc" | "desc";
5563
5379
  caseSensitive?: boolean;
5564
5380
  natural?: boolean;
5381
+ key?: string;
5565
5382
  };
5566
5383
  minValues?: number;
5567
5384
  }[]]; // ----- jsonc/sort-keys -----
@@ -6928,7 +6745,7 @@ type PerfectionistSortArrayIncludes = {
6928
6745
  };
6929
6746
  partitionByNewLine?: boolean;
6930
6747
  }[]; // ----- perfectionist/sort-arrays -----
6931
- type PerfectionistSortArrays = {
6748
+ type PerfectionistSortArrays = [{
6932
6749
  fallbackSort?: {
6933
6750
  type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6934
6751
  order?: "asc" | "desc";
@@ -7033,7 +6850,112 @@ type PerfectionistSortArrays = {
7033
6850
  } | string));
7034
6851
  };
7035
6852
  partitionByNewLine?: boolean;
7036
- }[]; // ----- perfectionist/sort-classes -----
6853
+ }, ...{
6854
+ fallbackSort?: {
6855
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6856
+ order?: "asc" | "desc";
6857
+ };
6858
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6859
+ specialCharacters?: "remove" | "trim" | "keep";
6860
+ ignoreCase?: boolean;
6861
+ alphabet?: string;
6862
+ locales?: string | string[];
6863
+ order?: "asc" | "desc";
6864
+ customGroups?: ({
6865
+ fallbackSort?: {
6866
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6867
+ order?: "asc" | "desc";
6868
+ };
6869
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6870
+ groupName: string;
6871
+ newlinesInside?: "ignore" | number;
6872
+ order?: "asc" | "desc";
6873
+ anyOf: [{
6874
+ elementNamePattern?: ({
6875
+ pattern: string;
6876
+ flags?: string;
6877
+ } | string)[] | ({
6878
+ pattern: string;
6879
+ flags?: string;
6880
+ } | string);
6881
+ selector?: "literal";
6882
+ }, ...{
6883
+ elementNamePattern?: ({
6884
+ pattern: string;
6885
+ flags?: string;
6886
+ } | string)[] | ({
6887
+ pattern: string;
6888
+ flags?: string;
6889
+ } | string);
6890
+ selector?: "literal";
6891
+ }[]];
6892
+ } | {
6893
+ fallbackSort?: {
6894
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6895
+ order?: "asc" | "desc";
6896
+ };
6897
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6898
+ groupName: string;
6899
+ newlinesInside?: "ignore" | number;
6900
+ order?: "asc" | "desc";
6901
+ elementNamePattern?: ({
6902
+ pattern: string;
6903
+ flags?: string;
6904
+ } | string)[] | ({
6905
+ pattern: string;
6906
+ flags?: string;
6907
+ } | string);
6908
+ selector?: "literal";
6909
+ })[];
6910
+ newlinesInside?: ("ignore" | number) | "newlinesBetween";
6911
+ groups?: (string | [string, ...string[]] | {
6912
+ newlinesBetween: "ignore" | number;
6913
+ } | {
6914
+ group: string | [string, ...string[]];
6915
+ fallbackSort?: {
6916
+ type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6917
+ order?: "asc" | "desc";
6918
+ };
6919
+ commentAbove?: string;
6920
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
6921
+ newlinesInside?: "ignore" | number;
6922
+ order?: "asc" | "desc";
6923
+ })[];
6924
+ newlinesBetween?: "ignore" | number;
6925
+ useConfigurationIf: {
6926
+ allNamesMatchPattern?: ({
6927
+ pattern: string;
6928
+ flags?: string;
6929
+ } | string)[] | ({
6930
+ pattern: string;
6931
+ flags?: string;
6932
+ } | string);
6933
+ matchesAstSelector?: string;
6934
+ };
6935
+ partitionByComment?: boolean | (({
6936
+ pattern: string;
6937
+ flags?: string;
6938
+ } | string)[] | ({
6939
+ pattern: string;
6940
+ flags?: string;
6941
+ } | string)) | {
6942
+ block?: boolean | (({
6943
+ pattern: string;
6944
+ flags?: string;
6945
+ } | string)[] | ({
6946
+ pattern: string;
6947
+ flags?: string;
6948
+ } | string));
6949
+ line?: boolean | (({
6950
+ pattern: string;
6951
+ flags?: string;
6952
+ } | string)[] | ({
6953
+ pattern: string;
6954
+ flags?: string;
6955
+ } | string));
6956
+ };
6957
+ partitionByNewLine?: boolean;
6958
+ }[]]; // ----- perfectionist/sort-classes -----
7037
6959
  type PerfectionistSortClasses = {
7038
6960
  fallbackSort?: {
7039
6961
  type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
@@ -7382,6 +7304,7 @@ type PerfectionistSortEnums = {
7382
7304
  order?: "asc" | "desc";
7383
7305
  })[];
7384
7306
  newlinesBetween?: "ignore" | number;
7307
+ sortByValue?: "always" | "ifNumericEnum" | "never";
7385
7308
  useConfigurationIf?: {
7386
7309
  allNamesMatchPattern?: ({
7387
7310
  pattern: string;
@@ -7392,7 +7315,6 @@ type PerfectionistSortEnums = {
7392
7315
  } | string);
7393
7316
  matchesAstSelector?: string;
7394
7317
  };
7395
- sortByValue?: "always" | "ifNumericEnum" | "never";
7396
7318
  useExperimentalDependencyDetection?: boolean;
7397
7319
  partitionByComment?: boolean | (({
7398
7320
  pattern: string;
@@ -8210,6 +8132,7 @@ type PerfectionistSortIntersectionTypes = {
8210
8132
  } | string));
8211
8133
  };
8212
8134
  partitionByNewLine?: boolean;
8135
+ ignoreCallableTypes?: boolean;
8213
8136
  }[]; // ----- perfectionist/sort-jsx-props -----
8214
8137
  type PerfectionistSortJsxProps = {
8215
8138
  fallbackSort?: {
@@ -9743,6 +9666,19 @@ type ReactHooksVoidUseMemo = [] | [{
9743
9666
  [k: string]: unknown | undefined;
9744
9667
  }];
9745
9668
  //#endregion
9669
+ //#region src/_generated/dts/react-refresh.d.ts
9670
+ interface ReactRefreshRuleOptions {
9671
+ "react-refresh/only-export-components"?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
9672
+ }
9673
+ /* ======= Declarations ======= */
9674
+ // ----- react-refresh/only-export-components -----
9675
+ type ReactRefreshOnlyExportComponents = [] | [{
9676
+ extraHOCs?: string[];
9677
+ allowExportNames?: string[];
9678
+ allowConstantExport?: boolean;
9679
+ checkJS?: boolean;
9680
+ }];
9681
+ //#endregion
9746
9682
  //#region src/_generated/dts/regexp.d.ts
9747
9683
  interface RegexpRuleOptions {
9748
9684
  /**
@@ -13808,1670 +13744,1670 @@ type ImportPreferDefaultExport = [] | [{
13808
13744
  interface UnicornRuleOptions {
13809
13745
  /**
13810
13746
  * Prefer better DOM traversal APIs.
13811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/better-dom-traversing.md
13747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/better-dom-traversing.md
13812
13748
  */
13813
13749
  "unicorn/better-dom-traversing"?: Linter.RuleEntry<[]>;
13814
13750
  /**
13815
13751
  * Removed. Prefer `eslint-plugin-regexp`
13816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#better-regex
13752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#better-regex
13817
13753
  * @deprecated
13818
13754
  */
13819
13755
  "unicorn/better-regex"?: Linter.RuleEntry<[]>;
13820
13756
  /**
13821
13757
  * Enforce a specific parameter name in catch clauses.
13822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/catch-error-name.md
13758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/catch-error-name.md
13823
13759
  */
13824
13760
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
13825
13761
  /**
13826
13762
  * Enforce consistent class references in static methods.
13827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/class-reference-in-static-methods.md
13763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/class-reference-in-static-methods.md
13828
13764
  */
13829
13765
  "unicorn/class-reference-in-static-methods"?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
13830
13766
  /**
13831
13767
  * Enforce better comment content.
13832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/comment-content.md
13768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/comment-content.md
13833
13769
  */
13834
13770
  "unicorn/comment-content"?: Linter.RuleEntry<UnicornCommentContent>;
13835
13771
  /**
13836
13772
  * Enforce consistent assertion style with `node:assert`.
13837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-assert.md
13773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-assert.md
13838
13774
  */
13839
13775
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
13840
13776
  /**
13841
13777
  * Enforce consistent naming for boolean names.
13842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-boolean-name.md
13778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-boolean-name.md
13843
13779
  */
13844
13780
  "unicorn/consistent-boolean-name"?: Linter.RuleEntry<UnicornConsistentBooleanName>;
13845
13781
  /**
13846
13782
  * Enforce consistent class member order.
13847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-class-member-order.md
13783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-class-member-order.md
13848
13784
  */
13849
13785
  "unicorn/consistent-class-member-order"?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
13850
13786
  /**
13851
13787
  * Enforce consistent spelling of compound words in identifiers.
13852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-compound-words.md
13788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-compound-words.md
13853
13789
  */
13854
13790
  "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
13855
13791
  /**
13856
13792
  * Enforce consistent conditional object spread style.
13857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-conditional-object-spread.md
13793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-conditional-object-spread.md
13858
13794
  */
13859
13795
  "unicorn/consistent-conditional-object-spread"?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
13860
13796
  /**
13861
13797
  * Prefer passing `Date` directly to the constructor when cloning.
13862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-date-clone.md
13798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-date-clone.md
13863
13799
  */
13864
13800
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
13865
13801
  /**
13866
13802
  * Use destructured variables over properties.
13867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-destructuring.md
13803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-destructuring.md
13868
13804
  */
13869
13805
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
13870
13806
  /**
13871
13807
  * Prefer consistent types when spreading a ternary in an array literal.
13872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-empty-array-spread.md
13808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-empty-array-spread.md
13873
13809
  */
13874
13810
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
13875
13811
  /**
13876
13812
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
13877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-existence-index-check.md
13813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-existence-index-check.md
13878
13814
  */
13879
13815
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
13880
13816
  /**
13881
13817
  * Enforce consistent decorator position on exported classes.
13882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-export-decorator-position.md
13818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-export-decorator-position.md
13883
13819
  */
13884
13820
  "unicorn/consistent-export-decorator-position"?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
13885
13821
  /**
13886
13822
  * Move function definitions to the highest possible scope.
13887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-scoping.md
13823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-scoping.md
13888
13824
  */
13889
13825
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
13890
13826
  /**
13891
13827
  * Enforce function syntax by role.
13892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-style.md
13828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-style.md
13893
13829
  */
13894
13830
  "unicorn/consistent-function-style"?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
13895
13831
  /**
13896
13832
  * Enforce consistent JSON file reads before `JSON.parse()`.
13897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-json-file-read.md
13833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-json-file-read.md
13898
13834
  */
13899
13835
  "unicorn/consistent-json-file-read"?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
13900
13836
  /**
13901
13837
  * Enforce consistent optional chaining for same-base member access.
13902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-optional-chaining.md
13838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-optional-chaining.md
13903
13839
  */
13904
13840
  "unicorn/consistent-optional-chaining"?: Linter.RuleEntry<[]>;
13905
13841
  /**
13906
13842
  * Enforce consistent style for escaping `${` in template literals.
13907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-template-literal-escape.md
13843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-template-literal-escape.md
13908
13844
  */
13909
13845
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
13910
13846
  /**
13911
13847
  * Enforce consistent labels on tuple type elements.
13912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-tuple-labels.md
13848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-tuple-labels.md
13913
13849
  */
13914
13850
  "unicorn/consistent-tuple-labels"?: Linter.RuleEntry<[]>;
13915
13851
  /**
13916
13852
  * Enforce correct `Error` subclassing.
13917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/custom-error-definition.md
13853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/custom-error-definition.md
13918
13854
  */
13919
13855
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
13920
13856
  /**
13921
13857
  * Enforce consistent default export declarations.
13922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/default-export-style.md
13858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/default-export-style.md
13923
13859
  */
13924
13860
  "unicorn/default-export-style"?: Linter.RuleEntry<UnicornDefaultExportStyle>;
13925
13861
  /**
13926
13862
  * Enforce consistent style for DOM element dataset access.
13927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/dom-node-dataset.md
13863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/dom-node-dataset.md
13928
13864
  */
13929
13865
  "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
13930
13866
  /**
13931
13867
  * Enforce no spaces between braces.
13932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/empty-brace-spaces.md
13868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/empty-brace-spaces.md
13933
13869
  */
13934
13870
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
13935
13871
  /**
13936
13872
  * Enforce passing a `message` value when creating a built-in error.
13937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/error-message.md
13873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/error-message.md
13938
13874
  */
13939
13875
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
13940
13876
  /**
13941
13877
  * Require escape sequences to use uppercase or lowercase values.
13942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/escape-case.md
13878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/escape-case.md
13943
13879
  */
13944
13880
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
13945
13881
  /**
13946
13882
  * Add expiration conditions to TODO comments.
13947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/expiring-todo-comments.md
13883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/expiring-todo-comments.md
13948
13884
  */
13949
13885
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
13950
13886
  /**
13951
13887
  * Enforce explicitly comparing the `length` or `size` property of a value.
13952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-length-check.md
13888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-length-check.md
13953
13889
  */
13954
13890
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
13955
13891
  /**
13956
13892
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
13957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-timer-delay.md
13893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-timer-delay.md
13958
13894
  */
13959
13895
  "unicorn/explicit-timer-delay"?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
13960
13896
  /**
13961
13897
  * Enforce a case style for filenames and directory names.
13962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/filename-case.md
13898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/filename-case.md
13963
13899
  */
13964
13900
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
13965
13901
  /**
13966
13902
  * Require identifiers to match a specified regular expression.
13967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/id-match.md
13903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/id-match.md
13968
13904
  */
13969
13905
  "unicorn/id-match"?: Linter.RuleEntry<UnicornIdMatch>;
13970
13906
  /**
13971
13907
  * Enforce specific import styles per module.
13972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/import-style.md
13908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/import-style.md
13973
13909
  */
13974
13910
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
13975
13911
  /**
13976
13912
  * Prevent usage of variables from outside the scope of isolated functions.
13977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/isolated-functions.md
13913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/isolated-functions.md
13978
13914
  */
13979
13915
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
13980
13916
  /**
13981
13917
  * Require or disallow logical assignment operator shorthand
13982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/logical-assignment-operators.md
13918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/logical-assignment-operators.md
13983
13919
  */
13984
13920
  "unicorn/logical-assignment-operators"?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
13985
13921
  /**
13986
13922
  * Limit the depth of nested calls.
13987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/max-nested-calls.md
13923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/max-nested-calls.md
13988
13924
  */
13989
13925
  "unicorn/max-nested-calls"?: Linter.RuleEntry<UnicornMaxNestedCalls>;
13990
13926
  /**
13991
13927
  * Enforce replacements for variable, property, and filenames.
13992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/name-replacements.md
13928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/name-replacements.md
13993
13929
  */
13994
13930
  "unicorn/name-replacements"?: Linter.RuleEntry<UnicornNameReplacements>;
13995
13931
  /**
13996
13932
  * Enforce correct use of `new` for builtin constructors.
13997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/new-for-builtins.md
13933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/new-for-builtins.md
13998
13934
  */
13999
13935
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
14000
13936
  /**
14001
13937
  * Enforce specifying rules to disable in `eslint-disable` comments.
14002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-abusive-eslint-disable.md
13938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-abusive-eslint-disable.md
14003
13939
  */
14004
13940
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
14005
13941
  /**
14006
13942
  * Disallow recursive access to `this` within getters and setters.
14007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accessor-recursion.md
13943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accessor-recursion.md
14008
13944
  */
14009
13945
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
14010
13946
  /**
14011
13947
  * Disallow bitwise operators where a logical operator was likely intended.
14012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accidental-bitwise-operator.md
13948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accidental-bitwise-operator.md
14013
13949
  */
14014
13950
  "unicorn/no-accidental-bitwise-operator"?: Linter.RuleEntry<[]>;
14015
13951
  /**
14016
13952
  * Disallow anonymous functions and classes as the default export.
14017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-anonymous-default-export.md
13953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-anonymous-default-export.md
14018
13954
  */
14019
13955
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
14020
13956
  /**
14021
13957
  * Prevent passing a function reference directly to iterator methods.
14022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-callback-reference.md
13958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-callback-reference.md
14023
13959
  */
14024
13960
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
14025
13961
  /**
14026
13962
  * Disallow array accumulation with `Array#concat()` in loops.
14027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-concat-in-loop.md
13963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-concat-in-loop.md
14028
13964
  */
14029
13965
  "unicorn/no-array-concat-in-loop"?: Linter.RuleEntry<[]>;
14030
13966
  /**
14031
13967
  * Disallow using reference values as `Array#fill()` values.
14032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-fill-with-reference-type.md
13968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-fill-with-reference-type.md
14033
13969
  */
14034
13970
  "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
14035
13971
  /**
14036
13972
  * Disallow `.fill()` after `Array.from({length: …})`.
14037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-from-fill.md
13973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-from-fill.md
14038
13974
  */
14039
13975
  "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
14040
13976
  /**
14041
13977
  * Disallow front-of-array mutation.
14042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-front-mutation.md
13978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-front-mutation.md
14043
13979
  */
14044
13980
  "unicorn/no-array-front-mutation"?: Linter.RuleEntry<[]>;
14045
13981
  /**
14046
13982
  * Disallow using the `this` argument in array methods.
14047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-method-this-argument.md
13983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-method-this-argument.md
14048
13984
  */
14049
13985
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
14050
13986
  /**
14051
13987
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
14052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
14053
13989
  * @deprecated
14054
13990
  */
14055
13991
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
14056
13992
  /**
14057
13993
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
14058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reduce.md
13994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reduce.md
14059
13995
  */
14060
13996
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
14061
13997
  /**
14062
13998
  * Prefer `Array#toReversed()` over `Array#reverse()`.
14063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reverse.md
13999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reverse.md
14064
14000
  */
14065
14001
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
14066
14002
  /**
14067
14003
  * Prefer `Array#toSorted()` over `Array#sort()`.
14068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort.md
14004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort.md
14069
14005
  */
14070
14006
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
14071
14007
  /**
14072
14008
  * Disallow sorting arrays to get the minimum or maximum value.
14073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort-for-min-max.md
14009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort-for-min-max.md
14074
14010
  */
14075
14011
  "unicorn/no-array-sort-for-min-max"?: Linter.RuleEntry<[]>;
14076
14012
  /**
14077
14013
  * Prefer `Array#toSpliced()` over `Array#splice()`.
14078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-splice.md
14014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-splice.md
14079
14015
  */
14080
14016
  "unicorn/no-array-splice"?: Linter.RuleEntry<[]>;
14081
14017
  /**
14082
14018
  * Disallow asterisk prefixes in documentation comments.
14083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
14019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
14084
14020
  */
14085
14021
  "unicorn/no-asterisk-prefix-in-documentation-comments"?: Linter.RuleEntry<[]>;
14086
14022
  /**
14087
14023
  * Disallow async functions as `Promise#finally()` callbacks.
14088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-async-promise-finally.md
14024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-async-promise-finally.md
14089
14025
  */
14090
14026
  "unicorn/no-async-promise-finally"?: Linter.RuleEntry<[]>;
14091
14027
  /**
14092
14028
  * Disallow member access from await expression.
14093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-expression-member.md
14029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-expression-member.md
14094
14030
  */
14095
14031
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
14096
14032
  /**
14097
14033
  * Disallow using `await` in `Promise` method parameters.
14098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-in-promise-methods.md
14034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-in-promise-methods.md
14099
14035
  */
14100
14036
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
14101
14037
  /**
14102
14038
  * Disallow unnecessary `Blob` to `File` conversion.
14103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-blob-to-file.md
14039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-blob-to-file.md
14104
14040
  */
14105
14041
  "unicorn/no-blob-to-file"?: Linter.RuleEntry<[]>;
14106
14042
  /**
14107
14043
  * Disallow boolean-returning sort comparators.
14108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-boolean-sort-comparator.md
14044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-boolean-sort-comparator.md
14109
14045
  */
14110
14046
  "unicorn/no-boolean-sort-comparator"?: Linter.RuleEntry<[]>;
14111
14047
  /**
14112
14048
  * Disallow `break` and `continue` in nested loops and switches inside loops.
14113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-break-in-nested-loop.md
14049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-break-in-nested-loop.md
14114
14050
  */
14115
14051
  "unicorn/no-break-in-nested-loop"?: Linter.RuleEntry<[]>;
14116
14052
  /**
14117
14053
  * Prefer drawing canvases directly instead of converting them to images.
14118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-canvas-to-image.md
14054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-canvas-to-image.md
14119
14055
  */
14120
14056
  "unicorn/no-canvas-to-image"?: Linter.RuleEntry<[]>;
14121
14057
  /**
14122
14058
  * Disallow chained comparisons such as `a < b < c`.
14123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-chained-comparison.md
14059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-chained-comparison.md
14124
14060
  */
14125
14061
  "unicorn/no-chained-comparison"?: Linter.RuleEntry<[]>;
14126
14062
  /**
14127
14063
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
14128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-collection-bracket-access.md
14064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-collection-bracket-access.md
14129
14065
  */
14130
14066
  "unicorn/no-collection-bracket-access"?: Linter.RuleEntry<[]>;
14131
14067
  /**
14132
14068
  * Disallow dynamic object property existence checks.
14133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-computed-property-existence-check.md
14069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-computed-property-existence-check.md
14134
14070
  */
14135
14071
  "unicorn/no-computed-property-existence-check"?: Linter.RuleEntry<[]>;
14136
14072
  /**
14137
14073
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
14138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-splice.md
14074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-splice.md
14139
14075
  */
14140
14076
  "unicorn/no-confusing-array-splice"?: Linter.RuleEntry<[]>;
14141
14077
  /**
14142
14078
  * Disallow confusing uses of `Array#with()`.
14143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-with.md
14079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-with.md
14144
14080
  */
14145
14081
  "unicorn/no-confusing-array-with"?: Linter.RuleEntry<[]>;
14146
14082
  /**
14147
14083
  * Do not use leading/trailing space between `console.log` parameters.
14148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-console-spaces.md
14084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-console-spaces.md
14149
14085
  */
14150
14086
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
14151
14087
  /**
14152
14088
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
14153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-constant-zero-expression.md
14089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-constant-zero-expression.md
14154
14090
  */
14155
14091
  "unicorn/no-constant-zero-expression"?: Linter.RuleEntry<[]>;
14156
14092
  /**
14157
14093
  * Disallow declarations before conditional early exits when they are only used after the exit.
14158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-declarations-before-early-exit.md
14094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-declarations-before-early-exit.md
14159
14095
  */
14160
14096
  "unicorn/no-declarations-before-early-exit"?: Linter.RuleEntry<[]>;
14161
14097
  /**
14162
14098
  * Do not use `document.cookie` directly.
14163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-document-cookie.md
14099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-document-cookie.md
14164
14100
  */
14165
14101
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
14166
14102
  /**
14167
14103
  * Disallow two comparisons of the same operands that can be combined into one.
14168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-double-comparison.md
14104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-double-comparison.md
14169
14105
  */
14170
14106
  "unicorn/no-double-comparison"?: Linter.RuleEntry<[]>;
14171
14107
  /**
14172
14108
  * Disallow duplicate adjacent branches in if chains.
14173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-if-branches.md
14109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-if-branches.md
14174
14110
  */
14175
14111
  "unicorn/no-duplicate-if-branches"?: Linter.RuleEntry<[]>;
14176
14112
  /**
14177
14113
  * Disallow adjacent duplicate operands in logical expressions.
14178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-logical-operands.md
14114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-logical-operands.md
14179
14115
  */
14180
14116
  "unicorn/no-duplicate-logical-operands"?: Linter.RuleEntry<[]>;
14181
14117
  /**
14182
14118
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
14183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-loops.md
14119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-loops.md
14184
14120
  */
14185
14121
  "unicorn/no-duplicate-loops"?: Linter.RuleEntry<[]>;
14186
14122
  /**
14187
14123
  * Disallow duplicate values in `Set` constructor array literals.
14188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-set-values.md
14124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-set-values.md
14189
14125
  */
14190
14126
  "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
14191
14127
  /**
14192
14128
  * Disallow empty files.
14193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-empty-file.md
14129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-empty-file.md
14194
14130
  */
14195
14131
  "unicorn/no-empty-file"?: Linter.RuleEntry<UnicornNoEmptyFile>;
14196
14132
  /**
14197
14133
  * Disallow assigning to built-in error properties.
14198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-error-property-assignment.md
14134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-error-property-assignment.md
14199
14135
  */
14200
14136
  "unicorn/no-error-property-assignment"?: Linter.RuleEntry<[]>;
14201
14137
  /**
14202
14138
  * Disallow exports in scripts.
14203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-exports-in-scripts.md
14139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-exports-in-scripts.md
14204
14140
  */
14205
14141
  "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
14206
14142
  /**
14207
14143
  * Prefer `for…of` over the `forEach` method.
14208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-each.md
14144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-each.md
14209
14145
  */
14210
14146
  "unicorn/no-for-each"?: Linter.RuleEntry<[]>;
14211
14147
  /**
14212
14148
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
14213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-loop.md
14149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-loop.md
14214
14150
  */
14215
14151
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
14216
14152
  /**
14217
14153
  * Disallow assigning properties on the global object.
14218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-global-object-property-assignment.md
14154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-global-object-property-assignment.md
14219
14155
  */
14220
14156
  "unicorn/no-global-object-property-assignment"?: Linter.RuleEntry<[]>;
14221
14157
  /**
14222
14158
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
14223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
14159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
14224
14160
  * @deprecated
14225
14161
  */
14226
14162
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
14227
14163
  /**
14228
14164
  * Disallow immediate mutation after variable assignment.
14229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-immediate-mutation.md
14165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-immediate-mutation.md
14230
14166
  */
14231
14167
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
14232
14168
  /**
14233
14169
  * Disallow impossible comparisons against `.length` or `.size`.
14234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-impossible-length-comparison.md
14170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-impossible-length-comparison.md
14235
14171
  */
14236
14172
  "unicorn/no-impossible-length-comparison"?: Linter.RuleEntry<[]>;
14237
14173
  /**
14238
14174
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
14239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-query-selector.md
14175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-query-selector.md
14240
14176
  */
14241
14177
  "unicorn/no-incorrect-query-selector"?: Linter.RuleEntry<[]>;
14242
14178
  /**
14243
14179
  * Disallow incorrect template literal interpolation syntax.
14244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-template-string-interpolation.md
14180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-template-string-interpolation.md
14245
14181
  */
14246
14182
  "unicorn/no-incorrect-template-string-interpolation"?: Linter.RuleEntry<[]>;
14247
14183
  /**
14248
14184
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
14249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
14185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
14250
14186
  * @deprecated
14251
14187
  */
14252
14188
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
14253
14189
  /**
14254
14190
  * Disallow `instanceof` with built-in objects
14255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-instanceof-builtins.md
14191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-instanceof-builtins.md
14256
14192
  */
14257
14193
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
14258
14194
  /**
14259
14195
  * Disallow calling functions and constructors with an invalid number of arguments.
14260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-argument-count.md
14196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-argument-count.md
14261
14197
  */
14262
14198
  "unicorn/no-invalid-argument-count"?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
14263
14199
  /**
14264
14200
  * Disallow comparing a single character from a string to a multi-character string.
14265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-character-comparison.md
14201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-character-comparison.md
14266
14202
  */
14267
14203
  "unicorn/no-invalid-character-comparison"?: Linter.RuleEntry<[]>;
14268
14204
  /**
14269
14205
  * Disallow invalid options in `fetch()` and `new Request()`.
14270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-fetch-options.md
14206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-fetch-options.md
14271
14207
  */
14272
14208
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
14273
14209
  /**
14274
14210
  * Disallow invalid `accept` values on file inputs.
14275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-file-input-accept.md
14211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-file-input-accept.md
14276
14212
  */
14277
14213
  "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
14278
14214
  /**
14279
14215
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
14280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-remove-event-listener.md
14216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-remove-event-listener.md
14281
14217
  */
14282
14218
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
14283
14219
  /**
14284
14220
  * Disallow invalid implementations of well-known symbol methods.
14285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
14221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-well-known-symbol-methods.md
14286
14222
  */
14287
14223
  "unicorn/no-invalid-well-known-symbol-methods"?: Linter.RuleEntry<[]>;
14288
14224
  /**
14289
14225
  * Disallow identifiers starting with `new` or `class`.
14290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-keyword-prefix.md
14226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-keyword-prefix.md
14291
14227
  */
14292
14228
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
14293
14229
  /**
14294
14230
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
14295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-current-target-access.md
14231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-current-target-access.md
14296
14232
  */
14297
14233
  "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
14298
14234
  /**
14299
14235
  * Disallow event-control method calls after the synchronous event dispatch has finished.
14300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-event-control.md
14236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-event-control.md
14301
14237
  */
14302
14238
  "unicorn/no-late-event-control"?: Linter.RuleEntry<[]>;
14303
14239
  /**
14304
14240
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
14305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
14241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
14306
14242
  * @deprecated
14307
14243
  */
14308
14244
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
14309
14245
  /**
14310
14246
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
14311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-lonely-if.md
14247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-lonely-if.md
14312
14248
  */
14313
14249
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
14314
14250
  /**
14315
14251
  * Disallow mutating a loop iterable during iteration.
14316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-loop-iterable-mutation.md
14252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-loop-iterable-mutation.md
14317
14253
  */
14318
14254
  "unicorn/no-loop-iterable-mutation"?: Linter.RuleEntry<[]>;
14319
14255
  /**
14320
14256
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
14321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-magic-array-flat-depth.md
14257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-magic-array-flat-depth.md
14322
14258
  */
14323
14259
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
14324
14260
  /**
14325
14261
  * Disallow manually wrapped comments.
14326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-manually-wrapped-comments.md
14262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-manually-wrapped-comments.md
14327
14263
  */
14328
14264
  "unicorn/no-manually-wrapped-comments"?: Linter.RuleEntry<[]>;
14329
14265
  /**
14330
14266
  * Disallow checking a Map key before accessing a different key.
14331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-mismatched-map-key.md
14267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-mismatched-map-key.md
14332
14268
  */
14333
14269
  "unicorn/no-mismatched-map-key"?: Linter.RuleEntry<[]>;
14334
14270
  /**
14335
14271
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
14336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-misrefactored-assignment.md
14272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-misrefactored-assignment.md
14337
14273
  */
14338
14274
  "unicorn/no-misrefactored-assignment"?: Linter.RuleEntry<[]>;
14339
14275
  /**
14340
14276
  * Disallow named usage of default import and export.
14341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-named-default.md
14277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-named-default.md
14342
14278
  */
14343
14279
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
14344
14280
  /**
14345
14281
  * Disallow negated array predicate calls.
14346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-array-predicate.md
14282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-array-predicate.md
14347
14283
  */
14348
14284
  "unicorn/no-negated-array-predicate"?: Linter.RuleEntry<[]>;
14349
14285
  /**
14350
14286
  * Disallow negated comparisons.
14351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-comparison.md
14287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-comparison.md
14352
14288
  */
14353
14289
  "unicorn/no-negated-comparison"?: Linter.RuleEntry<UnicornNoNegatedComparison>;
14354
14290
  /**
14355
14291
  * Disallow negated conditions.
14356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-condition.md
14292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-condition.md
14357
14293
  */
14358
14294
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
14359
14295
  /**
14360
14296
  * Disallow negated expression in equality check.
14361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negation-in-equality-check.md
14297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negation-in-equality-check.md
14362
14298
  */
14363
14299
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
14364
14300
  /**
14365
14301
  * Disallow nested ternary expressions.
14366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nested-ternary.md
14302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nested-ternary.md
14367
14303
  */
14368
14304
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
14369
14305
  /**
14370
14306
  * Disallow `new Array()`.
14371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-array.md
14307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-array.md
14372
14308
  */
14373
14309
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
14374
14310
  /**
14375
14311
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
14376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-buffer.md
14312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-buffer.md
14377
14313
  */
14378
14314
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
14379
14315
  /**
14380
14316
  * Disallow non-function values with function-style verb prefixes.
14381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-non-function-verb-prefix.md
14317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-non-function-verb-prefix.md
14382
14318
  */
14383
14319
  "unicorn/no-non-function-verb-prefix"?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
14384
14320
  /**
14385
14321
  * Disallow non-standard properties on built-in objects.
14386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nonstandard-builtin-properties.md
14322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nonstandard-builtin-properties.md
14387
14323
  */
14388
14324
  "unicorn/no-nonstandard-builtin-properties"?: Linter.RuleEntry<[]>;
14389
14325
  /**
14390
14326
  * Disallow the use of the `null` literal.
14391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-null.md
14327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-null.md
14392
14328
  */
14393
14329
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
14394
14330
  /**
14395
14331
  * Disallow the use of objects as default parameters.
14396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-as-default-parameter.md
14332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-as-default-parameter.md
14397
14333
  */
14398
14334
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
14399
14335
  /**
14400
14336
  * Disallow `Object` methods with `Map` or `Set`.
14401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-methods-with-collections.md
14337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-methods-with-collections.md
14402
14338
  */
14403
14339
  "unicorn/no-object-methods-with-collections"?: Linter.RuleEntry<[]>;
14404
14340
  /**
14405
14341
  * Disallow optional chaining on undeclared variables.
14406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
14342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
14407
14343
  */
14408
14344
  "unicorn/no-optional-chaining-on-undeclared-variable"?: Linter.RuleEntry<[]>;
14409
14345
  /**
14410
14346
  * Disallow `process.exit()`.
14411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-process-exit.md
14347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-process-exit.md
14412
14348
  */
14413
14349
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
14414
14350
  /**
14415
14351
  * Disallow comparisons made redundant by an equality check in the same logical AND.
14416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-redundant-comparison.md
14352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-redundant-comparison.md
14417
14353
  */
14418
14354
  "unicorn/no-redundant-comparison"?: Linter.RuleEntry<[]>;
14419
14355
  /**
14420
14356
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
14421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-return-array-push.md
14357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-return-array-push.md
14422
14358
  */
14423
14359
  "unicorn/no-return-array-push"?: Linter.RuleEntry<[]>;
14424
14360
  /**
14425
14361
  * Disallow selector syntax in DOM names.
14426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-selector-as-dom-name.md
14362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-selector-as-dom-name.md
14427
14363
  */
14428
14364
  "unicorn/no-selector-as-dom-name"?: Linter.RuleEntry<[]>;
14429
14365
  /**
14430
14366
  * Disallow passing single-element arrays to `Promise` methods.
14431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-single-promise-in-promise-methods.md
14367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-single-promise-in-promise-methods.md
14432
14368
  */
14433
14369
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
14434
14370
  /**
14435
14371
  * Disallow classes that only have static members.
14436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-static-only-class.md
14372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-static-only-class.md
14437
14373
  */
14438
14374
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
14439
14375
  /**
14440
14376
  * Prefer comparing values directly over subtracting and comparing to `0`.
14441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-subtraction-comparison.md
14377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-subtraction-comparison.md
14442
14378
  */
14443
14379
  "unicorn/no-subtraction-comparison"?: Linter.RuleEntry<[]>;
14444
14380
  /**
14445
14381
  * Disallow `then` property.
14446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-thenable.md
14382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-thenable.md
14447
14383
  */
14448
14384
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
14449
14385
  /**
14450
14386
  * Disallow assigning `this` to a variable.
14451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-assignment.md
14387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-assignment.md
14452
14388
  */
14453
14389
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
14454
14390
  /**
14455
14391
  * Disallow `this` outside of classes.
14456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-outside-of-class.md
14392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-outside-of-class.md
14457
14393
  */
14458
14394
  "unicorn/no-this-outside-of-class"?: Linter.RuleEntry<[]>;
14459
14395
  /**
14460
14396
  * Disallow assigning to top-level variables from inside functions.
14461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-assignment-in-function.md
14397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-assignment-in-function.md
14462
14398
  */
14463
14399
  "unicorn/no-top-level-assignment-in-function"?: Linter.RuleEntry<[]>;
14464
14400
  /**
14465
14401
  * Disallow top-level side effects in exported modules.
14466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-side-effects.md
14402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-side-effects.md
14467
14403
  */
14468
14404
  "unicorn/no-top-level-side-effects"?: Linter.RuleEntry<[]>;
14469
14405
  /**
14470
14406
  * Disallow comparing `undefined` using `typeof`.
14471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-typeof-undefined.md
14407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-typeof-undefined.md
14472
14408
  */
14473
14409
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
14474
14410
  /**
14475
14411
  * Disallow referencing methods without calling them.
14476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-uncalled-method.md
14412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-uncalled-method.md
14477
14413
  */
14478
14414
  "unicorn/no-uncalled-method"?: Linter.RuleEntry<[]>;
14479
14415
  /**
14480
14416
  * Require class members to be declared.
14481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-undeclared-class-members.md
14417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-undeclared-class-members.md
14482
14418
  */
14483
14419
  "unicorn/no-undeclared-class-members"?: Linter.RuleEntry<[]>;
14484
14420
  /**
14485
14421
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
14486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-depth.md
14422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-depth.md
14487
14423
  */
14488
14424
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
14489
14425
  /**
14490
14426
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
14491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-map.md
14427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-map.md
14492
14428
  */
14493
14429
  "unicorn/no-unnecessary-array-flat-map"?: Linter.RuleEntry<[]>;
14494
14430
  /**
14495
14431
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
14496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-splice-count.md
14432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-splice-count.md
14497
14433
  */
14498
14434
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
14499
14435
  /**
14500
14436
  * Disallow awaiting non-promise values.
14501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-await.md
14437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-await.md
14502
14438
  */
14503
14439
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
14504
14440
  /**
14505
14441
  * Disallow unnecessary comparisons against boolean literals.
14506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-boolean-comparison.md
14442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-boolean-comparison.md
14507
14443
  */
14508
14444
  "unicorn/no-unnecessary-boolean-comparison"?: Linter.RuleEntry<[]>;
14509
14445
  /**
14510
14446
  * Disallow unnecessary options in `fetch()` and `new Request()`.
14511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-fetch-options.md
14447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-fetch-options.md
14512
14448
  */
14513
14449
  "unicorn/no-unnecessary-fetch-options"?: Linter.RuleEntry<[]>;
14514
14450
  /**
14515
14451
  * Disallow unnecessary `globalThis` references.
14516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-global-this.md
14452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-global-this.md
14517
14453
  */
14518
14454
  "unicorn/no-unnecessary-global-this"?: Linter.RuleEntry<[]>;
14519
14455
  /**
14520
14456
  * Disallow unnecessary nested ternary expressions.
14521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-nested-ternary.md
14457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-nested-ternary.md
14522
14458
  */
14523
14459
  "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
14524
14460
  /**
14525
14461
  * Enforce the use of built-in methods instead of unnecessary polyfills.
14526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-polyfills.md
14462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-polyfills.md
14527
14463
  */
14528
14464
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
14529
14465
  /**
14530
14466
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
14531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-slice-end.md
14467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-slice-end.md
14532
14468
  */
14533
14469
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
14534
14470
  /**
14535
14471
  * Disallow `Array#splice()` when simpler alternatives exist.
14536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-splice.md
14472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-splice.md
14537
14473
  */
14538
14474
  "unicorn/no-unnecessary-splice"?: Linter.RuleEntry<[]>;
14539
14475
  /**
14540
14476
  * Disallow unreadable array destructuring.
14541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-array-destructuring.md
14477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-array-destructuring.md
14542
14478
  */
14543
14479
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
14544
14480
  /**
14545
14481
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
14546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-for-of-expression.md
14482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-for-of-expression.md
14547
14483
  */
14548
14484
  "unicorn/no-unreadable-for-of-expression"?: Linter.RuleEntry<[]>;
14549
14485
  /**
14550
14486
  * Disallow unreadable IIFEs.
14551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-iife.md
14487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-iife.md
14552
14488
  */
14553
14489
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
14554
14490
  /**
14555
14491
  * Disallow unreadable `new` expressions.
14556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-new-expression.md
14492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-new-expression.md
14557
14493
  */
14558
14494
  "unicorn/no-unreadable-new-expression"?: Linter.RuleEntry<[]>;
14559
14495
  /**
14560
14496
  * Disallow unreadable object destructuring.
14561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-object-destructuring.md
14497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-object-destructuring.md
14562
14498
  */
14563
14499
  "unicorn/no-unreadable-object-destructuring"?: Linter.RuleEntry<[]>;
14564
14500
  /**
14565
14501
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
14566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-buffer-conversion.md
14502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-buffer-conversion.md
14567
14503
  */
14568
14504
  "unicorn/no-unsafe-buffer-conversion"?: Linter.RuleEntry<[]>;
14569
14505
  /**
14570
14506
  * Disallow unsafe DOM HTML APIs.
14571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-dom-html.md
14507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-dom-html.md
14572
14508
  */
14573
14509
  "unicorn/no-unsafe-dom-html"?: Linter.RuleEntry<[]>;
14574
14510
  /**
14575
14511
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
14576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
14512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-promise-all-settled-values.md
14577
14513
  */
14578
14514
  "unicorn/no-unsafe-promise-all-settled-values"?: Linter.RuleEntry<[]>;
14579
14515
  /**
14580
14516
  * Disallow unsafe values as property keys.
14581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-property-key.md
14517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-property-key.md
14582
14518
  */
14583
14519
  "unicorn/no-unsafe-property-key"?: Linter.RuleEntry<[]>;
14584
14520
  /**
14585
14521
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
14586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-string-replacement.md
14522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-string-replacement.md
14587
14523
  */
14588
14524
  "unicorn/no-unsafe-string-replacement"?: Linter.RuleEntry<[]>;
14589
14525
  /**
14590
14526
  * Disallow ignoring the return value of selected array methods.
14591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-array-method-return.md
14527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-array-method-return.md
14592
14528
  */
14593
14529
  "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
14594
14530
  /**
14595
14531
  * Disallow unused object properties.
14596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-properties.md
14532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-properties.md
14597
14533
  */
14598
14534
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
14599
14535
  /**
14600
14536
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
14601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-boolean-cast.md
14537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-boolean-cast.md
14602
14538
  */
14603
14539
  "unicorn/no-useless-boolean-cast"?: Linter.RuleEntry<[]>;
14604
14540
  /**
14605
14541
  * Disallow useless type coercions of values that are already of the target type.
14606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-coercion.md
14542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-coercion.md
14607
14543
  */
14608
14544
  "unicorn/no-useless-coercion"?: Linter.RuleEntry<[]>;
14609
14545
  /**
14610
14546
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
14611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-collection-argument.md
14547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-collection-argument.md
14612
14548
  */
14613
14549
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
14614
14550
  /**
14615
14551
  * Disallow useless compound assignments such as `x += 0`.
14616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-compound-assignment.md
14552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-compound-assignment.md
14617
14553
  */
14618
14554
  "unicorn/no-useless-compound-assignment"?: Linter.RuleEntry<[]>;
14619
14555
  /**
14620
14556
  * Disallow useless concatenation of literals.
14621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-concat.md
14557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-concat.md
14622
14558
  */
14623
14559
  "unicorn/no-useless-concat"?: Linter.RuleEntry<[]>;
14624
14560
  /**
14625
14561
  * Disallow useless `continue` statements.
14626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-continue.md
14562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-continue.md
14627
14563
  */
14628
14564
  "unicorn/no-useless-continue"?: Linter.RuleEntry<[]>;
14629
14565
  /**
14630
14566
  * Disallow unnecessary existence checks before deletion.
14631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-delete-check.md
14567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-delete-check.md
14632
14568
  */
14633
14569
  "unicorn/no-useless-delete-check"?: Linter.RuleEntry<[]>;
14634
14570
  /**
14635
14571
  * Disallow `else` after a statement that exits.
14636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-else.md
14572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-else.md
14637
14573
  */
14638
14574
  "unicorn/no-useless-else"?: Linter.RuleEntry<[]>;
14639
14575
  /**
14640
14576
  * Disallow unnecessary `Error.captureStackTrace(…)`.
14641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-error-capture-stack-trace.md
14577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-error-capture-stack-trace.md
14642
14578
  */
14643
14579
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
14644
14580
  /**
14645
14581
  * Disallow useless fallback when spreading in object literals.
14646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-fallback-in-spread.md
14582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-fallback-in-spread.md
14647
14583
  */
14648
14584
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
14649
14585
  /**
14650
14586
  * Disallow unnecessary `.toArray()` on iterators.
14651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-iterator-to-array.md
14587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-iterator-to-array.md
14652
14588
  */
14653
14589
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
14654
14590
  /**
14655
14591
  * Disallow useless array length check.
14656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-length-check.md
14592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-length-check.md
14657
14593
  */
14658
14594
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
14659
14595
  /**
14660
14596
  * Disallow unnecessary operands in logical expressions involving boolean literals.
14661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-logical-operand.md
14597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-logical-operand.md
14662
14598
  */
14663
14599
  "unicorn/no-useless-logical-operand"?: Linter.RuleEntry<[]>;
14664
14600
  /**
14665
14601
  * Disallow useless overrides of class methods.
14666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-override.md
14602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-override.md
14667
14603
  */
14668
14604
  "unicorn/no-useless-override"?: Linter.RuleEntry<[]>;
14669
14605
  /**
14670
14606
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
14671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-promise-resolve-reject.md
14607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-promise-resolve-reject.md
14672
14608
  */
14673
14609
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
14674
14610
  /**
14675
14611
  * Disallow simple recursive function calls that can be replaced with a loop.
14676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-recursion.md
14612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-recursion.md
14677
14613
  */
14678
14614
  "unicorn/no-useless-recursion"?: Linter.RuleEntry<[]>;
14679
14615
  /**
14680
14616
  * Disallow unnecessary spread.
14681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-spread.md
14617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-spread.md
14682
14618
  */
14683
14619
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
14684
14620
  /**
14685
14621
  * Disallow useless case in switch statements.
14686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-switch-case.md
14622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-switch-case.md
14687
14623
  */
14688
14624
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
14689
14625
  /**
14690
14626
  * Disallow useless template literal expressions.
14691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-template-literals.md
14627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-template-literals.md
14692
14628
  */
14693
14629
  "unicorn/no-useless-template-literals"?: Linter.RuleEntry<[]>;
14694
14630
  /**
14695
14631
  * Disallow useless `undefined`.
14696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-undefined.md
14632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-undefined.md
14697
14633
  */
14698
14634
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
14699
14635
  /**
14700
14636
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
14701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-xor-as-exponentiation.md
14637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-xor-as-exponentiation.md
14702
14638
  */
14703
14639
  "unicorn/no-xor-as-exponentiation"?: Linter.RuleEntry<[]>;
14704
14640
  /**
14705
14641
  * Disallow number literals with zero fractions or dangling dots.
14706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-zero-fractions.md
14642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-zero-fractions.md
14707
14643
  */
14708
14644
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
14709
14645
  /**
14710
14646
  * Enforce proper case for numeric literals.
14711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/number-literal-case.md
14647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/number-literal-case.md
14712
14648
  */
14713
14649
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
14714
14650
  /**
14715
14651
  * Enforce the style of numeric separators by correctly grouping digits.
14716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/numeric-separators-style.md
14652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/numeric-separators-style.md
14717
14653
  */
14718
14654
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
14719
14655
  /**
14720
14656
  * Require assignment operator shorthand where possible.
14721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/operator-assignment.md
14657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/operator-assignment.md
14722
14658
  */
14723
14659
  "unicorn/operator-assignment"?: Linter.RuleEntry<UnicornOperatorAssignment>;
14724
14660
  /**
14725
14661
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
14726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-any.md
14662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-any.md
14727
14663
  */
14728
14664
  "unicorn/prefer-abort-signal-any"?: Linter.RuleEntry<[]>;
14729
14665
  /**
14730
14666
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
14731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-timeout.md
14667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-timeout.md
14732
14668
  */
14733
14669
  "unicorn/prefer-abort-signal-timeout"?: Linter.RuleEntry<[]>;
14734
14670
  /**
14735
14671
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
14736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener.md
14672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener.md
14737
14673
  */
14738
14674
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
14739
14675
  /**
14740
14676
  * Prefer an options object over a boolean in `.addEventListener()`.
14741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener-options.md
14677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener-options.md
14742
14678
  */
14743
14679
  "unicorn/prefer-add-event-listener-options"?: Linter.RuleEntry<[]>;
14744
14680
  /**
14745
14681
  * Prefer `AggregateError` when throwing collected errors.
14746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-aggregate-error.md
14682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-aggregate-error.md
14747
14683
  */
14748
14684
  "unicorn/prefer-aggregate-error"?: Linter.RuleEntry<[]>;
14749
14685
  /**
14750
14686
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
14751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-find.md
14687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-find.md
14752
14688
  */
14753
14689
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
14754
14690
  /**
14755
14691
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
14756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat.md
14692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat.md
14757
14693
  */
14758
14694
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
14759
14695
  /**
14760
14696
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
14761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat-map.md
14697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat-map.md
14762
14698
  */
14763
14699
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
14764
14700
  /**
14765
14701
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
14766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-async.md
14702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-async.md
14767
14703
  */
14768
14704
  "unicorn/prefer-array-from-async"?: Linter.RuleEntry<[]>;
14769
14705
  /**
14770
14706
  * Prefer using the `Array.from()` mapping function argument.
14771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-map.md
14707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-map.md
14772
14708
  */
14773
14709
  "unicorn/prefer-array-from-map"?: Linter.RuleEntry<[]>;
14774
14710
  /**
14775
14711
  * Prefer `Array.from({length}, …)` when creating range arrays.
14776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-range.md
14712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-range.md
14777
14713
  */
14778
14714
  "unicorn/prefer-array-from-range"?: Linter.RuleEntry<[]>;
14779
14715
  /**
14780
14716
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
14781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-index-of.md
14717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-index-of.md
14782
14718
  */
14783
14719
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
14784
14720
  /**
14785
14721
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
14786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-iterable-methods.md
14722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-iterable-methods.md
14787
14723
  */
14788
14724
  "unicorn/prefer-array-iterable-methods"?: Linter.RuleEntry<[]>;
14789
14725
  /**
14790
14726
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
14791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-last-methods.md
14727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-last-methods.md
14792
14728
  */
14793
14729
  "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
14794
14730
  /**
14795
14731
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
14796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-slice.md
14732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-slice.md
14797
14733
  */
14798
14734
  "unicorn/prefer-array-slice"?: Linter.RuleEntry<[]>;
14799
14735
  /**
14800
14736
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
14801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-some.md
14737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-some.md
14802
14738
  */
14803
14739
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
14804
14740
  /**
14805
14741
  * Prefer `.at()` method for index access and `String#charAt()`.
14806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-at.md
14742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-at.md
14807
14743
  */
14808
14744
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
14809
14745
  /**
14810
14746
  * Prefer `await` over promise chaining.
14811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-await.md
14747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-await.md
14812
14748
  */
14813
14749
  "unicorn/prefer-await"?: Linter.RuleEntry<[]>;
14814
14750
  /**
14815
14751
  * Prefer `BigInt` literals over the constructor.
14816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-bigint-literals.md
14752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-bigint-literals.md
14817
14753
  */
14818
14754
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
14819
14755
  /**
14820
14756
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
14821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-blob-reading-methods.md
14757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-blob-reading-methods.md
14822
14758
  */
14823
14759
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
14824
14760
  /**
14825
14761
  * Prefer block statements over IIFEs used only for scoping.
14826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-block-statement-over-iife.md
14762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-block-statement-over-iife.md
14827
14763
  */
14828
14764
  "unicorn/prefer-block-statement-over-iife"?: Linter.RuleEntry<[]>;
14829
14765
  /**
14830
14766
  * Prefer directly returning boolean expressions over `if` statements.
14831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-boolean-return.md
14767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-boolean-return.md
14832
14768
  */
14833
14769
  "unicorn/prefer-boolean-return"?: Linter.RuleEntry<[]>;
14834
14770
  /**
14835
14771
  * Prefer class field declarations over `this` assignments in constructors.
14836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-class-fields.md
14772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-class-fields.md
14837
14773
  */
14838
14774
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
14839
14775
  /**
14840
14776
  * Prefer using `Element#classList.toggle()` to toggle class names.
14841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-classlist-toggle.md
14777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-classlist-toggle.md
14842
14778
  */
14843
14779
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
14844
14780
  /**
14845
14781
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
14846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-code-point.md
14782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-code-point.md
14847
14783
  */
14848
14784
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
14849
14785
  /**
14850
14786
  * Prefer early continues over whole-loop conditional wrapping.
14851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-continue.md
14787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-continue.md
14852
14788
  */
14853
14789
  "unicorn/prefer-continue"?: Linter.RuleEntry<UnicornPreferContinue>;
14854
14790
  /**
14855
14791
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
14856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-date-now.md
14792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-date-now.md
14857
14793
  */
14858
14794
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
14859
14795
  /**
14860
14796
  * Prefer default parameters over reassignment.
14861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-default-parameters.md
14797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-default-parameters.md
14862
14798
  */
14863
14799
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
14864
14800
  /**
14865
14801
  * Prefer direct iteration over default iterator method calls.
14866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-direct-iteration.md
14802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-direct-iteration.md
14867
14803
  */
14868
14804
  "unicorn/prefer-direct-iteration"?: Linter.RuleEntry<[]>;
14869
14805
  /**
14870
14806
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
14871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dispose.md
14807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dispose.md
14872
14808
  */
14873
14809
  "unicorn/prefer-dispose"?: Linter.RuleEntry<[]>;
14874
14810
  /**
14875
14811
  * Prefer `Element#append()` over `Node#appendChild()`.
14876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-append.md
14812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-append.md
14877
14813
  */
14878
14814
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
14879
14815
  /**
14880
14816
  * Renamed to `unicorn/dom-node-dataset`.
14881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
14817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
14882
14818
  * @deprecated
14883
14819
  */
14884
14820
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
14885
14821
  /**
14886
14822
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
14887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-html-methods.md
14823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-html-methods.md
14888
14824
  */
14889
14825
  "unicorn/prefer-dom-node-html-methods"?: Linter.RuleEntry<[]>;
14890
14826
  /**
14891
14827
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
14892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-remove.md
14828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-remove.md
14893
14829
  */
14894
14830
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
14895
14831
  /**
14896
14832
  * Prefer `.replaceChildren()` when emptying DOM children.
14897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-replace-children.md
14833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-replace-children.md
14898
14834
  */
14899
14835
  "unicorn/prefer-dom-node-replace-children"?: Linter.RuleEntry<[]>;
14900
14836
  /**
14901
14837
  * Prefer `.textContent` over `.innerText`.
14902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-text-content.md
14838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-text-content.md
14903
14839
  */
14904
14840
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
14905
14841
  /**
14906
14842
  * Prefer early returns over full-function conditional wrapping.
14907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-early-return.md
14843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-early-return.md
14908
14844
  */
14909
14845
  "unicorn/prefer-early-return"?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
14910
14846
  /**
14911
14847
  * Prefer `else if` over adjacent `if` statements with related conditions.
14912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-else-if.md
14848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-else-if.md
14913
14849
  */
14914
14850
  "unicorn/prefer-else-if"?: Linter.RuleEntry<[]>;
14915
14851
  /**
14916
14852
  * Prefer `Error.isError()` when checking for errors.
14917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-error-is-error.md
14853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-error-is-error.md
14918
14854
  */
14919
14855
  "unicorn/prefer-error-is-error"?: Linter.RuleEntry<[]>;
14920
14856
  /**
14921
14857
  * Prefer `EventTarget` over `EventEmitter`.
14922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-event-target.md
14858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-event-target.md
14923
14859
  */
14924
14860
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
14925
14861
  /**
14926
14862
  * Prefer `export…from` when re-exporting.
14927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-export-from.md
14863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-export-from.md
14928
14864
  */
14929
14865
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
14930
14866
  /**
14931
14867
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
14932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-flat-math-min-max.md
14868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-flat-math-min-max.md
14933
14869
  */
14934
14870
  "unicorn/prefer-flat-math-min-max"?: Linter.RuleEntry<[]>;
14935
14871
  /**
14936
14872
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
14937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-get-or-insert-computed.md
14873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-get-or-insert-computed.md
14938
14874
  */
14939
14875
  "unicorn/prefer-get-or-insert-computed"?: Linter.RuleEntry<[]>;
14940
14876
  /**
14941
14877
  * Prefer global numeric constants over `Number` static properties.
14942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-number-constants.md
14878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-number-constants.md
14943
14879
  */
14944
14880
  "unicorn/prefer-global-number-constants"?: Linter.RuleEntry<[]>;
14945
14881
  /**
14946
14882
  * Prefer `globalThis` over `window`, `self`, and `global`.
14947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-this.md
14883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-this.md
14948
14884
  */
14949
14885
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
14950
14886
  /**
14951
14887
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
14952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-group-by.md
14888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-group-by.md
14953
14889
  */
14954
14890
  "unicorn/prefer-group-by"?: Linter.RuleEntry<[]>;
14955
14891
  /**
14956
14892
  * Prefer `.has()` when checking existence.
14957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-has-check.md
14893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-has-check.md
14958
14894
  */
14959
14895
  "unicorn/prefer-has-check"?: Linter.RuleEntry<[]>;
14960
14896
  /**
14961
14897
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
14962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-hoisting-branch-code.md
14898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-hoisting-branch-code.md
14963
14899
  */
14964
14900
  "unicorn/prefer-hoisting-branch-code"?: Linter.RuleEntry<[]>;
14965
14901
  /**
14966
14902
  * Prefer HTTPS over HTTP.
14967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-https.md
14903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-https.md
14968
14904
  */
14969
14905
  "unicorn/prefer-https"?: Linter.RuleEntry<[]>;
14970
14906
  /**
14971
14907
  * Prefer identifiers over string literals in import and export specifiers.
14972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
14908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-identifier-import-export-specifiers.md
14973
14909
  */
14974
14910
  "unicorn/prefer-identifier-import-export-specifiers"?: Linter.RuleEntry<[]>;
14975
14911
  /**
14976
14912
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
14977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-import-meta-properties.md
14913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-import-meta-properties.md
14978
14914
  */
14979
14915
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
14980
14916
  /**
14981
14917
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
14982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes.md
14918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes.md
14983
14919
  */
14984
14920
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
14985
14921
  /**
14986
14922
  * Prefer `.includes()` over repeated equality comparisons.
14987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes-over-repeated-comparisons.md
14988
14924
  */
14989
14925
  "unicorn/prefer-includes-over-repeated-comparisons"?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
14990
14926
  /**
14991
14927
  * Prefer passing iterables directly to constructors instead of filling empty collections.
14992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterable-in-constructor.md
14928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterable-in-constructor.md
14993
14929
  */
14994
14930
  "unicorn/prefer-iterable-in-constructor"?: Linter.RuleEntry<[]>;
14995
14931
  /**
14996
14932
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
14997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-concat.md
14933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-concat.md
14998
14934
  */
14999
14935
  "unicorn/prefer-iterator-concat"?: Linter.RuleEntry<[]>;
15000
14936
  /**
15001
14937
  * Prefer iterator helpers over temporary arrays from iterators.
15002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-helpers.md
14938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-helpers.md
15003
14939
  */
15004
14940
  "unicorn/prefer-iterator-helpers"?: Linter.RuleEntry<[]>;
15005
14941
  /**
15006
14942
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
15007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array.md
14943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array.md
15008
14944
  */
15009
14945
  "unicorn/prefer-iterator-to-array"?: Linter.RuleEntry<[]>;
15010
14946
  /**
15011
14947
  * Prefer moving `.toArray()` to the end of iterator helper chains.
15012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array-at-end.md
14948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array-at-end.md
15013
14949
  */
15014
14950
  "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
15015
14951
  /**
15016
14952
  * Renamed to `unicorn/consistent-json-file-read`.
15017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
14953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
15018
14954
  * @deprecated
15019
14955
  */
15020
14956
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
15021
14957
  /**
15022
14958
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
15023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-keyboard-event-key.md
14959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-keyboard-event-key.md
15024
14960
  */
15025
14961
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
15026
14962
  /**
15027
14963
  * Prefer `location.assign()` over assigning to `location.href`.
15028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-location-assign.md
14964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-location-assign.md
15029
14965
  */
15030
14966
  "unicorn/prefer-location-assign"?: Linter.RuleEntry<[]>;
15031
14967
  /**
15032
14968
  * Prefer using a logical operator over a ternary.
15033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-logical-operator-over-ternary.md
14969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-logical-operator-over-ternary.md
15034
14970
  */
15035
14971
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
15036
14972
  /**
15037
14973
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
15038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-map-from-entries.md
14974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-map-from-entries.md
15039
14975
  */
15040
14976
  "unicorn/prefer-map-from-entries"?: Linter.RuleEntry<[]>;
15041
14977
  /**
15042
14978
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
15043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-abs.md
14979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-abs.md
15044
14980
  */
15045
14981
  "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
15046
14982
  /**
15047
14983
  * Prefer `Math` constants over their approximate numeric values.
15048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-constants.md
14984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-constants.md
15049
14985
  */
15050
14986
  "unicorn/prefer-math-constants"?: Linter.RuleEntry<[]>;
15051
14987
  /**
15052
14988
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
15053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-min-max.md
14989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-min-max.md
15054
14990
  */
15055
14991
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
15056
14992
  /**
15057
14993
  * Prefer `Math.trunc()` for truncating numbers.
15058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-trunc.md
14994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-trunc.md
15059
14995
  */
15060
14996
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
15061
14997
  /**
15062
14998
  * Prefer moving ternaries into the minimal varying part of an expression.
15063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-minimal-ternary.md
14999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-minimal-ternary.md
15064
15000
  */
15065
15001
  "unicorn/prefer-minimal-ternary"?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
15066
15002
  /**
15067
15003
  * Prefer modern DOM APIs.
15068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-dom-apis.md
15004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-dom-apis.md
15069
15005
  */
15070
15006
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
15071
15007
  /**
15072
15008
  * Prefer modern `Math` APIs over legacy patterns.
15073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-math-apis.md
15009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-math-apis.md
15074
15010
  */
15075
15011
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
15076
15012
  /**
15077
15013
  * Prefer JavaScript modules (ESM) over CommonJS.
15078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-module.md
15014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-module.md
15079
15015
  */
15080
15016
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
15081
15017
  /**
15082
15018
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
15083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-native-coercion-functions.md
15019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-native-coercion-functions.md
15084
15020
  */
15085
15021
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
15086
15022
  /**
15087
15023
  * Prefer negative index over `.length - index` when possible.
15088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-negative-index.md
15024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-negative-index.md
15089
15025
  */
15090
15026
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
15091
15027
  /**
15092
15028
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
15093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-node-protocol.md
15029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-node-protocol.md
15094
15030
  */
15095
15031
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
15096
15032
  /**
15097
15033
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
15098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-coercion.md
15034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-coercion.md
15099
15035
  */
15100
15036
  "unicorn/prefer-number-coercion"?: Linter.RuleEntry<[]>;
15101
15037
  /**
15102
15038
  * Prefer `Number.isSafeInteger()` over integer checks.
15103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-is-safe-integer.md
15039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-is-safe-integer.md
15104
15040
  */
15105
15041
  "unicorn/prefer-number-is-safe-integer"?: Linter.RuleEntry<[]>;
15106
15042
  /**
15107
15043
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
15108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-properties.md
15044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-properties.md
15109
15045
  */
15110
15046
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
15111
15047
  /**
15112
15048
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
15113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-define-properties.md
15049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-define-properties.md
15114
15050
  */
15115
15051
  "unicorn/prefer-object-define-properties"?: Linter.RuleEntry<[]>;
15116
15052
  /**
15117
15053
  * Prefer object destructuring defaults over default object literals with spread.
15118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-destructuring-defaults.md
15054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-destructuring-defaults.md
15119
15055
  */
15120
15056
  "unicorn/prefer-object-destructuring-defaults"?: Linter.RuleEntry<[]>;
15121
15057
  /**
15122
15058
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
15123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-from-entries.md
15059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-from-entries.md
15124
15060
  */
15125
15061
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
15126
15062
  /**
15127
15063
  * Prefer the most specific `Object` iterable method.
15128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-iterable-methods.md
15064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-iterable-methods.md
15129
15065
  */
15130
15066
  "unicorn/prefer-object-iterable-methods"?: Linter.RuleEntry<[]>;
15131
15067
  /**
15132
15068
  * Prefer observer APIs over resize and scroll listeners with layout reads.
15133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-observer-apis.md
15069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-observer-apis.md
15134
15070
  */
15135
15071
  "unicorn/prefer-observer-apis"?: Linter.RuleEntry<[]>;
15136
15072
  /**
15137
15073
  * Prefer omitting the `catch` binding parameter.
15138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-optional-catch-binding.md
15074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-optional-catch-binding.md
15139
15075
  */
15140
15076
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
15141
15077
  /**
15142
15078
  * Prefer `Path2D` for repeatedly drawn canvas paths.
15143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-path2d.md
15079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-path2d.md
15144
15080
  */
15145
15081
  "unicorn/prefer-path2d"?: Linter.RuleEntry<[]>;
15146
15082
  /**
15147
15083
  * Prefer private class fields over the underscore-prefix convention.
15148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-private-class-fields.md
15084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-private-class-fields.md
15149
15085
  */
15150
15086
  "unicorn/prefer-private-class-fields"?: Linter.RuleEntry<[]>;
15151
15087
  /**
15152
15088
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
15153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-try.md
15089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-try.md
15154
15090
  */
15155
15091
  "unicorn/prefer-promise-try"?: Linter.RuleEntry<[]>;
15156
15092
  /**
15157
15093
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
15158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-with-resolvers.md
15094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-with-resolvers.md
15159
15095
  */
15160
15096
  "unicorn/prefer-promise-with-resolvers"?: Linter.RuleEntry<[]>;
15161
15097
  /**
15162
15098
  * Prefer borrowing methods from the prototype instead of the instance.
15163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-prototype-methods.md
15099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-prototype-methods.md
15164
15100
  */
15165
15101
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
15166
15102
  /**
15167
15103
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
15168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-query-selector.md
15104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-query-selector.md
15169
15105
  */
15170
15106
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
15171
15107
  /**
15172
15108
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
15173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-queue-microtask.md
15109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-queue-microtask.md
15174
15110
  */
15175
15111
  "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
15176
15112
  /**
15177
15113
  * Prefer `Reflect.apply()` over `Function#apply()`.
15178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-reflect-apply.md
15114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-reflect-apply.md
15179
15115
  */
15180
15116
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
15181
15117
  /**
15182
15118
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
15183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-escape.md
15119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-escape.md
15184
15120
  */
15185
15121
  "unicorn/prefer-regexp-escape"?: Linter.RuleEntry<[]>;
15186
15122
  /**
15187
15123
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
15188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-test.md
15124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-test.md
15189
15125
  */
15190
15126
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
15191
15127
  /**
15192
15128
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
15193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-response-static-json.md
15129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-response-static-json.md
15194
15130
  */
15195
15131
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
15196
15132
  /**
15197
15133
  * Prefer `:scope` when using element query selector methods.
15198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-scoped-selector.md
15134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-scoped-selector.md
15199
15135
  */
15200
15136
  "unicorn/prefer-scoped-selector"?: Linter.RuleEntry<[]>;
15201
15137
  /**
15202
15138
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
15203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-has.md
15139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-has.md
15204
15140
  */
15205
15141
  "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
15206
15142
  /**
15207
15143
  * Prefer `Set` methods for Set operations.
15208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-methods.md
15144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-methods.md
15209
15145
  */
15210
15146
  "unicorn/prefer-set-methods"?: Linter.RuleEntry<[]>;
15211
15147
  /**
15212
15148
  * Prefer using `Set#size` instead of `Array#length`.
15213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-size.md
15149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-size.md
15214
15150
  */
15215
15151
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
15216
15152
  /**
15217
15153
  * Prefer arrow function properties over methods with a single return.
15218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-short-arrow-method.md
15154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-short-arrow-method.md
15219
15155
  */
15220
15156
  "unicorn/prefer-short-arrow-method"?: Linter.RuleEntry<[]>;
15221
15157
  /**
15222
15158
  * Prefer simple conditions first in logical expressions.
15223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-condition-first.md
15159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-condition-first.md
15224
15160
  */
15225
15161
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
15226
15162
  /**
15227
15163
  * Prefer a simple comparison function for `Array#sort()`.
15228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-sort-comparator.md
15164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-sort-comparator.md
15229
15165
  */
15230
15166
  "unicorn/prefer-simple-sort-comparator"?: Linter.RuleEntry<[]>;
15231
15167
  /**
15232
15168
  * Prefer simplified conditions.
15233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simplified-conditions.md
15169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simplified-conditions.md
15234
15170
  */
15235
15171
  "unicorn/prefer-simplified-conditions"?: Linter.RuleEntry<[]>;
15236
15172
  /**
15237
15173
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
15238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-array-predicate.md
15174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-array-predicate.md
15239
15175
  */
15240
15176
  "unicorn/prefer-single-array-predicate"?: Linter.RuleEntry<[]>;
15241
15177
  /**
15242
15178
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
15243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-call.md
15179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-call.md
15244
15180
  */
15245
15181
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
15246
15182
  /**
15247
15183
  * Prefer a single object destructuring declaration per local const source.
15248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-object-destructuring.md
15184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-object-destructuring.md
15249
15185
  */
15250
15186
  "unicorn/prefer-single-object-destructuring"?: Linter.RuleEntry<[]>;
15251
15187
  /**
15252
15188
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
15253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-replace.md
15189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-replace.md
15254
15190
  */
15255
15191
  "unicorn/prefer-single-replace"?: Linter.RuleEntry<[]>;
15256
15192
  /**
15257
15193
  * Prefer declaring variables in the smallest possible scope.
15258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-smaller-scope.md
15194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-smaller-scope.md
15259
15195
  */
15260
15196
  "unicorn/prefer-smaller-scope"?: Linter.RuleEntry<[]>;
15261
15197
  /**
15262
15198
  * Prefer `String#split()` with a limit.
15263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-split-limit.md
15199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-split-limit.md
15264
15200
  */
15265
15201
  "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
15266
15202
  /**
15267
15203
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
15268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-spread.md
15204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-spread.md
15269
15205
  */
15270
15206
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
15271
15207
  /**
15272
15208
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
15273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-match-all.md
15209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-match-all.md
15274
15210
  */
15275
15211
  "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
15276
15212
  /**
15277
15213
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
15278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-pad-start-end.md
15214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-pad-start-end.md
15279
15215
  */
15280
15216
  "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
15281
15217
  /**
15282
15218
  * Prefer using the `String.raw` tag to avoid escaping `\`.
15283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-raw.md
15219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-raw.md
15284
15220
  */
15285
15221
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
15286
15222
  /**
15287
15223
  * Prefer `String#repeat()` for repeated whitespace.
15288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-repeat.md
15224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-repeat.md
15289
15225
  */
15290
15226
  "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
15291
15227
  /**
15292
15228
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
15293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-replace-all.md
15229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-replace-all.md
15294
15230
  */
15295
15231
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
15296
15232
  /**
15297
15233
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
15298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-slice.md
15234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-slice.md
15299
15235
  */
15300
15236
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
15301
15237
  /**
15302
15238
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
15303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-starts-ends-with.md
15239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-starts-ends-with.md
15304
15240
  */
15305
15241
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
15306
15242
  /**
15307
15243
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
15308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-trim-start-end.md
15244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-trim-start-end.md
15309
15245
  */
15310
15246
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
15311
15247
  /**
15312
15248
  * Prefer using `structuredClone` to create a deep clone.
15313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-structured-clone.md
15249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-structured-clone.md
15314
15250
  */
15315
15251
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
15316
15252
  /**
15317
15253
  * Prefer `switch` over multiple `else-if`.
15318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-switch.md
15254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-switch.md
15319
15255
  */
15320
15256
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
15321
15257
  /**
15322
15258
  * Prefer `Temporal` over `Date`.
15323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-temporal.md
15259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-temporal.md
15324
15260
  */
15325
15261
  "unicorn/prefer-temporal"?: Linter.RuleEntry<UnicornPreferTemporal>;
15326
15262
  /**
15327
15263
  * Prefer ternary expressions over simple `if` statements that return or assign values.
15328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-ternary.md
15264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-ternary.md
15329
15265
  */
15330
15266
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
15331
15267
  /**
15332
15268
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
15333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-toggle-attribute.md
15269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-toggle-attribute.md
15334
15270
  */
15335
15271
  "unicorn/prefer-toggle-attribute"?: Linter.RuleEntry<[]>;
15336
15272
  /**
15337
15273
  * Prefer top-level await over top-level promises and async function calls.
15338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-top-level-await.md
15274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-top-level-await.md
15339
15275
  */
15340
15276
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
15341
15277
  /**
15342
15278
  * Enforce throwing `TypeError` in type checking conditions.
15343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-error.md
15279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-error.md
15344
15280
  */
15345
15281
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
15346
15282
  /**
15347
15283
  * Require type literals to be last in union types.
15348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-literal-last.md
15284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-literal-last.md
15349
15285
  */
15350
15286
  "unicorn/prefer-type-literal-last"?: Linter.RuleEntry<[]>;
15351
15287
  /**
15352
15288
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
15353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-uint8array-base64.md
15289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-uint8array-base64.md
15354
15290
  */
15355
15291
  "unicorn/prefer-uint8array-base64"?: Linter.RuleEntry<[]>;
15356
15292
  /**
15357
15293
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
15358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unary-minus.md
15294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unary-minus.md
15359
15295
  */
15360
15296
  "unicorn/prefer-unary-minus"?: Linter.RuleEntry<[]>;
15361
15297
  /**
15362
15298
  * Prefer Unicode code point escapes over legacy escape sequences.
15363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unicode-code-point-escapes.md
15299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unicode-code-point-escapes.md
15364
15300
  */
15365
15301
  "unicorn/prefer-unicode-code-point-escapes"?: Linter.RuleEntry<[]>;
15366
15302
  /**
15367
15303
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
15368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-can-parse.md
15304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-can-parse.md
15369
15305
  */
15370
15306
  "unicorn/prefer-url-can-parse"?: Linter.RuleEntry<[]>;
15371
15307
  /**
15372
15308
  * Prefer `URL#href` over stringifying a `URL`.
15373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-href.md
15309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-href.md
15374
15310
  */
15375
15311
  "unicorn/prefer-url-href"?: Linter.RuleEntry<[]>;
15376
15312
  /**
15377
15313
  * Prefer `URLSearchParams` over manually splitting query strings.
15378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-search-parameters.md
15314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-search-parameters.md
15379
15315
  */
15380
15316
  "unicorn/prefer-url-search-parameters"?: Linter.RuleEntry<[]>;
15381
15317
  /**
15382
15318
  * Prefer putting the condition in the while statement.
15383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-while-loop-condition.md
15319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-while-loop-condition.md
15384
15320
  */
15385
15321
  "unicorn/prefer-while-loop-condition"?: Linter.RuleEntry<[]>;
15386
15322
  /**
15387
15323
  * Renamed to `unicorn/name-replacements`.
15388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
15324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
15389
15325
  * @deprecated
15390
15326
  */
15391
15327
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<[]>;
15392
15328
  /**
15393
15329
  * Enforce consistent relative URL style.
15394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/relative-url-style.md
15330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/relative-url-style.md
15395
15331
  */
15396
15332
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
15397
15333
  /**
15398
15334
  * Enforce using the separator argument with `Array#join()`.
15399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-join-separator.md
15335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-join-separator.md
15400
15336
  */
15401
15337
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
15402
15338
  /**
15403
15339
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
15404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-sort-compare.md
15340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-sort-compare.md
15405
15341
  */
15406
15342
  "unicorn/require-array-sort-compare"?: Linter.RuleEntry<[]>;
15407
15343
  /**
15408
15344
  * Require `CSS.escape()` for interpolated values in CSS selectors.
15409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-css-escape.md
15345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-css-escape.md
15410
15346
  */
15411
15347
  "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
15412
15348
  /**
15413
15349
  * Require non-empty module attributes for imports and exports
15414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-attributes.md
15350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-attributes.md
15415
15351
  */
15416
15352
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
15417
15353
  /**
15418
15354
  * Require non-empty specifier list in import and export statements.
15419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-specifiers.md
15355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-specifiers.md
15420
15356
  */
15421
15357
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
15422
15358
  /**
15423
15359
  * Enforce using the digits argument with `Number#toFixed()`.
15424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-number-to-fixed-digits-argument.md
15360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-number-to-fixed-digits-argument.md
15425
15361
  */
15426
15362
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
15427
15363
  /**
15428
15364
  * Require passive event listeners for high-frequency events.
15429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-passive-events.md
15365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-passive-events.md
15430
15366
  */
15431
15367
  "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
15432
15368
  /**
15433
15369
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
15434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-post-message-target-origin.md
15370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-post-message-target-origin.md
15435
15371
  */
15436
15372
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
15437
15373
  /**
15438
15374
  * Require boolean-returning Proxy traps to return booleans.
15439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-proxy-trap-boolean-return.md
15375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-proxy-trap-boolean-return.md
15440
15376
  */
15441
15377
  "unicorn/require-proxy-trap-boolean-return"?: Linter.RuleEntry<[]>;
15442
15378
  /**
15443
15379
  * Enforce better string content.
15444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/string-content.md
15380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/string-content.md
15445
15381
  */
15446
15382
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
15447
15383
  /**
15448
15384
  * Enforce consistent brace style for `case` clauses.
15449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-braces.md
15385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-braces.md
15450
15386
  */
15451
15387
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
15452
15388
  /**
15453
15389
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
15454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-break-position.md
15390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-break-position.md
15455
15391
  */
15456
15392
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
15457
15393
  /**
15458
15394
  * Fix whitespace-insensitive template indentation.
15459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/template-indent.md
15395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/template-indent.md
15460
15396
  */
15461
15397
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
15462
15398
  /**
15463
15399
  * Enforce consistent case for text encoding identifiers.
15464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/text-encoding-identifier-case.md
15400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/text-encoding-identifier-case.md
15465
15401
  */
15466
15402
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
15467
15403
  /**
15468
15404
  * Require `new` when creating an error.
15469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/throw-new-error.md
15405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/throw-new-error.md
15470
15406
  */
15471
15407
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
15472
15408
  /**
15473
15409
  * Limit the complexity of `try` blocks.
15474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/try-complexity.md
15410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/try-complexity.md
15475
15411
  */
15476
15412
  "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
15477
15413
  }
@@ -16263,7 +16199,7 @@ type VitestNoFocusedTests = [] | [{
16263
16199
  fixable?: boolean;
16264
16200
  }]; // ----- vitest/no-hooks -----
16265
16201
  type VitestNoHooks = [] | [{
16266
- allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
16202
+ allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach" | "aroundAll" | "aroundEach")[];
16267
16203
  }]; // ----- vitest/no-large-snapshots -----
16268
16204
  type VitestNoLargeSnapshots = [] | [{
16269
16205
  maxSize?: number;
@@ -16639,11 +16575,13 @@ type YamlSortSequenceValues = [{
16639
16575
  type?: "asc" | "desc";
16640
16576
  caseSensitive?: boolean;
16641
16577
  natural?: boolean;
16578
+ key?: string;
16642
16579
  };
16643
16580
  })[] | {
16644
16581
  type?: "asc" | "desc";
16645
16582
  caseSensitive?: boolean;
16646
16583
  natural?: boolean;
16584
+ key?: string;
16647
16585
  };
16648
16586
  minValues?: number;
16649
16587
  }, ...{
@@ -16654,11 +16592,13 @@ type YamlSortSequenceValues = [{
16654
16592
  type?: "asc" | "desc";
16655
16593
  caseSensitive?: boolean;
16656
16594
  natural?: boolean;
16595
+ key?: string;
16657
16596
  };
16658
16597
  })[] | {
16659
16598
  type?: "asc" | "desc";
16660
16599
  caseSensitive?: boolean;
16661
16600
  natural?: boolean;
16601
+ key?: string;
16662
16602
  };
16663
16603
  minValues?: number;
16664
16604
  }[]]; // ----- yaml/spaced-comment -----
@@ -16668,7 +16608,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
16668
16608
  }];
16669
16609
  //#endregion
16670
16610
  //#region src/_generated/rule-options.d.ts
16671
- type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & E18eRuleOptions & EslintCommentsRuleOptions & EslintReactRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & NodeTestRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactHooksRuleOptions & RegexpRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
16611
+ type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & E18eRuleOptions & EslintCommentsRuleOptions & EslintReactRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & NodeTestRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactHooksRuleOptions & ReactRefreshRuleOptions & RegexpRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
16672
16612
  //#endregion
16673
16613
  //#region src/types.d.ts
16674
16614
  type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
@@ -16682,25 +16622,10 @@ type Config = Omit<Linter.Config<Linter.RulesRecord & RuleOptionsUnion>, "plugin
16682
16622
  type JavascriptRuleOptions = BuiltinsRuleOptions;
16683
16623
  type TypescriptConfigRules = TypescriptRuleOptions & BuiltinsRuleOptions;
16684
16624
  type Awaitable<T> = T | Promise<T>;
16685
- type UnPromise<T> = T extends Promise<infer U> ? U : T;
16686
- type LanguageOptions = Linter.Config["languageOptions"];
16687
16625
  type RuleName = keyof RuleOptionsUnion;
16688
16626
  type TypedFlatConfigItemWithId = Config & {
16689
16627
  name: string;
16690
16628
  };
16691
- type OptionsCommon = {
16692
- debug?: boolean;
16693
- /**
16694
- * The prefix for the name of the config item.
16695
- * @default "jsse"
16696
- */
16697
- rootId?: string;
16698
- /**
16699
- * Type of the project. `lib` will enable more strict rules for libraries.
16700
- * @default 'lib'
16701
- */
16702
- type?: "app" | "lib";
16703
- };
16704
16629
  type OptionsComponentExts = {
16705
16630
  /**
16706
16631
  * Additional extensions for components.
@@ -16746,6 +16671,7 @@ type OptionsTypeScriptParserOptions = {
16746
16671
  */
16747
16672
  ignoresTypeAware?: string[];
16748
16673
  };
16674
+ type TypescriptPreset = "all" | "base" | "disable-type-checked" | "eslint-recommended" | "recommended" | "recommended-type-checked" | "recommended-type-checked-only" | "strict" | "strict-type-checked" | "strict-type-checked-only" | "stylistic" | "stylistic-type-checked" | "stylistic-type-checked-only";
16749
16675
  type OptionsTypeScriptWithTypes = {
16750
16676
  /**
16751
16677
  * When this options is provided, type aware rules will be enabled.
@@ -16761,7 +16687,14 @@ type OptionsTypeScriptWithTypes = {
16761
16687
  */
16762
16688
  overrides?: TypescriptConfigRules;
16763
16689
  /**
16764
- * strict vs recommended configs
16690
+ * TypeScript ESLint preset or presets to use as the base ruleset.
16691
+ *
16692
+ * Preset names match the kebab-case TypeScript ESLint config names.
16693
+ * @default "recommended-type-checked" when type-aware, otherwise "recommended"
16694
+ */
16695
+ presets?: TypescriptPreset | TypescriptPreset[];
16696
+ /**
16697
+ * strict vs recommended configs, cannot be used with presets
16765
16698
  * @default false
16766
16699
  */
16767
16700
  strict?: boolean;
@@ -16770,9 +16703,8 @@ type OptionsTypeScriptWithTypes = {
16770
16703
  */
16771
16704
  typeAware?: boolean;
16772
16705
  };
16773
- type OptionsTypescript = OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions;
16774
- type OptionsHasTypeScript = {
16775
- typescript?: boolean;
16706
+ type OptionsTypescript = OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & {
16707
+ typedefs?: "type" | "interface";
16776
16708
  };
16777
16709
  type OptionsStylistic = {
16778
16710
  stylistic?: boolean | StylisticConfig;
@@ -16782,18 +16714,6 @@ type StylisticConfig = {
16782
16714
  quotes?: "single" | "double";
16783
16715
  jsx?: boolean;
16784
16716
  };
16785
- type OptionsPrefix = {
16786
- prefix?: {
16787
- from: string;
16788
- to: string;
16789
- };
16790
- };
16791
- type OptionsOverrides = {
16792
- overrides?: Config["rules"];
16793
- };
16794
- type OptionsIsInEditor = {
16795
- isInEditor?: boolean;
16796
- };
16797
16717
  type OptionsAntfu = {
16798
16718
  topLevelFunction?: "error" | "off";
16799
16719
  overrides?: AntfuRuleOptions;
@@ -16845,9 +16765,32 @@ type OptionsNodeTest = {
16845
16765
  type OptionsPnpm = {
16846
16766
  overrides?: PnpmRuleOptions;
16847
16767
  };
16768
+ type ReactHooksPreset = "recommended" | "recommended-latest";
16769
+ type ReactPreset = "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript";
16848
16770
  type OptionsReactConfig = {
16771
+ /**
16772
+ * Enable eslint-plugin-react-hooks rules or select its preset.
16773
+ * @default "recommended"
16774
+ */
16775
+ hooks?: boolean | ReactHooksPreset;
16776
+ /**
16777
+ * Enable eslint-plugin-react-refresh rules.
16778
+ * @default true
16779
+ */
16780
+ refresh?: boolean;
16781
+ /**
16782
+ * Use `refresh` instead.
16783
+ * @deprecated
16784
+ */
16849
16785
  reactRefresh?: boolean;
16850
- overrides?: EslintReactRuleOptions;
16786
+ overrides?: EslintReactRuleOptions & ReactHooksRuleOptions & ReactRefreshRuleOptions;
16787
+ /**
16788
+ * `@eslint-react/eslint-plugin` preset to use as the base ruleset.
16789
+ *
16790
+ * Preset names match the kebab-case `@eslint-react` config names.
16791
+ * @default "recommended"
16792
+ */
16793
+ preset?: ReactPreset;
16851
16794
  };
16852
16795
  type OptionsSortTsconfig = {
16853
16796
  extendTsconfigGlobs?: string[];
@@ -16869,25 +16812,6 @@ type OptionsVitest = {
16869
16812
  type OptionsYaml = OptionsFiles & OptionsStylistic & {
16870
16813
  overrides?: YmlRuleOptions;
16871
16814
  };
16872
- /**
16873
- * Tailwind CSS ESLint settings
16874
- */
16875
- type TailwindEslintSettings = {
16876
- /**
16877
- * call expressions to check for tailwind classes
16878
- * @default ["classnames", "clsx", "ctl", "cn", "cx", "twMerge", "twJoin"]
16879
- */
16880
- callees: string[];
16881
- classRegex: string;
16882
- config: string;
16883
- cssFiles: string[];
16884
- cssFilesRefreshRate: number;
16885
- removeDuplicates: boolean;
16886
- skipClassAttribute: boolean;
16887
- tags: string[];
16888
- whitelist: string[];
16889
- };
16890
- type TailwindOptions = Partial<TailwindEslintSettings> | boolean | undefined;
16891
16815
  type OptionsConfigs = {
16892
16816
  /**
16893
16817
  * Enable eslint-plugin-antfu.
@@ -16933,14 +16857,6 @@ type OptionsConfigs = {
16933
16857
  * @default false
16934
16858
  */
16935
16859
  pnpm?: boolean | OptionsPnpm;
16936
- /**
16937
- * Enable Tailwind CSS support.
16938
- *
16939
- * Passing an object to configure the options.
16940
- * Tailwind support is currently disabled; passing this option only logs a warning.
16941
- * @default false
16942
- */
16943
- tailwind?: TailwindOptions;
16944
16860
  /**
16945
16861
  * Enable TypeScript support.
16946
16862
  *
@@ -16954,7 +16870,6 @@ type OptionsConfigs = {
16954
16870
  */
16955
16871
  unicorn?: boolean | OptionsUnicorn;
16956
16872
  react?: boolean | OptionsReactConfig;
16957
- reactRefresh?: boolean;
16958
16873
  /**
16959
16874
  * Enable regexp plugin
16960
16875
  * @default true
@@ -16986,7 +16901,29 @@ type OptionsConfigs = {
16986
16901
  */
16987
16902
  stylistic?: boolean | StylisticConfig;
16988
16903
  };
16989
- type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & OptionsConfigs & {
16904
+ /**
16905
+ * Deprecated options that are still supported
16906
+ */
16907
+ type OptionsDeprecated = {
16908
+ /**
16909
+ * Enable `eslint-plugin-react-refresh` rules.
16910
+ * @default true
16911
+ * @deprecated use `react.refresh` instead
16912
+ */
16913
+ reactRefresh?: boolean;
16914
+ /**
16915
+ * Enable Tailwind CSS support.
16916
+ *
16917
+ * Passing an object to configure the options.
16918
+ * Tailwind support is currently disabled; passing this option only logs a warning.
16919
+ * @deprecated deprecated tw support
16920
+ * @default false
16921
+ */
16922
+ tailwind?: boolean | {
16923
+ overrides?: Record<string, unknown>;
16924
+ };
16925
+ };
16926
+ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & OptionsConfigs & OptionsDeprecated & {
16990
16927
  /**
16991
16928
  * Enable debug mode.
16992
16929
  */
@@ -17056,6 +16993,10 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & Opt
17056
16993
  * @default false
17057
16994
  */
17058
16995
  sortImports?: boolean;
16996
+ /**
16997
+ * The prefix for the name of the config item
16998
+ * @default "@typescript-eslint"
16999
+ */
17059
17000
  tsPrefix?: string;
17060
17001
  /**
17061
17002
  * Glob patterns for ADDITIONAL tsconfig files to lint (aka sort)
@@ -17081,12 +17022,8 @@ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & Opt
17081
17022
  */
17082
17023
  isInEditor?: boolean;
17083
17024
  };
17084
- type NormalizedOptionsConfig = Omit<OptionsConfig, "off"> & {
17085
- off: RuleName[];
17086
- };
17087
- type RenamePrefix<T extends Record<string, unknown>, FromPref extends string, ToPref extends string> = { [K in keyof T as K extends `${FromPref}${infer Rest}` ? `${ToPref}${Rest}` : K]: T[K] };
17088
17025
  //#endregion
17089
17026
  //#region src/_generated/fixable-rules-map.d.ts
17090
17027
  declare const FIXABLE_RULES_MAP: Record<string, RuleName[]>;
17091
17028
  //#endregion
17092
- export { OptionsSortTsconfig as A, RulesRecord as B, OptionsMarkdown as C, OptionsPnpm as D, OptionsOverrides as E, OptionsUnicorn as F, TypescriptConfigRules as G, TailwindEslintSettings as H, OptionsVitest as I, UnPromise as K, OptionsYaml as L, OptionsTypeScriptParserOptions as M, OptionsTypeScriptWithTypes as N, OptionsPrefix as O, OptionsTypescript as P, RenamePrefix as R, OptionsJsonc as S, OptionsNodeTest as T, TailwindOptions as U, StylisticConfig as V, TypedFlatConfigItemWithId as W, OptionsFiles as _, EslintConfigFnAsync as a, OptionsJavascript as b, LanguageOptions as c, OptionsCommand as d, OptionsCommon as f, OptionsE18e as g, OptionsDeMorgan as h, EslintConfigFn as i, OptionsStylistic as j, OptionsReactConfig as k, NormalizedOptionsConfig as l, OptionsConfig as m, Awaitable as n, EslintConfigFnSync as o, OptionsComponentExts as p, Config as r, JavascriptRuleOptions as s, FIXABLE_RULES_MAP as t, OptionsAntfu as u, OptionsHasTypeScript as v, OptionsN as w, OptionsJsdoc as x, OptionsIsInEditor as y, RuleName as z };
17029
+ export { OptionsConfig as a, RuleName as c, TypescriptPreset as d, EslintConfigFn as i, RulesRecord as l, Awaitable as n, ReactHooksPreset as o, Config as r, ReactPreset as s, FIXABLE_RULES_MAP as t, TypedFlatConfigItemWithId as u };