@w5s/eslint-config 3.35.0 → 3.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ESLintIgnoreOptions } from "@w5s/eslint-config-ignore";
2
2
  import eslint, { Linter } from "eslint";
3
3
  import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
4
4
  import { ESLintRules } from "eslint/rules";
5
+ //#endregion
5
6
  //#region src/typegen/e18e.d.ts
6
7
  declare module 'eslint' {
7
8
  namespace Linter {
@@ -139,23 +140,23 @@ type E18EBanDependencies = [] | [{
139
140
  }];
140
141
  //#endregion
141
142
  //#region src/type/Config.d.ts
142
- interface Config extends Omit<Linter.Config<Linter.RulesRecord>, 'plugins'> {
143
+ export interface Config extends Omit<Linter.Config<Linter.RulesRecord>, 'plugins'> {
143
144
  plugins?: Record<string, any>;
144
145
  }
145
146
  //#endregion
146
147
  //#region src/type/StylisticConfig.d.ts
147
- interface StylisticConfig {
148
+ export interface StylisticConfig {
148
149
  enabled: boolean;
149
150
  indent: NonNullable<StylisticCustomizeOptions['indent']>;
150
151
  jsx: NonNullable<StylisticCustomizeOptions['jsx']>;
151
152
  quotes: NonNullable<StylisticCustomizeOptions['quotes']>;
152
153
  semi: NonNullable<StylisticCustomizeOptions['semi']>;
153
154
  }
154
- interface StylisticParameters extends Partial<StylisticConfig> {}
155
+ export interface StylisticParameters extends Partial<StylisticConfig> {}
155
156
  /**
156
157
  * @namespace
157
158
  */
158
- declare const StylisticConfig: {
159
+ export declare const StylisticConfig: {
159
160
  /**
160
161
  * Default config
161
162
  */
@@ -175,7 +176,7 @@ declare const StylisticConfig: {
175
176
  };
176
177
  //#endregion
177
178
  //#region src/type/PluginOptionsBase.d.ts
178
- interface PluginOptionsBase<Rules> {
179
+ export interface PluginOptionsBase<Rules> {
179
180
  /**
180
181
  * Files to apply
181
182
  */
@@ -198,23 +199,29 @@ interface PluginOptionsBase<Rules> {
198
199
  /**
199
200
  * This file contains the type definition for restricted globals used in the ESLint configuration.
200
201
  */
201
- type RestrictedGlobals = Array<NonNullable<ESLintRules['no-restricted-globals'] extends Linter.RuleEntry<infer O> ? O[number] : never>>;
202
+ export type RestrictedGlobals = Array<NonNullable<ESLintRules['no-restricted-globals'] extends Linter.RuleEntry<infer O> ? O[number] : never>>;
202
203
  //#endregion
203
204
  //#region src/type/RestrictedImportPaths.d.ts
204
205
  /**
205
206
  * This file contains the type definition for restricted import paths used in the ESLint configuration.
206
207
  */
207
- type RestrictedImportPaths = NonNullable<Extract<ESLintRules['no-restricted-imports'] extends Linter.RuleEntry<infer O> ? O[number] : never, {
208
+ export type RestrictedImportPaths = NonNullable<Extract<ESLintRules['no-restricted-imports'] extends Linter.RuleEntry<infer O> ? O[number] : never, {
208
209
  paths?: unknown;
209
210
  }>['paths']>;
210
211
  //#endregion
212
+ //#region src/type/RestrictedSyntax.d.ts
213
+ /**
214
+ * This file contains the type definition for restricted globals used in the ESLint configuration.
215
+ */
216
+ export type RestrictedSyntax = Array<NonNullable<ESLintRules['no-restricted-syntax'] extends Linter.RuleEntry<infer O> ? O[number] : never>>;
217
+ //#endregion
211
218
  //#region src/config/e18e.d.ts
212
219
  /**
213
220
  * @see https://e18e.dev
214
221
  * @param options
215
222
  */
216
- declare function e18e(options?: e18e.Options): Promise<[Config, Config]>;
217
- declare namespace e18e {
223
+ export declare function e18e(options?: e18e.Options): Promise<[Config, Config]>;
224
+ export declare namespace e18e {
218
225
  interface Options extends PluginOptionsBase<Rules> {
219
226
  /**
220
227
  * Include modernization default configuration
@@ -747,8 +754,8 @@ type JsoncSpaceUnaryOps = [] | [{
747
754
  }];
748
755
  //#endregion
749
756
  //#region src/config/es.d.ts
750
- declare function es(options: es.Options): Promise<[Config, Config, Config]>;
751
- declare namespace es {
757
+ export declare function es(options: es.Options): Promise<[Config, Config, Config]>;
758
+ export declare namespace es {
752
759
  var recommended: {
753
760
  'class-methods-use-this': "off";
754
761
  'default-case': "off";
@@ -1031,7 +1038,7 @@ declare namespace es {
1031
1038
  yoda: "error";
1032
1039
  };
1033
1040
  }
1034
- declare namespace es {
1041
+ export declare namespace es {
1035
1042
  interface Options extends PluginOptionsBase<Rules> {
1036
1043
  /**
1037
1044
  * The default restricted globals (used by restrictedGlobals).
@@ -1053,6 +1060,16 @@ declare namespace es {
1053
1060
  * @internal
1054
1061
  */
1055
1062
  defaultRestrictedImportPaths?: Readonly<RestrictedImportPaths> | undefined;
1063
+ /**
1064
+ * The default restricted syntax (used by restrictedSyntax).
1065
+ *
1066
+ * WARNING: prefer using restrictedSyntax
1067
+ *
1068
+ * You should use defaultRestrictedSyntax only for eslint shared configuration and should rarely be used in project configuration.
1069
+ *
1070
+ * @internal
1071
+ */
1072
+ defaultRestrictedSyntax?: Readonly<RestrictedSyntax> | undefined;
1056
1073
  /**
1057
1074
  * An array of restricted globals to override the default restricted globals.
1058
1075
  *
@@ -1098,13 +1115,35 @@ declare namespace es {
1098
1115
  * ```
1099
1116
  */
1100
1117
  restrictedImportPaths?: ((currentPaths: Readonly<RestrictedImportPaths>) => RestrictedImportPaths) | RestrictedImportPaths | undefined;
1118
+ /**
1119
+ * An array of restricted syntax to override the default restricted syntax.
1120
+ *
1121
+ * @example
1122
+ * ```ts
1123
+ * // As object
1124
+ * {
1125
+ * restrictedSyntax: [
1126
+ * { selector: 'ForInStatement', message: 'Please use for-of instead of for-in.' },
1127
+ * ], // Will totally override the default restricted syntax
1128
+ * }
1129
+ * // as function
1130
+ * {
1131
+ * restrictedSyntax: (currentSyntax) => [
1132
+ * ...currentSyntax.filter((syntax) => syntax.selector !== 'ForInStatement'),
1133
+ * { selector: 'ForInStatement', message: 'Please use for-of instead of for-in.' },
1134
+ * ], // Allow fine grained control over the default restricted syntax, you can filter or add new syntax rules.
1135
+ * }
1136
+ * @see https://eslint.org/docs/latest/rules/no-restricted-syntax
1137
+ * ```
1138
+ */
1139
+ restrictedSyntax?: ((currentSyntax: Readonly<RestrictedSyntax>) => RestrictedSyntax) | RestrictedSyntax | undefined;
1101
1140
  }
1102
1141
  type Rules = RuleOptions$14;
1103
1142
  }
1104
1143
  //#endregion
1105
1144
  //#region src/config/ignores.d.ts
1106
- declare function ignores(options?: ignores.Options): Promise<import("@w5s/eslint-config-ignore").ESLintIgnoreConfig[]>;
1107
- declare namespace ignores {
1145
+ export declare function ignores(options?: ignores.Options): Promise<import("@w5s/eslint-config-ignore").ESLintIgnoreConfig[]>;
1146
+ export declare namespace ignores {
1108
1147
  type Options = ESLintIgnoreOptions;
1109
1148
  }
1110
1149
  //#endregion
@@ -1587,8 +1626,8 @@ type ImportPreferDefaultExport = [] | [{
1587
1626
  }];
1588
1627
  //#endregion
1589
1628
  //#region src/config/imports.d.ts
1590
- declare function imports(options?: imports.Options): Promise<[Config, Config]>;
1591
- declare namespace imports {
1629
+ export declare function imports(options?: imports.Options): Promise<[Config, Config]>;
1630
+ export declare namespace imports {
1592
1631
  var recommended: {
1593
1632
  'import/first': string;
1594
1633
  'import/no-duplicates': string;
@@ -1601,7 +1640,7 @@ declare namespace imports {
1601
1640
  })[];
1602
1641
  };
1603
1642
  }
1604
- declare namespace imports {
1643
+ export declare namespace imports {
1605
1644
  interface Options extends PluginOptionsBase<Rules> {}
1606
1645
  type Rules = RuleOptions$13;
1607
1646
  }
@@ -1768,6 +1807,10 @@ interface RuleOptions$12 {
1768
1807
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1769
1808
  */
1770
1809
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1810
+ /**
1811
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
1812
+ */
1813
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
1771
1814
  /**
1772
1815
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1773
1816
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -2043,12 +2086,16 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
2043
2086
  // ----- jsdoc/check-param-names -----
2044
2087
  type JsdocCheckParamNames = [] | [{
2045
2088
  allowExtraTrailingParamDocs?: boolean;
2089
+ badParamNames?: boolean;
2090
+ badParamOrder?: boolean;
2046
2091
  checkDestructured?: boolean;
2047
2092
  checkRestProperty?: boolean;
2048
2093
  checkTypesPattern?: string;
2049
2094
  disableExtraPropertyReporting?: boolean;
2050
2095
  disableMissingParamChecks?: boolean;
2096
+ duplicateParams?: boolean;
2051
2097
  enableFixer?: boolean;
2098
+ extraParams?: boolean;
2052
2099
  useDefaultObjectProperties?: boolean;
2053
2100
  }];
2054
2101
  // ----- jsdoc/check-property-names -----
@@ -2229,6 +2276,14 @@ type JsdocNoUndefinedTypes = [] | [{
2229
2276
  disableReporting?: boolean;
2230
2277
  markVariablesAsUsed?: boolean;
2231
2278
  }];
2279
+ // ----- jsdoc/no-unnecessary-type-assertion -----
2280
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
2281
+ checkLiteralConstAssertions?: boolean;
2282
+ enableFixer?: boolean;
2283
+ preferConstToLiteralTuples?: boolean;
2284
+ treatAnyAsRedundant?: boolean;
2285
+ typesToIgnore?: string[];
2286
+ }];
2232
2287
  // ----- jsdoc/normalize-see-links -----
2233
2288
  type JsdocNormalizeSeeLinks = [] | [{
2234
2289
  canonicalForm?: ("pipe" | "prefix");
@@ -2553,15 +2608,15 @@ type JsdocValidTypes = [] | [{
2553
2608
  }];
2554
2609
  //#endregion
2555
2610
  //#region src/config/jsdoc.d.ts
2556
- declare function jsdoc(options?: jsdoc.Options): Promise<ReadonlyArray<Config>>;
2557
- declare namespace jsdoc {
2611
+ export declare function jsdoc(options?: jsdoc.Options): Promise<ReadonlyArray<Config>>;
2612
+ export declare namespace jsdoc {
2558
2613
  interface Options extends PluginOptionsBase<Rules> {}
2559
2614
  type Rules = RuleOptions$12;
2560
2615
  }
2561
2616
  //#endregion
2562
2617
  //#region src/config/jsonc.d.ts
2563
- declare function jsonc(options?: jsonc.Options): Promise<ReadonlyArray<Config>>;
2564
- declare namespace jsonc {
2618
+ export declare function jsonc(options?: jsonc.Options): Promise<ReadonlyArray<Config>>;
2619
+ export declare namespace jsonc {
2565
2620
  interface Options extends PluginOptionsBase<Rules> {}
2566
2621
  type Rules = RuleOptions$14;
2567
2622
  }
@@ -2978,8 +3033,8 @@ type JsxA11YTabindexNoPositive = [] | [{
2978
3033
  }];
2979
3034
  //#endregion
2980
3035
  //#region src/config/jsx.d.ts
2981
- declare function jsx(options?: jsx.Options): Promise<[Config, Config]>;
2982
- declare namespace jsx {
3036
+ export declare function jsx(options?: jsx.Options): Promise<[Config, Config]>;
3037
+ export declare namespace jsx {
2983
3038
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {
2984
3039
  /**
2985
3040
  * Enable jsx-a11y plugin. Defaults to false.
@@ -3167,8 +3222,8 @@ type MarkdownTableColumnCount = [] | [{
3167
3222
  }];
3168
3223
  //#endregion
3169
3224
  //#region src/config/markdown.d.ts
3170
- declare function markdown(options?: markdown.Options): Promise<[Config, Config, Config]>;
3171
- declare namespace markdown {
3225
+ export declare function markdown(options?: markdown.Options): Promise<[Config, Config, Config]>;
3226
+ export declare namespace markdown {
3172
3227
  interface Options extends PluginOptionsBase<Rules> {
3173
3228
  /**
3174
3229
  * Default to 'markdown/gfm' (Github Flavored Markdown)
@@ -3263,6 +3318,11 @@ interface RuleOptions$9 {
3263
3318
  * @see https://nextjs.org/docs/messages/no-img-element
3264
3319
  */
3265
3320
  'next/no-img-element'?: Linter.RuleEntry<[]>;
3321
+ /**
3322
+ * Prevent usage of `location.assign` or `location.href` assignment to navigate to internal Next.js pages.
3323
+ * @see https://nextjs.org/docs/messages/no-location-assign-relative-destination
3324
+ */
3325
+ 'next/no-location-assign-relative-destination'?: Linter.RuleEntry<[]>;
3266
3326
  /**
3267
3327
  * Prevent page-only custom fonts.
3268
3328
  * @see https://nextjs.org/docs/messages/no-page-custom-font
@@ -3303,8 +3363,8 @@ interface RuleOptions$9 {
3303
3363
  type NextNoHtmlLinkForPages = [] | [(string | string[])];
3304
3364
  //#endregion
3305
3365
  //#region src/config/next.d.ts
3306
- declare function next(options?: next.Options): Promise<[Config, Config]>;
3307
- declare namespace next {
3366
+ export declare function next(options?: next.Options): Promise<[Config, Config]>;
3367
+ export declare namespace next {
3308
3368
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {}
3309
3369
  type Rules = RuleOptions$9;
3310
3370
  }
@@ -3821,8 +3881,8 @@ type NodeShebang = [] | [{
3821
3881
  }];
3822
3882
  //#endregion
3823
3883
  //#region src/config/node.d.ts
3824
- declare function node(options?: node.Options): Promise<[Config, Config]>;
3825
- declare namespace node {
3884
+ export declare function node(options?: node.Options): Promise<[Config, Config]>;
3885
+ export declare namespace node {
3826
3886
  interface Options extends Omit<PluginOptionsBase<Rules>, 'files' | 'stylistic'> {}
3827
3887
  type Rules = RuleOptions$8;
3828
3888
  }
@@ -5153,10 +5213,6 @@ type PerfectionistSortImports = {
5153
5213
  sortBy?: ("specifier" | "path");
5154
5214
  })[];
5155
5215
  newlinesBetween?: ("ignore" | number);
5156
- tsconfig?: {
5157
- rootDir: string;
5158
- filename?: string;
5159
- };
5160
5216
  maxLineLength?: number;
5161
5217
  sortSideEffects?: boolean;
5162
5218
  environment?: ("node" | "bun");
@@ -5191,6 +5247,10 @@ type PerfectionistSortImports = {
5191
5247
  pattern: string;
5192
5248
  flags?: string;
5193
5249
  } | string));
5250
+ tsconfig?: {
5251
+ rootDir: string;
5252
+ filename?: string;
5253
+ };
5194
5254
  }[];
5195
5255
  // ----- perfectionist/sort-interfaces -----
5196
5256
  type PerfectionistSortInterfaces = {
@@ -5775,6 +5835,7 @@ type PerfectionistSortModules = [] | [{
5775
5835
  order?: ("asc" | "desc");
5776
5836
  })[];
5777
5837
  newlinesBetween?: ("ignore" | number);
5838
+ additionalModuleBlockTypes?: string[];
5778
5839
  useExperimentalDependencyDetection?: boolean;
5779
5840
  newlinesBetweenOverloadSignatures?: ("ignore" | number);
5780
5841
  partitionByComment?: (boolean | (({
@@ -5800,6 +5861,10 @@ type PerfectionistSortModules = [] | [{
5800
5861
  } | string)));
5801
5862
  });
5802
5863
  partitionByNewLine?: boolean;
5864
+ tsconfig?: {
5865
+ rootDir: string;
5866
+ filename?: string;
5867
+ };
5803
5868
  }];
5804
5869
  // ----- perfectionist/sort-named-exports -----
5805
5870
  type PerfectionistSortNamedExports = {
@@ -6328,6 +6393,13 @@ type PerfectionistSortObjects = {
6328
6393
  partitionByComputedKey?: boolean;
6329
6394
  styledComponents?: boolean;
6330
6395
  useExperimentalDependencyDetection?: boolean;
6396
+ ignoreCallbackDependenciesPatterns?: (({
6397
+ pattern: string;
6398
+ flags?: string;
6399
+ } | string)[] | ({
6400
+ pattern: string;
6401
+ flags?: string;
6402
+ } | string));
6331
6403
  partitionByComment?: (boolean | (({
6332
6404
  pattern: string;
6333
6405
  flags?: string;
@@ -6663,6 +6735,13 @@ type PerfectionistSortVariableDeclarations = {
6663
6735
  matchesAstSelector?: string;
6664
6736
  };
6665
6737
  useExperimentalDependencyDetection?: boolean;
6738
+ ignoreCallbackDependenciesPatterns?: (({
6739
+ pattern: string;
6740
+ flags?: string;
6741
+ } | string)[] | ({
6742
+ pattern: string;
6743
+ flags?: string;
6744
+ } | string));
6666
6745
  partitionByComment?: (boolean | (({
6667
6746
  pattern: string;
6668
6747
  flags?: string;
@@ -6689,8 +6768,8 @@ type PerfectionistSortVariableDeclarations = {
6689
6768
  }[];
6690
6769
  //#endregion
6691
6770
  //#region src/config/perfectionist.d.ts
6692
- declare function perfectionist(options?: perfectionist.Options): Promise<[Config, Config]>;
6693
- declare namespace perfectionist {
6771
+ export declare function perfectionist(options?: perfectionist.Options): Promise<[Config, Config]>;
6772
+ export declare namespace perfectionist {
6694
6773
  interface Options extends PluginOptionsBase<Rules> {}
6695
6774
  type Rules = RuleOptions$7;
6696
6775
  }
@@ -6798,7 +6877,7 @@ interface RuleOptions$6 {
6798
6877
  */
6799
6878
  'react/globals'?: Linter.RuleEntry<[]>;
6800
6879
  /**
6801
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
6880
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
6802
6881
  * @see https://eslint-react.xyz/docs/rules/immutability
6803
6882
  */
6804
6883
  'react/immutability'?: Linter.RuleEntry<[]>;
@@ -7153,7 +7232,7 @@ interface RuleOptions$6 {
7153
7232
  */
7154
7233
  'react/x-globals'?: Linter.RuleEntry<[]>;
7155
7234
  /**
7156
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
7235
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
7157
7236
  * @see https://eslint-react.xyz/docs/rules/immutability
7158
7237
  */
7159
7238
  'react/x-immutability'?: Linter.RuleEntry<[]>;
@@ -7458,8 +7537,8 @@ type ReactXUseState = [] | [{
7458
7537
  }];
7459
7538
  //#endregion
7460
7539
  //#region src/config/react.d.ts
7461
- declare function react(options?: react.Options): Promise<[Config, Config]>;
7462
- declare namespace react {
7540
+ export declare function react(options?: react.Options): Promise<[Config, Config]>;
7541
+ export declare namespace react {
7463
7542
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {}
7464
7543
  type Rules = RuleOptions$6;
7465
7544
  }
@@ -9221,8 +9300,8 @@ type StyleYieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") |
9221
9300
  })];
9222
9301
  //#endregion
9223
9302
  //#region src/config/stylistic.d.ts
9224
- declare function stylistic(options?: stylistic.Options): Promise<[Config, Config]>;
9225
- declare namespace stylistic {
9303
+ export declare function stylistic(options?: stylistic.Options): Promise<[Config, Config]>;
9304
+ export declare namespace stylistic {
9226
9305
  interface Options extends Pick<PluginOptionsBase<Rules>, 'rules'>, StylisticParameters {}
9227
9306
  type Rules = RuleOptions$5;
9228
9307
  }
@@ -9767,8 +9846,8 @@ type TestValidTitle = [] | [{
9767
9846
  }];
9768
9847
  //#endregion
9769
9848
  //#region src/config/test.d.ts
9770
- declare function test(options?: test.Options): Promise<[Config, Config]>;
9771
- declare namespace test {
9849
+ export declare function test(options?: test.Options): Promise<[Config, Config]>;
9850
+ export declare namespace test {
9772
9851
  interface Options extends PluginOptionsBase<Rules> {}
9773
9852
  type Rules = RuleOptions$4;
9774
9853
  }
@@ -9991,6 +10070,11 @@ interface RuleOptions$3 {
9991
10070
  * @see https://typescript-eslint.io/rules/no-for-in-array
9992
10071
  */
9993
10072
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>;
10073
+ /**
10074
+ * Disallow type operations that resolve to the "empty object" type
10075
+ * @see https://typescript-eslint.io/rules/no-generated-empty-object-type
10076
+ */
10077
+ 'ts/no-generated-empty-object-type'?: Linter.RuleEntry<[]>;
9994
10078
  /**
9995
10079
  * Disallow the use of `eval()`-like functions
9996
10080
  * @see https://typescript-eslint.io/rules/no-implied-eval
@@ -11038,7 +11122,9 @@ type TsNoMeaninglessVoidOperator = [] | [{
11038
11122
  }];
11039
11123
  // ----- ts/no-misused-promises -----
11040
11124
  type TsNoMisusedPromises = [] | [{
11041
- checksConditionals?: boolean;
11125
+ checksConditionals?: (boolean | {
11126
+ flagUnions?: ("all" | "strict" | "none");
11127
+ });
11042
11128
  checksSpreads?: boolean;
11043
11129
  checksVoidReturn?: (boolean | {
11044
11130
  arguments?: boolean;
@@ -11435,8 +11521,8 @@ type TsUnifiedSignatures = [] | [{
11435
11521
  }];
11436
11522
  //#endregion
11437
11523
  //#region src/config/ts.d.ts
11438
- declare function ts(options?: ts.Options): Promise<[Config, Config] | [Config, Config, Config]>;
11439
- declare namespace ts {
11524
+ export declare function ts(options?: ts.Options): Promise<[Config, Config]>;
11525
+ export declare namespace ts {
11440
11526
  interface Options extends PluginOptionsBase<Rules> {
11441
11527
  /**
11442
11528
  * Parser options for TypeScript ESLint parser
@@ -11466,1740 +11552,1740 @@ declare module 'eslint' {
11466
11552
  interface RuleOptions$2 {
11467
11553
  /**
11468
11554
  * Prefer better DOM traversal APIs.
11469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
11555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
11470
11556
  */
11471
11557
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
11472
11558
  /**
11473
11559
  * Removed. Prefer `eslint-plugin-regexp`
11474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
11560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
11475
11561
  * @deprecated
11476
11562
  */
11477
11563
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
11478
11564
  /**
11479
11565
  * Enforce a specific parameter name in catch clauses.
11480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
11566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
11481
11567
  */
11482
11568
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
11483
11569
  /**
11484
11570
  * Enforce consistent class references in static methods.
11485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
11571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
11486
11572
  */
11487
11573
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
11488
11574
  /**
11489
11575
  * Enforce better comment content.
11490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
11576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
11491
11577
  */
11492
11578
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
11493
11579
  /**
11494
11580
  * Enforce a consistent return style for multiline arrow function bodies.
11495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
11581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
11496
11582
  */
11497
11583
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
11498
11584
  /**
11499
11585
  * Enforce consistent assertion style with `node:assert`.
11500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
11586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
11501
11587
  */
11502
11588
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
11503
11589
  /**
11504
11590
  * Enforce consistent naming for boolean names.
11505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
11591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
11506
11592
  */
11507
11593
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
11508
11594
  /**
11509
11595
  * Enforce consistent class member order.
11510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
11596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
11511
11597
  */
11512
11598
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
11513
11599
  /**
11514
11600
  * Enforce consistent spelling of compound words in identifiers.
11515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
11601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
11516
11602
  */
11517
11603
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
11518
11604
  /**
11519
11605
  * Enforce consistent conditional object spread style.
11520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
11606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
11521
11607
  */
11522
11608
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
11523
11609
  /**
11524
11610
  * Prefer passing `Date` directly to the constructor when cloning.
11525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
11611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
11526
11612
  */
11527
11613
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
11528
11614
  /**
11529
11615
  * Use destructured variables over properties.
11530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
11616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
11531
11617
  */
11532
11618
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
11533
11619
  /**
11534
11620
  * Prefer consistent types when spreading a ternary in an array literal.
11535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
11621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
11536
11622
  */
11537
11623
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
11538
11624
  /**
11539
11625
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
11540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
11626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
11541
11627
  */
11542
11628
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
11543
11629
  /**
11544
11630
  * Enforce consistent decorator position on exported classes.
11545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
11631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
11546
11632
  */
11547
11633
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
11548
11634
  /**
11549
11635
  * Move function definitions to the highest possible scope.
11550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
11636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
11551
11637
  */
11552
11638
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
11553
11639
  /**
11554
11640
  * Enforce function syntax by role.
11555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
11641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
11556
11642
  */
11557
11643
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
11558
11644
  /**
11559
11645
  * Enforce consistent JSON file reads before `JSON.parse()`.
11560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
11646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
11561
11647
  */
11562
11648
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
11563
11649
  /**
11564
11650
  * Enforce consistent optional chaining for same-base member access.
11565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
11651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
11566
11652
  */
11567
11653
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
11568
11654
  /**
11569
11655
  * Enforce consistent style for escaping `${` in template literals.
11570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
11656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
11571
11657
  */
11572
11658
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
11573
11659
  /**
11574
11660
  * Enforce consistent labels on tuple type elements.
11575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
11661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
11576
11662
  */
11577
11663
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
11578
11664
  /**
11579
11665
  * Enforce correct `Error` subclassing.
11580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
11666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
11581
11667
  */
11582
11668
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
11583
11669
  /**
11584
11670
  * Enforce consistent default export declarations.
11585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
11671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
11586
11672
  */
11587
11673
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
11588
11674
  /**
11589
11675
  * Enforce consistent style for DOM element dataset access.
11590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
11676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
11591
11677
  */
11592
11678
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
11593
11679
  /**
11594
11680
  * Enforce no spaces between braces.
11595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
11681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
11596
11682
  */
11597
11683
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
11598
11684
  /**
11599
11685
  * Enforce passing a `message` value when creating a built-in error.
11600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
11686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
11601
11687
  */
11602
11688
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
11603
11689
  /**
11604
11690
  * Require escape sequences to use uppercase or lowercase values.
11605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
11691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
11606
11692
  */
11607
11693
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
11608
11694
  /**
11609
11695
  * Add expiration conditions to TODO comments.
11610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
11696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
11611
11697
  */
11612
11698
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
11613
11699
  /**
11614
11700
  * Enforce explicitly comparing the `length` or `size` property of a value.
11615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
11701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
11616
11702
  */
11617
11703
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
11618
11704
  /**
11619
11705
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
11620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
11706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
11621
11707
  */
11622
11708
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
11623
11709
  /**
11624
11710
  * Enforce a case style for filenames and directory names.
11625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
11711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
11626
11712
  */
11627
11713
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
11628
11714
  /**
11629
11715
  * Require identifiers to match a specified regular expression.
11630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
11716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
11631
11717
  */
11632
11718
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
11633
11719
  /**
11634
11720
  * Enforce specific import styles per module.
11635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
11721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
11636
11722
  */
11637
11723
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
11638
11724
  /**
11639
11725
  * Prevent usage of variables from outside the scope of isolated functions.
11640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
11726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
11641
11727
  */
11642
11728
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
11643
11729
  /**
11644
11730
  * Enforce a consistent style for optional loop sources.
11645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
11731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
11646
11732
  */
11647
11733
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
11648
11734
  /**
11649
11735
  * Require or disallow logical assignment operator shorthand
11650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
11736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
11651
11737
  */
11652
11738
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
11653
11739
  /**
11654
11740
  * Limit the depth of nested calls.
11655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
11741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
11656
11742
  */
11657
11743
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
11658
11744
  /**
11659
11745
  * Enforce replacements for variable, property, and filenames.
11660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
11746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
11661
11747
  */
11662
11748
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
11663
11749
  /**
11664
11750
  * Enforce correct use of `new` for builtin constructors.
11665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
11751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
11666
11752
  */
11667
11753
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
11668
11754
  /**
11669
11755
  * Enforce specifying rules to disable in `eslint-disable` comments.
11670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
11756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
11671
11757
  */
11672
11758
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
11673
11759
  /**
11674
11760
  * Disallow recursive access to `this` within getters and setters.
11675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
11761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
11676
11762
  */
11677
11763
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
11678
11764
  /**
11679
11765
  * Disallow bitwise operators where a logical operator was likely intended.
11680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
11766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
11681
11767
  */
11682
11768
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
11683
11769
  /**
11684
11770
  * Disallow anonymous functions and classes as the default export.
11685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
11771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
11686
11772
  */
11687
11773
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
11688
11774
  /**
11689
11775
  * Prevent passing a function reference directly to iterator methods.
11690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
11776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
11691
11777
  */
11692
11778
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
11693
11779
  /**
11694
11780
  * Disallow array accumulation with `Array#concat()` in loops.
11695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
11781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
11696
11782
  */
11697
11783
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
11698
11784
  /**
11699
11785
  * Disallow using reference values as `Array#fill()` values.
11700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
11786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
11701
11787
  */
11702
11788
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
11703
11789
  /**
11704
11790
  * Disallow `.fill()` after `Array.from({length: …})`.
11705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
11791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
11706
11792
  */
11707
11793
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
11708
11794
  /**
11709
11795
  * Disallow front-of-array mutation.
11710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
11796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
11711
11797
  */
11712
11798
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
11713
11799
  /**
11714
11800
  * Disallow using the `this` argument in array methods.
11715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
11801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
11716
11802
  */
11717
11803
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
11718
11804
  /**
11719
11805
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
11720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
11806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
11721
11807
  * @deprecated
11722
11808
  */
11723
11809
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
11724
11810
  /**
11725
11811
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
11726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
11812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
11727
11813
  */
11728
11814
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
11729
11815
  /**
11730
11816
  * Prefer `Array#toReversed()` over `Array#reverse()`.
11731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
11817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
11732
11818
  */
11733
11819
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
11734
11820
  /**
11735
11821
  * Prefer `Array#toSorted()` over `Array#sort()`.
11736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
11822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
11737
11823
  */
11738
11824
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
11739
11825
  /**
11740
11826
  * Disallow sorting arrays to get the minimum or maximum value.
11741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
11827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
11742
11828
  */
11743
11829
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
11744
11830
  /**
11745
11831
  * Prefer `Array#toSpliced()` over `Array#splice()`.
11746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
11832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
11747
11833
  */
11748
11834
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
11749
11835
  /**
11750
11836
  * Disallow asterisk prefixes in documentation comments.
11751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
11837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
11752
11838
  */
11753
11839
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
11754
11840
  /**
11755
11841
  * Disallow async functions as `Promise#finally()` callbacks.
11756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
11842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
11757
11843
  */
11758
11844
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
11759
11845
  /**
11760
11846
  * Disallow member access from await expression.
11761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
11847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
11762
11848
  */
11763
11849
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
11764
11850
  /**
11765
11851
  * Disallow using `await` in `Promise` method parameters.
11766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
11852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
11767
11853
  */
11768
11854
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
11769
11855
  /**
11770
11856
  * Disallow barrel files.
11771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
11857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
11772
11858
  */
11773
11859
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
11774
11860
  /**
11775
11861
  * Disallow unnecessary `Blob` to `File` conversion.
11776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
11862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
11777
11863
  */
11778
11864
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
11779
11865
  /**
11780
11866
  * Disallow boolean-returning sort comparators.
11781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
11867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
11782
11868
  */
11783
11869
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
11784
11870
  /**
11785
11871
  * Disallow `break` and `continue` in nested loops and switches inside loops.
11786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
11872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
11787
11873
  */
11788
11874
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
11789
11875
  /**
11790
11876
  * Prefer drawing canvases directly instead of converting them to images.
11791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
11877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
11792
11878
  */
11793
11879
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
11794
11880
  /**
11795
11881
  * Disallow chained comparisons such as `a < b < c`.
11796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
11882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
11797
11883
  */
11798
11884
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
11799
11885
  /**
11800
11886
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
11801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
11887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
11802
11888
  */
11803
11889
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
11804
11890
  /**
11805
11891
  * Disallow dynamic object property existence checks.
11806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
11892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
11807
11893
  */
11808
11894
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
11809
11895
  /**
11810
11896
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
11811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
11897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
11812
11898
  */
11813
11899
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
11814
11900
  /**
11815
11901
  * Disallow confusing uses of `Array#with()`.
11816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
11902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
11817
11903
  */
11818
11904
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
11819
11905
  /**
11820
11906
  * Do not use leading/trailing space between `console.log` parameters.
11821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
11907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
11822
11908
  */
11823
11909
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
11824
11910
  /**
11825
11911
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
11826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
11912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
11827
11913
  */
11828
11914
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
11829
11915
  /**
11830
11916
  * Disallow declarations before conditional early exits when they are only used after the exit.
11831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
11917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
11832
11918
  */
11833
11919
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
11834
11920
  /**
11835
11921
  * Do not use `document.cookie` directly.
11836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
11922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
11837
11923
  */
11838
11924
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
11839
11925
  /**
11840
11926
  * Disallow two comparisons of the same operands that can be combined into one.
11841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
11927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
11842
11928
  */
11843
11929
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
11844
11930
  /**
11845
11931
  * Disallow duplicate adjacent branches in if chains.
11846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
11932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
11847
11933
  */
11848
11934
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
11849
11935
  /**
11850
11936
  * Disallow adjacent duplicate operands in logical expressions.
11851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
11937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
11852
11938
  */
11853
11939
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
11854
11940
  /**
11855
11941
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
11856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
11942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
11857
11943
  */
11858
11944
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
11859
11945
  /**
11860
11946
  * Disallow duplicate values in `Set` constructor array literals.
11861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
11947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
11862
11948
  */
11863
11949
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
11864
11950
  /**
11865
11951
  * Disallow empty files.
11866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
11952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
11867
11953
  */
11868
11954
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
11869
11955
  /**
11870
11956
  * Disallow assigning to built-in error properties.
11871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
11957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
11872
11958
  */
11873
11959
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
11874
11960
  /**
11875
11961
  * Disallow exports in scripts.
11876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
11962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
11877
11963
  */
11878
11964
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
11879
11965
  /**
11880
11966
  * Prefer `for…of` over the `forEach` method.
11881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
11967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
11882
11968
  */
11883
11969
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
11884
11970
  /**
11885
11971
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
11886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
11972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
11887
11973
  */
11888
11974
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
11889
11975
  /**
11890
11976
  * Disallow assigning properties on the global object.
11891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
11977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
11892
11978
  */
11893
11979
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
11894
11980
  /**
11895
11981
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
11896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
11982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
11897
11983
  * @deprecated
11898
11984
  */
11899
11985
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
11900
11986
  /**
11901
11987
  * Disallow immediate mutation after variable assignment.
11902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
11988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
11903
11989
  */
11904
11990
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
11905
11991
  /**
11906
11992
  * Disallow impossible comparisons against `.length` or `.size`.
11907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
11993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
11908
11994
  */
11909
11995
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
11910
11996
  /**
11911
11997
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
11912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
11998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
11913
11999
  */
11914
12000
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
11915
12001
  /**
11916
12002
  * Disallow incorrect template literal interpolation syntax.
11917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
12003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
11918
12004
  */
11919
12005
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
11920
12006
  /**
11921
12007
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
11922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
12008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
11923
12009
  * @deprecated
11924
12010
  */
11925
12011
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
11926
12012
  /**
11927
12013
  * Disallow `instanceof` with built-in objects
11928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
12014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
11929
12015
  */
11930
12016
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
11931
12017
  /**
11932
12018
  * Disallow calling functions and constructors with an invalid number of arguments.
11933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
12019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
11934
12020
  */
11935
12021
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
11936
12022
  /**
11937
12023
  * Disallow comparing a single character from a string to a multi-character string.
11938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
12024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
11939
12025
  */
11940
12026
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
11941
12027
  /**
11942
12028
  * Disallow invalid options in `fetch()` and `new Request()`.
11943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
12029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
11944
12030
  */
11945
12031
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
11946
12032
  /**
11947
12033
  * Disallow invalid `accept` values on file inputs.
11948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
12034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
11949
12035
  */
11950
12036
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
11951
12037
  /**
11952
12038
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
11953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
12039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
11954
12040
  */
11955
12041
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
11956
12042
  /**
11957
12043
  * Disallow invalid implementations of well-known symbol methods.
11958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
12044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
11959
12045
  */
11960
12046
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
11961
12047
  /**
11962
12048
  * Disallow identifiers starting with `new` or `class`.
11963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
12049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
11964
12050
  */
11965
12051
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
11966
12052
  /**
11967
12053
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
11968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
12054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
11969
12055
  */
11970
12056
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
11971
12057
  /**
11972
12058
  * Disallow event-control method calls after the synchronous event dispatch has finished.
11973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
12059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
11974
12060
  */
11975
12061
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
11976
12062
  /**
11977
12063
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
11978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
12064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
11979
12065
  * @deprecated
11980
12066
  */
11981
12067
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
11982
12068
  /**
11983
12069
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
11984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
12070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
11985
12071
  */
11986
12072
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
11987
12073
  /**
11988
12074
  * Disallow mutating a loop iterable during iteration.
11989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
12075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
11990
12076
  */
11991
12077
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
11992
12078
  /**
11993
12079
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
11994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
12080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
11995
12081
  */
11996
12082
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
11997
12083
  /**
11998
12084
  * Disallow manually wrapped comments.
11999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
12085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
12000
12086
  */
12001
12087
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
12002
12088
  /**
12003
12089
  * Disallow checking a Map key before accessing a different key.
12004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
12090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
12005
12091
  */
12006
12092
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
12007
12093
  /**
12008
12094
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
12009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
12095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
12010
12096
  */
12011
12097
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
12012
12098
  /**
12013
12099
  * Disallow references to missing local resources.
12014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
12100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
12015
12101
  */
12016
12102
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
12017
12103
  /**
12018
12104
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
12019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
12105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
12020
12106
  */
12021
12107
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
12022
12108
  /**
12023
12109
  * Disallow named usage of default import and export.
12024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
12110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
12025
12111
  */
12026
12112
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
12027
12113
  /**
12028
12114
  * Disallow negated array predicate calls.
12029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
12115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
12030
12116
  */
12031
12117
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
12032
12118
  /**
12033
12119
  * Disallow negated comparisons.
12034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
12120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
12035
12121
  */
12036
12122
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
12037
12123
  /**
12038
12124
  * Disallow negated conditions.
12039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
12125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
12040
12126
  */
12041
12127
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
12042
12128
  /**
12043
12129
  * Disallow negated expression in equality check.
12044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
12130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
12045
12131
  */
12046
12132
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
12047
12133
  /**
12048
12134
  * Disallow nested ternary expressions.
12049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
12135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
12050
12136
  */
12051
12137
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
12052
12138
  /**
12053
12139
  * Disallow `new Array()`.
12054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
12140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
12055
12141
  */
12056
12142
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
12057
12143
  /**
12058
12144
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
12059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
12145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
12060
12146
  */
12061
12147
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
12062
12148
  /**
12063
12149
  * Disallow non-function values with function-style verb prefixes.
12064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
12150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
12065
12151
  */
12066
12152
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
12067
12153
  /**
12068
12154
  * Disallow non-standard properties on built-in objects.
12069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
12155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
12070
12156
  */
12071
12157
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
12072
12158
  /**
12073
12159
  * Disallow the use of the `null` literal.
12074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
12160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
12075
12161
  */
12076
12162
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
12077
12163
  /**
12078
12164
  * Disallow the use of objects as default parameters.
12079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
12165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
12080
12166
  */
12081
12167
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
12082
12168
  /**
12083
12169
  * Disallow `Object` methods with `Map` or `Set`.
12084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
12170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
12085
12171
  */
12086
12172
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
12087
12173
  /**
12088
12174
  * Disallow optional chaining on undeclared variables.
12089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
12175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
12090
12176
  */
12091
12177
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
12092
12178
  /**
12093
12179
  * Disallow `process.exit()`.
12094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
12180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
12095
12181
  */
12096
12182
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
12097
12183
  /**
12098
12184
  * Disallow comparisons made redundant by an equality check in the same logical AND.
12099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
12185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
12100
12186
  */
12101
12187
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
12102
12188
  /**
12103
12189
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
12104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
12190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
12105
12191
  */
12106
12192
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
12107
12193
  /**
12108
12194
  * Disallow selector syntax in DOM names.
12109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
12195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
12110
12196
  */
12111
12197
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
12112
12198
  /**
12113
12199
  * Disallow shorthand properties that override related longhand properties.
12114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
12200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
12115
12201
  */
12116
12202
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
12117
12203
  /**
12118
12204
  * Disallow passing single-element arrays to `Promise` methods.
12119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
12205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
12120
12206
  */
12121
12207
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
12122
12208
  /**
12123
12209
  * Disallow classes that only have static members.
12124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
12210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
12125
12211
  */
12126
12212
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
12127
12213
  /**
12128
12214
  * Prefer comparing values directly over subtracting and comparing to `0`.
12129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
12215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
12130
12216
  */
12131
12217
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
12132
12218
  /**
12133
12219
  * Disallow `then` property.
12134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
12220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
12135
12221
  */
12136
12222
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
12137
12223
  /**
12138
12224
  * Disallow assigning `this` to a variable.
12139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
12225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
12140
12226
  */
12141
12227
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
12142
12228
  /**
12143
12229
  * Disallow `this` outside of classes.
12144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
12230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
12145
12231
  */
12146
12232
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
12147
12233
  /**
12148
12234
  * Disallow assigning to top-level variables from inside functions.
12149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
12235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
12150
12236
  */
12151
12237
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
12152
12238
  /**
12153
12239
  * Disallow top-level side effects in exported modules.
12154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
12240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
12155
12241
  */
12156
12242
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
12157
12243
  /**
12158
12244
  * Disallow `all` as a transition property.
12159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
12245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
12160
12246
  */
12161
12247
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
12162
12248
  /**
12163
12249
  * Disallow comparing `undefined` using `typeof`.
12164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
12250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
12165
12251
  */
12166
12252
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
12167
12253
  /**
12168
12254
  * Disallow referencing methods without calling them.
12169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
12255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
12170
12256
  */
12171
12257
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
12172
12258
  /**
12173
12259
  * Require class members to be declared.
12174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
12260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
12175
12261
  */
12176
12262
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
12177
12263
  /**
12178
12264
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
12179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
12265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
12180
12266
  */
12181
12267
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
12182
12268
  /**
12183
12269
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
12184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
12270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
12185
12271
  */
12186
12272
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
12187
12273
  /**
12188
12274
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
12189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
12275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
12190
12276
  */
12191
12277
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
12192
12278
  /**
12193
12279
  * Disallow awaiting non-promise values.
12194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
12280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
12195
12281
  */
12196
12282
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
12197
12283
  /**
12198
12284
  * Disallow unnecessary comparisons against boolean literals.
12199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
12285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
12200
12286
  */
12201
12287
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
12202
12288
  /**
12203
12289
  * Disallow unnecessary options in `fetch()` and `new Request()`.
12204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
12290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
12205
12291
  */
12206
12292
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
12207
12293
  /**
12208
12294
  * Disallow unnecessary `globalThis` references.
12209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
12295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
12210
12296
  */
12211
12297
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
12212
12298
  /**
12213
12299
  * Disallow unnecessary nested ternary expressions.
12214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
12300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
12215
12301
  */
12216
12302
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
12217
12303
  /**
12218
12304
  * Enforce the use of built-in methods instead of unnecessary polyfills.
12219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
12305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
12220
12306
  */
12221
12307
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
12222
12308
  /**
12223
12309
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
12224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
12310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
12225
12311
  */
12226
12312
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
12227
12313
  /**
12228
12314
  * Disallow `Array#splice()` when simpler alternatives exist.
12229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
12315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
12230
12316
  */
12231
12317
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
12232
12318
  /**
12233
12319
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
12234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
12320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
12235
12321
  */
12236
12322
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
12237
12323
  /**
12238
12324
  * Disallow unreadable array destructuring.
12239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
12325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
12240
12326
  */
12241
12327
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
12242
12328
  /**
12243
12329
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
12244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
12330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
12245
12331
  */
12246
12332
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
12247
12333
  /**
12248
12334
  * Disallow unreadable IIFEs.
12249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
12335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
12250
12336
  */
12251
12337
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
12252
12338
  /**
12253
12339
  * Disallow unreadable `new` expressions.
12254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
12340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
12255
12341
  */
12256
12342
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
12257
12343
  /**
12258
12344
  * Disallow unreadable object destructuring.
12259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
12345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
12260
12346
  */
12261
12347
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
12262
12348
  /**
12263
12349
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
12264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
12350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
12265
12351
  */
12266
12352
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
12267
12353
  /**
12268
12354
  * Disallow unsafe DOM HTML APIs.
12269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
12355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
12270
12356
  */
12271
12357
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
12272
12358
  /**
12273
12359
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
12274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
12360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
12275
12361
  */
12276
12362
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
12277
12363
  /**
12278
12364
  * Disallow unsafe values as property keys.
12279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
12365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
12280
12366
  */
12281
12367
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
12282
12368
  /**
12283
12369
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
12284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
12370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
12285
12371
  */
12286
12372
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
12287
12373
  /**
12288
12374
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
12289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
12375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
12290
12376
  */
12291
12377
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
12292
12378
  /**
12293
12379
  * Disallow ignoring the return value of selected array methods.
12294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
12380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
12295
12381
  */
12296
12382
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
12297
12383
  /**
12298
12384
  * Disallow unused object properties.
12299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
12385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
12300
12386
  */
12301
12387
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
12302
12388
  /**
12303
12389
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
12304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
12390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
12305
12391
  */
12306
12392
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
12307
12393
  /**
12308
12394
  * Disallow useless type coercions of values that are already of the target type.
12309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
12395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
12310
12396
  */
12311
12397
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
12312
12398
  /**
12313
12399
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
12314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
12400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
12315
12401
  */
12316
12402
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
12317
12403
  /**
12318
12404
  * Disallow useless compound assignments such as `x += 0`.
12319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
12405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
12320
12406
  */
12321
12407
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
12322
12408
  /**
12323
12409
  * Disallow useless concatenation of literals.
12324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
12410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
12325
12411
  */
12326
12412
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
12327
12413
  /**
12328
12414
  * Disallow useless `continue` statements.
12329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
12415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
12330
12416
  */
12331
12417
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
12332
12418
  /**
12333
12419
  * Disallow unnecessary existence checks before deletion.
12334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
12420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
12335
12421
  */
12336
12422
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
12337
12423
  /**
12338
12424
  * Disallow `else` after a statement that exits.
12339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
12425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
12340
12426
  */
12341
12427
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
12342
12428
  /**
12343
12429
  * Disallow unnecessary `Error.captureStackTrace(…)`.
12344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
12430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
12345
12431
  */
12346
12432
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
12347
12433
  /**
12348
12434
  * Disallow useless fallback when spreading in object literals.
12349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
12435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
12350
12436
  */
12351
12437
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
12352
12438
  /**
12353
12439
  * Disallow unnecessary `.toArray()` on iterators.
12354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
12440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
12355
12441
  */
12356
12442
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
12357
12443
  /**
12358
12444
  * Disallow useless array length check.
12359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
12445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
12360
12446
  */
12361
12447
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
12362
12448
  /**
12363
12449
  * Disallow unnecessary operands in logical expressions involving boolean literals.
12364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
12450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
12365
12451
  */
12366
12452
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
12367
12453
  /**
12368
12454
  * Disallow useless overrides of class methods.
12369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
12455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
12370
12456
  */
12371
12457
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
12372
12458
  /**
12373
12459
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
12374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
12460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
12375
12461
  */
12376
12462
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
12377
12463
  /**
12378
12464
  * Disallow redundant re-exports.
12379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
12465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
12380
12466
  */
12381
12467
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
12382
12468
  /**
12383
12469
  * Disallow simple recursive function calls that can be replaced with a loop.
12384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
12470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
12385
12471
  */
12386
12472
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
12387
12473
  /**
12388
12474
  * Disallow unnecessary spread.
12389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
12475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
12390
12476
  */
12391
12477
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
12392
12478
  /**
12393
12479
  * Disallow useless case in switch statements.
12394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
12480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
12395
12481
  */
12396
12482
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
12397
12483
  /**
12398
12484
  * Disallow useless template literal expressions.
12399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
12485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
12400
12486
  */
12401
12487
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
12402
12488
  /**
12403
12489
  * Disallow useless `undefined`.
12404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
12490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
12405
12491
  */
12406
12492
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
12407
12493
  /**
12408
12494
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
12409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
12495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
12410
12496
  */
12411
12497
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
12412
12498
  /**
12413
12499
  * Disallow number literals with zero fractions or dangling dots.
12414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
12500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
12415
12501
  */
12416
12502
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
12417
12503
  /**
12418
12504
  * Enforce proper case for numeric literals.
12419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
12505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
12420
12506
  */
12421
12507
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
12422
12508
  /**
12423
12509
  * Enforce the style of numeric separators by correctly grouping digits.
12424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
12510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
12425
12511
  */
12426
12512
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
12427
12513
  /**
12428
12514
  * Require assignment operator shorthand where possible.
12429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
12515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
12430
12516
  */
12431
12517
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
12432
12518
  /**
12433
12519
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
12434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
12520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
12435
12521
  */
12436
12522
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
12437
12523
  /**
12438
12524
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
12439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
12525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
12440
12526
  */
12441
12527
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
12442
12528
  /**
12443
12529
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
12444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
12530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
12445
12531
  */
12446
12532
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
12447
12533
  /**
12448
12534
  * Prefer an options object over a boolean in `.addEventListener()`.
12449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
12535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
12450
12536
  */
12451
12537
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
12452
12538
  /**
12453
12539
  * Prefer `AggregateError` when throwing collected errors.
12454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
12540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
12455
12541
  */
12456
12542
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
12457
12543
  /**
12458
12544
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
12459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
12545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
12460
12546
  */
12461
12547
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
12462
12548
  /**
12463
12549
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
12464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
12550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
12465
12551
  */
12466
12552
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
12467
12553
  /**
12468
12554
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
12469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
12555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
12470
12556
  */
12471
12557
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
12472
12558
  /**
12473
12559
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
12474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
12560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
12475
12561
  */
12476
12562
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
12477
12563
  /**
12478
12564
  * Prefer using the `Array.from()` mapping function argument.
12479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
12565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
12480
12566
  */
12481
12567
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
12482
12568
  /**
12483
12569
  * Prefer `Array.from({length}, …)` when creating range arrays.
12484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
12570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
12485
12571
  */
12486
12572
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
12487
12573
  /**
12488
12574
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
12489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
12575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
12490
12576
  */
12491
12577
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
12492
12578
  /**
12493
12579
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
12494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
12580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
12495
12581
  */
12496
12582
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
12497
12583
  /**
12498
12584
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
12499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
12585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
12500
12586
  */
12501
12587
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
12502
12588
  /**
12503
12589
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
12504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
12590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
12505
12591
  */
12506
12592
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
12507
12593
  /**
12508
12594
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
12509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
12595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
12510
12596
  */
12511
12597
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
12512
12598
  /**
12513
12599
  * Prefer `.at()` method for index access and `String#charAt()`.
12514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
12600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
12515
12601
  */
12516
12602
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
12517
12603
  /**
12518
12604
  * Prefer `await` over promise chaining.
12519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
12605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
12520
12606
  */
12521
12607
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
12522
12608
  /**
12523
12609
  * Prefer `BigInt` literals over the constructor.
12524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
12610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
12525
12611
  */
12526
12612
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
12527
12613
  /**
12528
12614
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
12529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
12615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
12530
12616
  */
12531
12617
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
12532
12618
  /**
12533
12619
  * Prefer block statements over IIFEs used only for scoping.
12534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
12620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
12535
12621
  */
12536
12622
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
12537
12623
  /**
12538
12624
  * Prefer directly returning boolean expressions over `if` statements.
12539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
12625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
12540
12626
  */
12541
12627
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
12542
12628
  /**
12543
12629
  * Prefer class field declarations over `this` assignments in constructors.
12544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
12630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
12545
12631
  */
12546
12632
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
12547
12633
  /**
12548
12634
  * Prefer using `Element#classList.toggle()` to toggle class names.
12549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
12635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
12550
12636
  */
12551
12637
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
12552
12638
  /**
12553
12639
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
12554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
12640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
12555
12641
  */
12556
12642
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
12557
12643
  /**
12558
12644
  * Prefer early continues over whole-loop conditional wrapping.
12559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
12645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
12560
12646
  */
12561
12647
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
12562
12648
  /**
12563
12649
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
12564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
12650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
12565
12651
  */
12566
12652
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
12567
12653
  /**
12568
12654
  * Prefer default parameters over reassignment.
12569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
12655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
12570
12656
  */
12571
12657
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
12572
12658
  /**
12573
12659
  * Prefer direct iteration over default iterator method calls.
12574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
12660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
12575
12661
  */
12576
12662
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
12577
12663
  /**
12578
12664
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
12579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
12665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
12580
12666
  */
12581
12667
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
12582
12668
  /**
12583
12669
  * Prefer `Element#append()` over `Node#appendChild()`.
12584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
12670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
12585
12671
  */
12586
12672
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
12587
12673
  /**
12588
12674
  * Renamed to `unicorn/dom-node-dataset`.
12589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
12675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
12590
12676
  * @deprecated
12591
12677
  */
12592
12678
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
12593
12679
  /**
12594
12680
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
12595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
12681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
12596
12682
  */
12597
12683
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
12598
12684
  /**
12599
12685
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
12600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
12686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
12601
12687
  */
12602
12688
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
12603
12689
  /**
12604
12690
  * Prefer `.replaceChildren()` when emptying DOM children.
12605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
12691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
12606
12692
  */
12607
12693
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
12608
12694
  /**
12609
12695
  * Prefer `.textContent` over `.innerText`.
12610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
12696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
12611
12697
  */
12612
12698
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
12613
12699
  /**
12614
12700
  * Prefer early returns over full-function conditional wrapping.
12615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
12701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
12616
12702
  */
12617
12703
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
12618
12704
  /**
12619
12705
  * Prefer `else if` over adjacent `if` statements with related conditions.
12620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
12706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
12621
12707
  */
12622
12708
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
12623
12709
  /**
12624
12710
  * Prefer `Error.isError()` when checking for errors.
12625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
12711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
12626
12712
  */
12627
12713
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
12628
12714
  /**
12629
12715
  * Prefer `EventTarget` over `EventEmitter`.
12630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
12716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
12631
12717
  */
12632
12718
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
12633
12719
  /**
12634
12720
  * Prefer explicit viewport units.
12635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
12721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
12636
12722
  */
12637
12723
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
12638
12724
  /**
12639
12725
  * Prefer `export…from` when re-exporting.
12640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
12726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
12641
12727
  */
12642
12728
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
12643
12729
  /**
12644
12730
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
12645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
12731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
12646
12732
  */
12647
12733
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
12648
12734
  /**
12649
12735
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
12650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
12736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
12651
12737
  */
12652
12738
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
12653
12739
  /**
12654
12740
  * Prefer global numeric constants over `Number` static properties.
12655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
12741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
12656
12742
  */
12657
12743
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
12658
12744
  /**
12659
12745
  * Prefer `globalThis` over `window`, `self`, and `global`.
12660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
12746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
12661
12747
  */
12662
12748
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
12663
12749
  /**
12664
12750
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
12665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
12751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
12666
12752
  */
12667
12753
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
12668
12754
  /**
12669
12755
  * Prefer `.has()` when checking existence.
12670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
12756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
12671
12757
  */
12672
12758
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
12673
12759
  /**
12674
12760
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
12675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
12761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
12676
12762
  */
12677
12763
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
12678
12764
  /**
12679
12765
  * Prefer HTTPS over HTTP.
12680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
12766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
12681
12767
  */
12682
12768
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
12683
12769
  /**
12684
12770
  * Prefer identifiers over string literals in import and export specifiers.
12685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
12771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
12686
12772
  */
12687
12773
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
12688
12774
  /**
12689
12775
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
12690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
12776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
12691
12777
  */
12692
12778
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
12693
12779
  /**
12694
12780
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
12695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
12781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
12696
12782
  */
12697
12783
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
12698
12784
  /**
12699
12785
  * Prefer `.includes()` over repeated equality comparisons.
12700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
12786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
12701
12787
  */
12702
12788
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
12703
12789
  /**
12704
12790
  * Prefer passing iterables directly to constructors instead of filling empty collections.
12705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
12791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
12706
12792
  */
12707
12793
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
12708
12794
  /**
12709
12795
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
12710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
12796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
12711
12797
  */
12712
12798
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
12713
12799
  /**
12714
12800
  * Prefer iterator helpers over temporary arrays from iterators.
12715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
12801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
12716
12802
  */
12717
12803
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
12718
12804
  /**
12719
12805
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
12720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
12806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
12721
12807
  */
12722
12808
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
12723
12809
  /**
12724
12810
  * Prefer moving `.toArray()` to the end of iterator helper chains.
12725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
12811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
12726
12812
  */
12727
12813
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
12728
12814
  /**
12729
12815
  * Renamed to `unicorn/consistent-json-file-read`.
12730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
12816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
12731
12817
  * @deprecated
12732
12818
  */
12733
12819
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
12734
12820
  /**
12735
12821
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
12736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
12822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
12737
12823
  */
12738
12824
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
12739
12825
  /**
12740
12826
  * Prefer `location.assign()` over assigning to `location.href`.
12741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
12827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
12742
12828
  */
12743
12829
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
12744
12830
  /**
12745
12831
  * Prefer using a logical operator over a ternary.
12746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
12832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
12747
12833
  */
12748
12834
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
12749
12835
  /**
12750
12836
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
12751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
12837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
12752
12838
  */
12753
12839
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
12754
12840
  /**
12755
12841
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
12756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
12842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
12757
12843
  */
12758
12844
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
12759
12845
  /**
12760
12846
  * Prefer `Math` constants over their approximate numeric values.
12761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
12847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
12762
12848
  */
12763
12849
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
12764
12850
  /**
12765
12851
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
12766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
12852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
12767
12853
  */
12768
12854
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
12769
12855
  /**
12770
12856
  * Prefer `Math.trunc()` for truncating numbers.
12771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
12857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
12772
12858
  */
12773
12859
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
12774
12860
  /**
12775
12861
  * Prefer moving ternaries into the minimal varying part of an expression.
12776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
12862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
12777
12863
  */
12778
12864
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
12779
12865
  /**
12780
12866
  * Prefer modern DOM APIs.
12781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
12867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
12782
12868
  */
12783
12869
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
12784
12870
  /**
12785
12871
  * Prefer modern `Math` APIs over legacy patterns.
12786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
12872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
12787
12873
  */
12788
12874
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
12789
12875
  /**
12790
12876
  * Prefer JavaScript modules (ESM) over CommonJS.
12791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
12877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
12792
12878
  */
12793
12879
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
12794
12880
  /**
12795
12881
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
12796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
12882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
12797
12883
  */
12798
12884
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
12799
12885
  /**
12800
12886
  * Prefer negative index over `.length - index` when possible.
12801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
12887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
12802
12888
  */
12803
12889
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
12804
12890
  /**
12805
12891
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
12806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
12892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
12807
12893
  */
12808
12894
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
12809
12895
  /**
12810
12896
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
12811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
12897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
12812
12898
  */
12813
12899
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
12814
12900
  /**
12815
12901
  * Prefer `Number.isSafeInteger()` over integer checks.
12816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
12902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
12817
12903
  */
12818
12904
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
12819
12905
  /**
12820
12906
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
12821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
12907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
12822
12908
  */
12823
12909
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
12824
12910
  /**
12825
12911
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
12826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
12912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
12827
12913
  */
12828
12914
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
12829
12915
  /**
12830
12916
  * Prefer object destructuring defaults over default object literals with spread.
12831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
12917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
12832
12918
  */
12833
12919
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
12834
12920
  /**
12835
12921
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
12836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
12922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
12837
12923
  */
12838
12924
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
12839
12925
  /**
12840
12926
  * Prefer the most specific `Object` iterable method.
12841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
12927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
12842
12928
  */
12843
12929
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
12844
12930
  /**
12845
12931
  * Prefer observer APIs over resize and scroll listeners with layout reads.
12846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
12932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
12847
12933
  */
12848
12934
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
12849
12935
  /**
12850
12936
  * Prefer omitting the `catch` binding parameter.
12851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
12937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
12852
12938
  */
12853
12939
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
12854
12940
  /**
12855
12941
  * Prefer `Path2D` for repeatedly drawn canvas paths.
12856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
12942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
12857
12943
  */
12858
12944
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
12859
12945
  /**
12860
12946
  * Prefer private class fields over the underscore-prefix convention.
12861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
12947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
12862
12948
  */
12863
12949
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
12864
12950
  /**
12865
12951
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
12866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
12952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
12867
12953
  */
12868
12954
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
12869
12955
  /**
12870
12956
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
12871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
12957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
12872
12958
  */
12873
12959
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
12874
12960
  /**
12875
12961
  * Prefer borrowing methods from the prototype instead of the instance.
12876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
12962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
12877
12963
  */
12878
12964
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
12879
12965
  /**
12880
12966
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
12881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
12967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
12882
12968
  */
12883
12969
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
12884
12970
  /**
12885
12971
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
12886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
12972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
12887
12973
  */
12888
12974
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
12889
12975
  /**
12890
12976
  * Prefer `Reflect.apply()` over `Function#apply()`.
12891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
12977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
12892
12978
  */
12893
12979
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
12894
12980
  /**
12895
12981
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
12896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
12982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
12897
12983
  */
12898
12984
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
12899
12985
  /**
12900
12986
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
12901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
12987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
12902
12988
  */
12903
12989
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
12904
12990
  /**
12905
12991
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
12906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
12992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
12907
12993
  */
12908
12994
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
12909
12995
  /**
12910
12996
  * Prefer `:scope` when using element query selector methods.
12911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
12997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
12912
12998
  */
12913
12999
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
12914
13000
  /**
12915
13001
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
12916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
13002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
12917
13003
  */
12918
13004
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
12919
13005
  /**
12920
13006
  * Prefer `Set` methods for Set operations.
12921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
13007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
12922
13008
  */
12923
13009
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
12924
13010
  /**
12925
13011
  * Prefer using `Set#size` instead of `Array#length`.
12926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
13012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
12927
13013
  */
12928
13014
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
12929
13015
  /**
12930
13016
  * Prefer arrow function properties over methods with a single return.
12931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
13017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
12932
13018
  */
12933
13019
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
12934
13020
  /**
12935
13021
  * Prefer simple conditions first in logical expressions.
12936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
13022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
12937
13023
  */
12938
13024
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
12939
13025
  /**
12940
13026
  * Prefer a simple comparison function for `Array#sort()`.
12941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
13027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
12942
13028
  */
12943
13029
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
12944
13030
  /**
12945
13031
  * Prefer simplified conditions.
12946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
13032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
12947
13033
  */
12948
13034
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
12949
13035
  /**
12950
13036
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
12951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
13037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
12952
13038
  */
12953
13039
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
12954
13040
  /**
12955
13041
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
12956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
13042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
12957
13043
  */
12958
13044
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
12959
13045
  /**
12960
13046
  * Prefer a single object destructuring declaration per local const source.
12961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
13047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
12962
13048
  */
12963
13049
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
12964
13050
  /**
12965
13051
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
12966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
13052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
12967
13053
  */
12968
13054
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
12969
13055
  /**
12970
13056
  * Prefer declaring variables in the smallest possible scope.
12971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
13057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
12972
13058
  */
12973
13059
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
12974
13060
  /**
12975
13061
  * Prefer `String#split()` with a limit.
12976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
13062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
12977
13063
  */
12978
13064
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
12979
13065
  /**
12980
13066
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
12981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
13067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
12982
13068
  */
12983
13069
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
12984
13070
  /**
12985
13071
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
12986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
13072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
12987
13073
  */
12988
13074
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
12989
13075
  /**
12990
13076
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
12991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
13077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
12992
13078
  */
12993
13079
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
12994
13080
  /**
12995
13081
  * Prefer using the `String.raw` tag to avoid escaping `\`.
12996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
13082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
12997
13083
  */
12998
13084
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
12999
13085
  /**
13000
13086
  * Prefer `String#repeat()` for repeated whitespace.
13001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
13087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
13002
13088
  */
13003
13089
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
13004
13090
  /**
13005
13091
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
13006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
13092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
13007
13093
  */
13008
13094
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
13009
13095
  /**
13010
13096
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
13011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
13097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
13012
13098
  */
13013
13099
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
13014
13100
  /**
13015
13101
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
13016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
13102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
13017
13103
  */
13018
13104
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
13019
13105
  /**
13020
13106
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
13021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
13107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
13022
13108
  */
13023
13109
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
13024
13110
  /**
13025
13111
  * Prefer using `structuredClone` to create a deep clone.
13026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
13112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
13027
13113
  */
13028
13114
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13029
13115
  /**
13030
13116
  * Prefer `switch` over multiple `else-if`.
13031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
13117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
13032
13118
  */
13033
13119
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
13034
13120
  /**
13035
13121
  * Prefer `Temporal` over `Date`.
13036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
13122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
13037
13123
  */
13038
13124
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
13039
13125
  /**
13040
13126
  * Prefer ternary expressions over simple `if` statements that return or assign values.
13041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
13127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
13042
13128
  */
13043
13129
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
13044
13130
  /**
13045
13131
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
13046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
13132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
13047
13133
  */
13048
13134
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
13049
13135
  /**
13050
13136
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
13051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
13137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
13052
13138
  */
13053
13139
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
13054
13140
  /**
13055
13141
  * Prefer top-level await over top-level promises and async function calls.
13056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
13142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
13057
13143
  */
13058
13144
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
13059
13145
  /**
13060
13146
  * Enforce throwing `TypeError` in type checking conditions.
13061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
13147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
13062
13148
  */
13063
13149
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
13064
13150
  /**
13065
13151
  * Require type literals to be last in union types.
13066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
13152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
13067
13153
  */
13068
13154
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
13069
13155
  /**
13070
13156
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
13071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
13157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
13072
13158
  */
13073
13159
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
13074
13160
  /**
13075
13161
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
13076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
13162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
13077
13163
  */
13078
13164
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
13079
13165
  /**
13080
13166
  * Prefer Unicode code point escapes over legacy escape sequences.
13081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
13167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
13082
13168
  */
13083
13169
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
13084
13170
  /**
13085
13171
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
13086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
13172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
13087
13173
  */
13088
13174
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
13089
13175
  /**
13090
13176
  * Prefer `URL#href` over stringifying a `URL`.
13091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
13177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
13092
13178
  */
13093
13179
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
13094
13180
  /**
13095
13181
  * Prefer `URLSearchParams` over manually splitting query strings.
13096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
13182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
13097
13183
  */
13098
13184
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
13099
13185
  /**
13100
13186
  * Prefer putting the condition in the while statement.
13101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
13187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
13102
13188
  */
13103
13189
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
13104
13190
  /**
13105
13191
  * Renamed to `unicorn/name-replacements`.
13106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
13192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
13107
13193
  * @deprecated
13108
13194
  */
13109
13195
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
13110
13196
  /**
13111
13197
  * Enforce consistent relative URL style.
13112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
13198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
13113
13199
  */
13114
13200
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13115
13201
  /**
13116
13202
  * Enforce using the separator argument with `Array#join()`.
13117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
13203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
13118
13204
  */
13119
13205
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
13120
13206
  /**
13121
13207
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
13122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
13208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
13123
13209
  */
13124
13210
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
13125
13211
  /**
13126
13212
  * Require `CSS.escape()` for interpolated values in CSS selectors.
13127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
13213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
13128
13214
  */
13129
13215
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
13130
13216
  /**
13131
13217
  * Require configured YAML frontmatter fields.
13132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
13218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
13133
13219
  */
13134
13220
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
13135
13221
  /**
13136
13222
  * Require non-empty module attributes for imports and exports
13137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
13223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
13138
13224
  */
13139
13225
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
13140
13226
  /**
13141
13227
  * Require non-empty specifier list in import and export statements.
13142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
13228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
13143
13229
  */
13144
13230
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
13145
13231
  /**
13146
13232
  * Enforce using the digits argument with `Number#toFixed()`.
13147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13148
13234
  */
13149
13235
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
13150
13236
  /**
13151
13237
  * Require passive event listeners for high-frequency events.
13152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
13238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
13153
13239
  */
13154
13240
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
13155
13241
  /**
13156
13242
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
13157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
13243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
13158
13244
  */
13159
13245
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
13160
13246
  /**
13161
13247
  * Require boolean-returning Proxy traps to return booleans.
13162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
13248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
13163
13249
  */
13164
13250
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
13165
13251
  /**
13166
13252
  * Enforce a consistent style for single-line block comments.
13167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
13253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
13168
13254
  */
13169
13255
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
13170
13256
  /**
13171
13257
  * Enforce better string content.
13172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
13258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
13173
13259
  */
13174
13260
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
13175
13261
  /**
13176
13262
  * Enforce consistent brace style for `case` clauses.
13177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
13263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
13178
13264
  */
13179
13265
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13180
13266
  /**
13181
13267
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
13182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
13268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
13183
13269
  */
13184
13270
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
13185
13271
  /**
13186
13272
  * Fix whitespace-insensitive template indentation.
13187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
13273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
13188
13274
  */
13189
13275
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
13190
13276
  /**
13191
13277
  * Enforce consistent case for text encoding identifiers.
13192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
13278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
13193
13279
  */
13194
13280
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13195
13281
  /**
13196
13282
  * Require `new` when creating an error.
13197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
13283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
13198
13284
  */
13199
13285
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
13200
13286
  /**
13201
13287
  * Limit the complexity of `try` blocks.
13202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
13288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
13203
13289
  */
13204
13290
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
13205
13291
  }
@@ -13660,8 +13746,8 @@ type UnicornTryComplexity = [] | [{
13660
13746
  }];
13661
13747
  //#endregion
13662
13748
  //#region src/config/unicorn.d.ts
13663
- declare function unicorn(options?: unicorn.Options): Promise<[Config, Config, Config]>;
13664
- declare namespace unicorn {
13749
+ export declare function unicorn(options?: unicorn.Options): Promise<[Config, Config, Config]>;
13750
+ export declare namespace unicorn {
13665
13751
  interface Options extends PluginOptionsBase<Rules> {}
13666
13752
  type Rules = RuleOptions$2;
13667
13753
  }
@@ -13721,8 +13807,8 @@ type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
13721
13807
  })];
13722
13808
  //#endregion
13723
13809
  //#region src/config/unused-imports.d.ts
13724
- declare function unusedImports(options?: unusedImports.Options): Promise<[Config, Config]>;
13725
- declare namespace unusedImports {
13810
+ export declare function unusedImports(options?: unusedImports.Options): Promise<[Config, Config]>;
13811
+ export declare namespace unusedImports {
13726
13812
  interface Options extends PluginOptionsBase<Rules> {}
13727
13813
  type Rules = RuleOptions$1;
13728
13814
  }
@@ -14114,18 +14200,28 @@ type YmlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
14114
14200
  }];
14115
14201
  //#endregion
14116
14202
  //#region src/config/yml.d.ts
14117
- declare function yml(options?: yml.Options): Promise<[Config, Config]>;
14118
- declare namespace yml {
14203
+ export declare function yml(options?: yml.Options): Promise<[Config, Config]>;
14204
+ export declare namespace yml {
14119
14205
  interface Options extends PluginOptionsBase<Rules> {}
14120
14206
  type Rules = RuleOptions;
14121
14207
  }
14208
+ declare namespace config_d_exports {
14209
+ export { e18e, es, ignores, imports, jsdoc, jsonc, jsx, markdown, next, node, perfectionist, react, stylistic, test, ts, unicorn, unusedImports, yml };
14210
+ }
14122
14211
  //#endregion
14123
14212
  //#region src/defineConfig.d.ts
14124
- interface DefineConfigOptions extends ignores.Options {
14213
+ export interface DefineConfigOptions extends ignores.Options {
14214
+ /**
14215
+ * Additional override config entries appended last.
14216
+ *
14217
+ * Overrides are always applied at the end of the final config array so they
14218
+ * win over the base preset and any todo layers.
14219
+ */
14220
+ overrides?: Array<Config> | undefined;
14125
14221
  /**
14126
14222
  * Plugins configuration
14127
14223
  */
14128
- plugins?: {
14224
+ plugins?: undefined | {
14129
14225
  'e18e'?: boolean | e18e.Options | undefined;
14130
14226
  'es'?: boolean | es.Options | undefined;
14131
14227
  'import'?: boolean | imports.Options | undefined;
@@ -14147,25 +14243,45 @@ interface DefineConfigOptions extends ignores.Options {
14147
14243
  /**
14148
14244
  * Override rules
14149
14245
  */
14150
- rules?: eslint.Linter.RulesRecord;
14246
+ rules?: eslint.Linter.RulesRecord | undefined;
14247
+ /**
14248
+ * Additional config entries appended after the base configuration.
14249
+ *
14250
+ * They are meant to be temporary rules overrides that need a fix
14251
+ */
14252
+ todo?: Array<Config> | undefined;
14151
14253
  }
14152
- declare function defineConfig(options?: DefineConfigOptions): Promise<Array<Config>>;
14254
+ export declare function defineConfig(options?: DefineConfigOptions): Promise<Array<Config>>;
14153
14255
  //#endregion
14154
14256
  //#region src/meta.d.ts
14155
- declare const meta: Readonly<{
14257
+ export declare const meta: Readonly<{
14156
14258
  buildNumber: number;
14157
14259
  name: string;
14158
14260
  version: string;
14159
14261
  }>;
14160
14262
  //#endregion
14161
14263
  //#region src/restrictedGlobals.d.ts
14162
- declare const restrictedGlobals: Readonly<RestrictedGlobals>;
14264
+ /**
14265
+ * Default restricted globals used by the ESLint rule no-restricted-globals.
14266
+ *
14267
+ * @see https://eslint.org/docs/latest/rules/no-restricted-globals
14268
+ */
14269
+ export declare const restrictedGlobals: Readonly<RestrictedGlobals>;
14163
14270
  //#endregion
14164
14271
  //#region src/restrictedImportPaths.d.ts
14165
14272
  /**
14166
14273
  * This file contains the list of restricted import paths used in the ESLint configuration.
14274
+ *
14275
+ * @see https://eslint.org/docs/latest/rules/no-restricted-imports
14276
+ */
14277
+ export declare const restrictedImportPaths: Readonly<RestrictedImportPaths>;
14278
+ //#endregion
14279
+ //#region src/restrictedSyntax.d.ts
14280
+ /**
14281
+ * Default restricted syntax used by the ESLint rule no-restricted-syntax.
14282
+ *
14283
+ * @see https://eslint.org/docs/latest/rules/no-restricted-syntax
14167
14284
  */
14168
- declare const restrictedImportPaths: Readonly<RestrictedImportPaths>;
14285
+ export declare const restrictedSyntax: Readonly<RestrictedSyntax>;
14169
14286
  //#endregion
14170
- export { Config, DefineConfigOptions, PluginOptionsBase, RestrictedGlobals, RestrictedImportPaths, StylisticConfig, StylisticParameters, defineConfig, e18e, es, ignores, imports, jsdoc, jsonc, jsx, markdown, meta, next, node, perfectionist, react, restrictedGlobals, restrictedImportPaths, stylistic, test, ts, unicorn, unusedImports, yml };
14171
14287
  //# sourceMappingURL=index.d.ts.map