@w5s/eslint-config 3.35.0 → 3.36.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,13 @@ 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
+ treatAnyAsRedundant?: boolean;
2284
+ typesToIgnore?: string[];
2285
+ }];
2232
2286
  // ----- jsdoc/normalize-see-links -----
2233
2287
  type JsdocNormalizeSeeLinks = [] | [{
2234
2288
  canonicalForm?: ("pipe" | "prefix");
@@ -2553,15 +2607,15 @@ type JsdocValidTypes = [] | [{
2553
2607
  }];
2554
2608
  //#endregion
2555
2609
  //#region src/config/jsdoc.d.ts
2556
- declare function jsdoc(options?: jsdoc.Options): Promise<ReadonlyArray<Config>>;
2557
- declare namespace jsdoc {
2610
+ export declare function jsdoc(options?: jsdoc.Options): Promise<ReadonlyArray<Config>>;
2611
+ export declare namespace jsdoc {
2558
2612
  interface Options extends PluginOptionsBase<Rules> {}
2559
2613
  type Rules = RuleOptions$12;
2560
2614
  }
2561
2615
  //#endregion
2562
2616
  //#region src/config/jsonc.d.ts
2563
- declare function jsonc(options?: jsonc.Options): Promise<ReadonlyArray<Config>>;
2564
- declare namespace jsonc {
2617
+ export declare function jsonc(options?: jsonc.Options): Promise<ReadonlyArray<Config>>;
2618
+ export declare namespace jsonc {
2565
2619
  interface Options extends PluginOptionsBase<Rules> {}
2566
2620
  type Rules = RuleOptions$14;
2567
2621
  }
@@ -2978,8 +3032,8 @@ type JsxA11YTabindexNoPositive = [] | [{
2978
3032
  }];
2979
3033
  //#endregion
2980
3034
  //#region src/config/jsx.d.ts
2981
- declare function jsx(options?: jsx.Options): Promise<[Config, Config]>;
2982
- declare namespace jsx {
3035
+ export declare function jsx(options?: jsx.Options): Promise<[Config, Config]>;
3036
+ export declare namespace jsx {
2983
3037
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {
2984
3038
  /**
2985
3039
  * Enable jsx-a11y plugin. Defaults to false.
@@ -3167,8 +3221,8 @@ type MarkdownTableColumnCount = [] | [{
3167
3221
  }];
3168
3222
  //#endregion
3169
3223
  //#region src/config/markdown.d.ts
3170
- declare function markdown(options?: markdown.Options): Promise<[Config, Config, Config]>;
3171
- declare namespace markdown {
3224
+ export declare function markdown(options?: markdown.Options): Promise<[Config, Config, Config]>;
3225
+ export declare namespace markdown {
3172
3226
  interface Options extends PluginOptionsBase<Rules> {
3173
3227
  /**
3174
3228
  * Default to 'markdown/gfm' (Github Flavored Markdown)
@@ -3303,8 +3357,8 @@ interface RuleOptions$9 {
3303
3357
  type NextNoHtmlLinkForPages = [] | [(string | string[])];
3304
3358
  //#endregion
3305
3359
  //#region src/config/next.d.ts
3306
- declare function next(options?: next.Options): Promise<[Config, Config]>;
3307
- declare namespace next {
3360
+ export declare function next(options?: next.Options): Promise<[Config, Config]>;
3361
+ export declare namespace next {
3308
3362
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {}
3309
3363
  type Rules = RuleOptions$9;
3310
3364
  }
@@ -3821,8 +3875,8 @@ type NodeShebang = [] | [{
3821
3875
  }];
3822
3876
  //#endregion
3823
3877
  //#region src/config/node.d.ts
3824
- declare function node(options?: node.Options): Promise<[Config, Config]>;
3825
- declare namespace node {
3878
+ export declare function node(options?: node.Options): Promise<[Config, Config]>;
3879
+ export declare namespace node {
3826
3880
  interface Options extends Omit<PluginOptionsBase<Rules>, 'files' | 'stylistic'> {}
3827
3881
  type Rules = RuleOptions$8;
3828
3882
  }
@@ -5153,10 +5207,6 @@ type PerfectionistSortImports = {
5153
5207
  sortBy?: ("specifier" | "path");
5154
5208
  })[];
5155
5209
  newlinesBetween?: ("ignore" | number);
5156
- tsconfig?: {
5157
- rootDir: string;
5158
- filename?: string;
5159
- };
5160
5210
  maxLineLength?: number;
5161
5211
  sortSideEffects?: boolean;
5162
5212
  environment?: ("node" | "bun");
@@ -5191,6 +5241,10 @@ type PerfectionistSortImports = {
5191
5241
  pattern: string;
5192
5242
  flags?: string;
5193
5243
  } | string));
5244
+ tsconfig?: {
5245
+ rootDir: string;
5246
+ filename?: string;
5247
+ };
5194
5248
  }[];
5195
5249
  // ----- perfectionist/sort-interfaces -----
5196
5250
  type PerfectionistSortInterfaces = {
@@ -5775,6 +5829,7 @@ type PerfectionistSortModules = [] | [{
5775
5829
  order?: ("asc" | "desc");
5776
5830
  })[];
5777
5831
  newlinesBetween?: ("ignore" | number);
5832
+ additionalModuleBlockTypes?: string[];
5778
5833
  useExperimentalDependencyDetection?: boolean;
5779
5834
  newlinesBetweenOverloadSignatures?: ("ignore" | number);
5780
5835
  partitionByComment?: (boolean | (({
@@ -5800,6 +5855,10 @@ type PerfectionistSortModules = [] | [{
5800
5855
  } | string)));
5801
5856
  });
5802
5857
  partitionByNewLine?: boolean;
5858
+ tsconfig?: {
5859
+ rootDir: string;
5860
+ filename?: string;
5861
+ };
5803
5862
  }];
5804
5863
  // ----- perfectionist/sort-named-exports -----
5805
5864
  type PerfectionistSortNamedExports = {
@@ -6328,6 +6387,13 @@ type PerfectionistSortObjects = {
6328
6387
  partitionByComputedKey?: boolean;
6329
6388
  styledComponents?: boolean;
6330
6389
  useExperimentalDependencyDetection?: boolean;
6390
+ ignoreCallbackDependenciesPatterns?: (({
6391
+ pattern: string;
6392
+ flags?: string;
6393
+ } | string)[] | ({
6394
+ pattern: string;
6395
+ flags?: string;
6396
+ } | string));
6331
6397
  partitionByComment?: (boolean | (({
6332
6398
  pattern: string;
6333
6399
  flags?: string;
@@ -6663,6 +6729,13 @@ type PerfectionistSortVariableDeclarations = {
6663
6729
  matchesAstSelector?: string;
6664
6730
  };
6665
6731
  useExperimentalDependencyDetection?: boolean;
6732
+ ignoreCallbackDependenciesPatterns?: (({
6733
+ pattern: string;
6734
+ flags?: string;
6735
+ } | string)[] | ({
6736
+ pattern: string;
6737
+ flags?: string;
6738
+ } | string));
6666
6739
  partitionByComment?: (boolean | (({
6667
6740
  pattern: string;
6668
6741
  flags?: string;
@@ -6689,8 +6762,8 @@ type PerfectionistSortVariableDeclarations = {
6689
6762
  }[];
6690
6763
  //#endregion
6691
6764
  //#region src/config/perfectionist.d.ts
6692
- declare function perfectionist(options?: perfectionist.Options): Promise<[Config, Config]>;
6693
- declare namespace perfectionist {
6765
+ export declare function perfectionist(options?: perfectionist.Options): Promise<[Config, Config]>;
6766
+ export declare namespace perfectionist {
6694
6767
  interface Options extends PluginOptionsBase<Rules> {}
6695
6768
  type Rules = RuleOptions$7;
6696
6769
  }
@@ -7458,8 +7531,8 @@ type ReactXUseState = [] | [{
7458
7531
  }];
7459
7532
  //#endregion
7460
7533
  //#region src/config/react.d.ts
7461
- declare function react(options?: react.Options): Promise<[Config, Config]>;
7462
- declare namespace react {
7534
+ export declare function react(options?: react.Options): Promise<[Config, Config]>;
7535
+ export declare namespace react {
7463
7536
  interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {}
7464
7537
  type Rules = RuleOptions$6;
7465
7538
  }
@@ -9221,8 +9294,8 @@ type StyleYieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") |
9221
9294
  })];
9222
9295
  //#endregion
9223
9296
  //#region src/config/stylistic.d.ts
9224
- declare function stylistic(options?: stylistic.Options): Promise<[Config, Config]>;
9225
- declare namespace stylistic {
9297
+ export declare function stylistic(options?: stylistic.Options): Promise<[Config, Config]>;
9298
+ export declare namespace stylistic {
9226
9299
  interface Options extends Pick<PluginOptionsBase<Rules>, 'rules'>, StylisticParameters {}
9227
9300
  type Rules = RuleOptions$5;
9228
9301
  }
@@ -9767,8 +9840,8 @@ type TestValidTitle = [] | [{
9767
9840
  }];
9768
9841
  //#endregion
9769
9842
  //#region src/config/test.d.ts
9770
- declare function test(options?: test.Options): Promise<[Config, Config]>;
9771
- declare namespace test {
9843
+ export declare function test(options?: test.Options): Promise<[Config, Config]>;
9844
+ export declare namespace test {
9772
9845
  interface Options extends PluginOptionsBase<Rules> {}
9773
9846
  type Rules = RuleOptions$4;
9774
9847
  }
@@ -11435,8 +11508,8 @@ type TsUnifiedSignatures = [] | [{
11435
11508
  }];
11436
11509
  //#endregion
11437
11510
  //#region src/config/ts.d.ts
11438
- declare function ts(options?: ts.Options): Promise<[Config, Config] | [Config, Config, Config]>;
11439
- declare namespace ts {
11511
+ export declare function ts(options?: ts.Options): Promise<[Config, Config]>;
11512
+ export declare namespace ts {
11440
11513
  interface Options extends PluginOptionsBase<Rules> {
11441
11514
  /**
11442
11515
  * Parser options for TypeScript ESLint parser
@@ -11466,1740 +11539,1740 @@ declare module 'eslint' {
11466
11539
  interface RuleOptions$2 {
11467
11540
  /**
11468
11541
  * Prefer better DOM traversal APIs.
11469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
11542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
11470
11543
  */
11471
11544
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
11472
11545
  /**
11473
11546
  * 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
11547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
11475
11548
  * @deprecated
11476
11549
  */
11477
11550
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
11478
11551
  /**
11479
11552
  * 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
11553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
11481
11554
  */
11482
11555
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
11483
11556
  /**
11484
11557
  * 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
11558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
11486
11559
  */
11487
11560
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
11488
11561
  /**
11489
11562
  * Enforce better comment content.
11490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
11563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
11491
11564
  */
11492
11565
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
11493
11566
  /**
11494
11567
  * 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
11568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
11496
11569
  */
11497
11570
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
11498
11571
  /**
11499
11572
  * 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
11573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
11501
11574
  */
11502
11575
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
11503
11576
  /**
11504
11577
  * 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
11578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
11506
11579
  */
11507
11580
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
11508
11581
  /**
11509
11582
  * 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
11583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
11511
11584
  */
11512
11585
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
11513
11586
  /**
11514
11587
  * 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
11588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
11516
11589
  */
11517
11590
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
11518
11591
  /**
11519
11592
  * 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
11593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
11521
11594
  */
11522
11595
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
11523
11596
  /**
11524
11597
  * 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
11598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
11526
11599
  */
11527
11600
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
11528
11601
  /**
11529
11602
  * Use destructured variables over properties.
11530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
11603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
11531
11604
  */
11532
11605
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
11533
11606
  /**
11534
11607
  * 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
11608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
11536
11609
  */
11537
11610
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
11538
11611
  /**
11539
11612
  * 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
11613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
11541
11614
  */
11542
11615
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
11543
11616
  /**
11544
11617
  * 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
11618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
11546
11619
  */
11547
11620
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
11548
11621
  /**
11549
11622
  * 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
11623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
11551
11624
  */
11552
11625
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
11553
11626
  /**
11554
11627
  * Enforce function syntax by role.
11555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
11628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
11556
11629
  */
11557
11630
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
11558
11631
  /**
11559
11632
  * 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
11633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
11561
11634
  */
11562
11635
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
11563
11636
  /**
11564
11637
  * 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
11638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
11566
11639
  */
11567
11640
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
11568
11641
  /**
11569
11642
  * 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
11643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
11571
11644
  */
11572
11645
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
11573
11646
  /**
11574
11647
  * 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
11648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
11576
11649
  */
11577
11650
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
11578
11651
  /**
11579
11652
  * Enforce correct `Error` subclassing.
11580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
11653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
11581
11654
  */
11582
11655
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
11583
11656
  /**
11584
11657
  * Enforce consistent default export declarations.
11585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
11658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
11586
11659
  */
11587
11660
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
11588
11661
  /**
11589
11662
  * 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
11663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
11591
11664
  */
11592
11665
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
11593
11666
  /**
11594
11667
  * Enforce no spaces between braces.
11595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
11668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
11596
11669
  */
11597
11670
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
11598
11671
  /**
11599
11672
  * 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
11673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
11601
11674
  */
11602
11675
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
11603
11676
  /**
11604
11677
  * 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
11678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
11606
11679
  */
11607
11680
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
11608
11681
  /**
11609
11682
  * 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
11683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
11611
11684
  */
11612
11685
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
11613
11686
  /**
11614
11687
  * 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
11688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
11616
11689
  */
11617
11690
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
11618
11691
  /**
11619
11692
  * 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
11693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
11621
11694
  */
11622
11695
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
11623
11696
  /**
11624
11697
  * 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
11698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
11626
11699
  */
11627
11700
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
11628
11701
  /**
11629
11702
  * 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
11703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
11631
11704
  */
11632
11705
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
11633
11706
  /**
11634
11707
  * Enforce specific import styles per module.
11635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
11708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
11636
11709
  */
11637
11710
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
11638
11711
  /**
11639
11712
  * 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
11713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
11641
11714
  */
11642
11715
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
11643
11716
  /**
11644
11717
  * 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
11718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
11646
11719
  */
11647
11720
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
11648
11721
  /**
11649
11722
  * 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
11723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
11651
11724
  */
11652
11725
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
11653
11726
  /**
11654
11727
  * 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
11728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
11656
11729
  */
11657
11730
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
11658
11731
  /**
11659
11732
  * 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
11733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
11661
11734
  */
11662
11735
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
11663
11736
  /**
11664
11737
  * 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
11738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
11666
11739
  */
11667
11740
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
11668
11741
  /**
11669
11742
  * 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
11743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
11671
11744
  */
11672
11745
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
11673
11746
  /**
11674
11747
  * 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
11748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
11676
11749
  */
11677
11750
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
11678
11751
  /**
11679
11752
  * 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
11753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
11681
11754
  */
11682
11755
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
11683
11756
  /**
11684
11757
  * 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
11758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
11686
11759
  */
11687
11760
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
11688
11761
  /**
11689
11762
  * 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
11763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
11691
11764
  */
11692
11765
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
11693
11766
  /**
11694
11767
  * 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
11768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
11696
11769
  */
11697
11770
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
11698
11771
  /**
11699
11772
  * 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
11773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
11701
11774
  */
11702
11775
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
11703
11776
  /**
11704
11777
  * 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
11778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
11706
11779
  */
11707
11780
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
11708
11781
  /**
11709
11782
  * 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
11783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
11711
11784
  */
11712
11785
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
11713
11786
  /**
11714
11787
  * 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
11788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
11716
11789
  */
11717
11790
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
11718
11791
  /**
11719
11792
  * 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
11793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
11721
11794
  * @deprecated
11722
11795
  */
11723
11796
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
11724
11797
  /**
11725
11798
  * 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
11799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
11727
11800
  */
11728
11801
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
11729
11802
  /**
11730
11803
  * 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
11804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
11732
11805
  */
11733
11806
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
11734
11807
  /**
11735
11808
  * 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
11809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
11737
11810
  */
11738
11811
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
11739
11812
  /**
11740
11813
  * 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
11814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
11742
11815
  */
11743
11816
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
11744
11817
  /**
11745
11818
  * 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
11819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
11747
11820
  */
11748
11821
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
11749
11822
  /**
11750
11823
  * 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
11824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
11752
11825
  */
11753
11826
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
11754
11827
  /**
11755
11828
  * 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
11829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
11757
11830
  */
11758
11831
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
11759
11832
  /**
11760
11833
  * 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
11834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
11762
11835
  */
11763
11836
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
11764
11837
  /**
11765
11838
  * 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
11839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
11767
11840
  */
11768
11841
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
11769
11842
  /**
11770
11843
  * Disallow barrel files.
11771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
11844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
11772
11845
  */
11773
11846
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
11774
11847
  /**
11775
11848
  * 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
11849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
11777
11850
  */
11778
11851
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
11779
11852
  /**
11780
11853
  * 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
11854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
11782
11855
  */
11783
11856
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
11784
11857
  /**
11785
11858
  * 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
11859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
11787
11860
  */
11788
11861
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
11789
11862
  /**
11790
11863
  * 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
11864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
11792
11865
  */
11793
11866
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
11794
11867
  /**
11795
11868
  * 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
11869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
11797
11870
  */
11798
11871
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
11799
11872
  /**
11800
11873
  * 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
11874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
11802
11875
  */
11803
11876
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
11804
11877
  /**
11805
11878
  * 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
11879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
11807
11880
  */
11808
11881
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
11809
11882
  /**
11810
11883
  * 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
11884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
11812
11885
  */
11813
11886
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
11814
11887
  /**
11815
11888
  * 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
11889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
11817
11890
  */
11818
11891
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
11819
11892
  /**
11820
11893
  * 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
11894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
11822
11895
  */
11823
11896
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
11824
11897
  /**
11825
11898
  * 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
11899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
11827
11900
  */
11828
11901
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
11829
11902
  /**
11830
11903
  * 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
11904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
11832
11905
  */
11833
11906
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
11834
11907
  /**
11835
11908
  * 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
11909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
11837
11910
  */
11838
11911
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
11839
11912
  /**
11840
11913
  * 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
11914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
11842
11915
  */
11843
11916
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
11844
11917
  /**
11845
11918
  * 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
11919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
11847
11920
  */
11848
11921
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
11849
11922
  /**
11850
11923
  * 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
11924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
11852
11925
  */
11853
11926
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
11854
11927
  /**
11855
11928
  * 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
11929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
11857
11930
  */
11858
11931
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
11859
11932
  /**
11860
11933
  * 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
11934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
11862
11935
  */
11863
11936
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
11864
11937
  /**
11865
11938
  * Disallow empty files.
11866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
11939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
11867
11940
  */
11868
11941
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
11869
11942
  /**
11870
11943
  * 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
11944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
11872
11945
  */
11873
11946
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
11874
11947
  /**
11875
11948
  * Disallow exports in scripts.
11876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
11949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
11877
11950
  */
11878
11951
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
11879
11952
  /**
11880
11953
  * 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
11954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
11882
11955
  */
11883
11956
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
11884
11957
  /**
11885
11958
  * 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
11959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
11887
11960
  */
11888
11961
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
11889
11962
  /**
11890
11963
  * 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
11964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
11892
11965
  */
11893
11966
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
11894
11967
  /**
11895
11968
  * 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
11969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
11897
11970
  * @deprecated
11898
11971
  */
11899
11972
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
11900
11973
  /**
11901
11974
  * 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
11975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
11903
11976
  */
11904
11977
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
11905
11978
  /**
11906
11979
  * 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
11980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
11908
11981
  */
11909
11982
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
11910
11983
  /**
11911
11984
  * 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
11985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
11913
11986
  */
11914
11987
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
11915
11988
  /**
11916
11989
  * 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
11990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
11918
11991
  */
11919
11992
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
11920
11993
  /**
11921
11994
  * 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
11995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
11923
11996
  * @deprecated
11924
11997
  */
11925
11998
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
11926
11999
  /**
11927
12000
  * 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
12001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
11929
12002
  */
11930
12003
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
11931
12004
  /**
11932
12005
  * 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
12006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
11934
12007
  */
11935
12008
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
11936
12009
  /**
11937
12010
  * 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
12011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
11939
12012
  */
11940
12013
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
11941
12014
  /**
11942
12015
  * 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
12016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
11944
12017
  */
11945
12018
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
11946
12019
  /**
11947
12020
  * 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
12021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
11949
12022
  */
11950
12023
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
11951
12024
  /**
11952
12025
  * 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
12026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
11954
12027
  */
11955
12028
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
11956
12029
  /**
11957
12030
  * 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
12031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
11959
12032
  */
11960
12033
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
11961
12034
  /**
11962
12035
  * 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
12036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
11964
12037
  */
11965
12038
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
11966
12039
  /**
11967
12040
  * 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
12041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
11969
12042
  */
11970
12043
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
11971
12044
  /**
11972
12045
  * 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
12046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
11974
12047
  */
11975
12048
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
11976
12049
  /**
11977
12050
  * 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
12051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
11979
12052
  * @deprecated
11980
12053
  */
11981
12054
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
11982
12055
  /**
11983
12056
  * 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
12057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
11985
12058
  */
11986
12059
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
11987
12060
  /**
11988
12061
  * 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
12062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
11990
12063
  */
11991
12064
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
11992
12065
  /**
11993
12066
  * 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
12067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
11995
12068
  */
11996
12069
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
11997
12070
  /**
11998
12071
  * Disallow manually wrapped comments.
11999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
12072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
12000
12073
  */
12001
12074
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
12002
12075
  /**
12003
12076
  * 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
12077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
12005
12078
  */
12006
12079
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
12007
12080
  /**
12008
12081
  * 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
12082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
12010
12083
  */
12011
12084
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
12012
12085
  /**
12013
12086
  * 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
12087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
12015
12088
  */
12016
12089
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
12017
12090
  /**
12018
12091
  * 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
12092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
12020
12093
  */
12021
12094
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
12022
12095
  /**
12023
12096
  * 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
12097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
12025
12098
  */
12026
12099
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
12027
12100
  /**
12028
12101
  * 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
12102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
12030
12103
  */
12031
12104
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
12032
12105
  /**
12033
12106
  * Disallow negated comparisons.
12034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
12107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
12035
12108
  */
12036
12109
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
12037
12110
  /**
12038
12111
  * Disallow negated conditions.
12039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
12112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
12040
12113
  */
12041
12114
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
12042
12115
  /**
12043
12116
  * 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
12117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
12045
12118
  */
12046
12119
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
12047
12120
  /**
12048
12121
  * Disallow nested ternary expressions.
12049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
12122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
12050
12123
  */
12051
12124
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
12052
12125
  /**
12053
12126
  * Disallow `new Array()`.
12054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
12127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
12055
12128
  */
12056
12129
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
12057
12130
  /**
12058
12131
  * 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
12132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
12060
12133
  */
12061
12134
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
12062
12135
  /**
12063
12136
  * 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
12137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
12065
12138
  */
12066
12139
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
12067
12140
  /**
12068
12141
  * 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
12142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
12070
12143
  */
12071
12144
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
12072
12145
  /**
12073
12146
  * 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
12147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
12075
12148
  */
12076
12149
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
12077
12150
  /**
12078
12151
  * 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
12152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
12080
12153
  */
12081
12154
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
12082
12155
  /**
12083
12156
  * 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
12157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
12085
12158
  */
12086
12159
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
12087
12160
  /**
12088
12161
  * 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
12162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
12090
12163
  */
12091
12164
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
12092
12165
  /**
12093
12166
  * Disallow `process.exit()`.
12094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
12167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
12095
12168
  */
12096
12169
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
12097
12170
  /**
12098
12171
  * 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
12172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
12100
12173
  */
12101
12174
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
12102
12175
  /**
12103
12176
  * 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
12177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
12105
12178
  */
12106
12179
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
12107
12180
  /**
12108
12181
  * 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
12182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
12110
12183
  */
12111
12184
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
12112
12185
  /**
12113
12186
  * 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
12187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
12115
12188
  */
12116
12189
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
12117
12190
  /**
12118
12191
  * 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
12192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
12120
12193
  */
12121
12194
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
12122
12195
  /**
12123
12196
  * 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
12197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
12125
12198
  */
12126
12199
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
12127
12200
  /**
12128
12201
  * 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
12202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
12130
12203
  */
12131
12204
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
12132
12205
  /**
12133
12206
  * Disallow `then` property.
12134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
12207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
12135
12208
  */
12136
12209
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
12137
12210
  /**
12138
12211
  * 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
12212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
12140
12213
  */
12141
12214
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
12142
12215
  /**
12143
12216
  * 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
12217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
12145
12218
  */
12146
12219
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
12147
12220
  /**
12148
12221
  * 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
12222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
12150
12223
  */
12151
12224
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
12152
12225
  /**
12153
12226
  * 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
12227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
12155
12228
  */
12156
12229
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
12157
12230
  /**
12158
12231
  * 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
12232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
12160
12233
  */
12161
12234
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
12162
12235
  /**
12163
12236
  * Disallow comparing `undefined` using `typeof`.
12164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
12237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
12165
12238
  */
12166
12239
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
12167
12240
  /**
12168
12241
  * 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
12242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
12170
12243
  */
12171
12244
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
12172
12245
  /**
12173
12246
  * 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
12247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
12175
12248
  */
12176
12249
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
12177
12250
  /**
12178
12251
  * 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
12252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
12180
12253
  */
12181
12254
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
12182
12255
  /**
12183
12256
  * 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
12257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
12185
12258
  */
12186
12259
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
12187
12260
  /**
12188
12261
  * 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
12262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
12190
12263
  */
12191
12264
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
12192
12265
  /**
12193
12266
  * Disallow awaiting non-promise values.
12194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
12267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
12195
12268
  */
12196
12269
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
12197
12270
  /**
12198
12271
  * 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
12272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
12200
12273
  */
12201
12274
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
12202
12275
  /**
12203
12276
  * 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
12277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
12205
12278
  */
12206
12279
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
12207
12280
  /**
12208
12281
  * Disallow unnecessary `globalThis` references.
12209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
12282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
12210
12283
  */
12211
12284
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
12212
12285
  /**
12213
12286
  * 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
12287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
12215
12288
  */
12216
12289
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
12217
12290
  /**
12218
12291
  * 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
12292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
12220
12293
  */
12221
12294
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
12222
12295
  /**
12223
12296
  * 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
12297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
12225
12298
  */
12226
12299
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
12227
12300
  /**
12228
12301
  * 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
12302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
12230
12303
  */
12231
12304
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
12232
12305
  /**
12233
12306
  * 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
12307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
12235
12308
  */
12236
12309
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
12237
12310
  /**
12238
12311
  * Disallow unreadable array destructuring.
12239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
12312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
12240
12313
  */
12241
12314
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
12242
12315
  /**
12243
12316
  * 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
12317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
12245
12318
  */
12246
12319
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
12247
12320
  /**
12248
12321
  * Disallow unreadable IIFEs.
12249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
12322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
12250
12323
  */
12251
12324
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
12252
12325
  /**
12253
12326
  * Disallow unreadable `new` expressions.
12254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
12327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
12255
12328
  */
12256
12329
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
12257
12330
  /**
12258
12331
  * Disallow unreadable object destructuring.
12259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
12332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
12260
12333
  */
12261
12334
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
12262
12335
  /**
12263
12336
  * 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
12337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
12265
12338
  */
12266
12339
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
12267
12340
  /**
12268
12341
  * 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
12342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
12270
12343
  */
12271
12344
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
12272
12345
  /**
12273
12346
  * 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
12347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
12275
12348
  */
12276
12349
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
12277
12350
  /**
12278
12351
  * 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
12352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
12280
12353
  */
12281
12354
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
12282
12355
  /**
12283
12356
  * 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
12357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
12285
12358
  */
12286
12359
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
12287
12360
  /**
12288
12361
  * 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
12362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
12290
12363
  */
12291
12364
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
12292
12365
  /**
12293
12366
  * 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
12367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
12295
12368
  */
12296
12369
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
12297
12370
  /**
12298
12371
  * Disallow unused object properties.
12299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
12372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
12300
12373
  */
12301
12374
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
12302
12375
  /**
12303
12376
  * 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
12377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
12305
12378
  */
12306
12379
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
12307
12380
  /**
12308
12381
  * 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
12382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
12310
12383
  */
12311
12384
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
12312
12385
  /**
12313
12386
  * 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
12387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
12315
12388
  */
12316
12389
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
12317
12390
  /**
12318
12391
  * 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
12392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
12320
12393
  */
12321
12394
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
12322
12395
  /**
12323
12396
  * Disallow useless concatenation of literals.
12324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
12397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
12325
12398
  */
12326
12399
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
12327
12400
  /**
12328
12401
  * Disallow useless `continue` statements.
12329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
12402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
12330
12403
  */
12331
12404
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
12332
12405
  /**
12333
12406
  * 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
12407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
12335
12408
  */
12336
12409
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
12337
12410
  /**
12338
12411
  * 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
12412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
12340
12413
  */
12341
12414
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
12342
12415
  /**
12343
12416
  * 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
12417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
12345
12418
  */
12346
12419
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
12347
12420
  /**
12348
12421
  * 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
12422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
12350
12423
  */
12351
12424
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
12352
12425
  /**
12353
12426
  * 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
12427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
12355
12428
  */
12356
12429
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
12357
12430
  /**
12358
12431
  * 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
12432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
12360
12433
  */
12361
12434
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
12362
12435
  /**
12363
12436
  * 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
12437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
12365
12438
  */
12366
12439
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
12367
12440
  /**
12368
12441
  * 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
12442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
12370
12443
  */
12371
12444
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
12372
12445
  /**
12373
12446
  * 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
12447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
12375
12448
  */
12376
12449
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
12377
12450
  /**
12378
12451
  * Disallow redundant re-exports.
12379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
12452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
12380
12453
  */
12381
12454
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
12382
12455
  /**
12383
12456
  * 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
12457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
12385
12458
  */
12386
12459
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
12387
12460
  /**
12388
12461
  * Disallow unnecessary spread.
12389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
12462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
12390
12463
  */
12391
12464
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
12392
12465
  /**
12393
12466
  * 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
12467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
12395
12468
  */
12396
12469
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
12397
12470
  /**
12398
12471
  * 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
12472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
12400
12473
  */
12401
12474
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
12402
12475
  /**
12403
12476
  * Disallow useless `undefined`.
12404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
12477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
12405
12478
  */
12406
12479
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
12407
12480
  /**
12408
12481
  * 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
12482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
12410
12483
  */
12411
12484
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
12412
12485
  /**
12413
12486
  * 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
12487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
12415
12488
  */
12416
12489
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
12417
12490
  /**
12418
12491
  * 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
12492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
12420
12493
  */
12421
12494
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
12422
12495
  /**
12423
12496
  * 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
12497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
12425
12498
  */
12426
12499
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
12427
12500
  /**
12428
12501
  * Require assignment operator shorthand where possible.
12429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
12502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
12430
12503
  */
12431
12504
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
12432
12505
  /**
12433
12506
  * 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
12507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
12435
12508
  */
12436
12509
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
12437
12510
  /**
12438
12511
  * 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
12512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
12440
12513
  */
12441
12514
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
12442
12515
  /**
12443
12516
  * 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
12517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
12445
12518
  */
12446
12519
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
12447
12520
  /**
12448
12521
  * 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
12522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
12450
12523
  */
12451
12524
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
12452
12525
  /**
12453
12526
  * 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
12527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
12455
12528
  */
12456
12529
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
12457
12530
  /**
12458
12531
  * 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
12532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
12460
12533
  */
12461
12534
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
12462
12535
  /**
12463
12536
  * 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
12537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
12465
12538
  */
12466
12539
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
12467
12540
  /**
12468
12541
  * 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
12542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
12470
12543
  */
12471
12544
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
12472
12545
  /**
12473
12546
  * 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
12547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
12475
12548
  */
12476
12549
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
12477
12550
  /**
12478
12551
  * 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
12552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
12480
12553
  */
12481
12554
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
12482
12555
  /**
12483
12556
  * 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
12557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
12485
12558
  */
12486
12559
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
12487
12560
  /**
12488
12561
  * 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
12562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
12490
12563
  */
12491
12564
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
12492
12565
  /**
12493
12566
  * 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
12567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
12495
12568
  */
12496
12569
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
12497
12570
  /**
12498
12571
  * 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
12572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
12500
12573
  */
12501
12574
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
12502
12575
  /**
12503
12576
  * 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
12577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
12505
12578
  */
12506
12579
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
12507
12580
  /**
12508
12581
  * 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
12582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
12510
12583
  */
12511
12584
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
12512
12585
  /**
12513
12586
  * 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
12587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
12515
12588
  */
12516
12589
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
12517
12590
  /**
12518
12591
  * Prefer `await` over promise chaining.
12519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
12592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
12520
12593
  */
12521
12594
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
12522
12595
  /**
12523
12596
  * 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
12597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
12525
12598
  */
12526
12599
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
12527
12600
  /**
12528
12601
  * 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
12602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
12530
12603
  */
12531
12604
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
12532
12605
  /**
12533
12606
  * 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
12607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
12535
12608
  */
12536
12609
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
12537
12610
  /**
12538
12611
  * 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
12612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
12540
12613
  */
12541
12614
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
12542
12615
  /**
12543
12616
  * 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
12617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
12545
12618
  */
12546
12619
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
12547
12620
  /**
12548
12621
  * 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
12622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
12550
12623
  */
12551
12624
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
12552
12625
  /**
12553
12626
  * 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
12627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
12555
12628
  */
12556
12629
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
12557
12630
  /**
12558
12631
  * 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
12632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
12560
12633
  */
12561
12634
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
12562
12635
  /**
12563
12636
  * 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
12637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
12565
12638
  */
12566
12639
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
12567
12640
  /**
12568
12641
  * Prefer default parameters over reassignment.
12569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
12642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
12570
12643
  */
12571
12644
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
12572
12645
  /**
12573
12646
  * 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
12647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
12575
12648
  */
12576
12649
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
12577
12650
  /**
12578
12651
  * 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
12652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
12580
12653
  */
12581
12654
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
12582
12655
  /**
12583
12656
  * 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
12657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
12585
12658
  */
12586
12659
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
12587
12660
  /**
12588
12661
  * 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
12662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
12590
12663
  * @deprecated
12591
12664
  */
12592
12665
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
12593
12666
  /**
12594
12667
  * 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
12668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
12596
12669
  */
12597
12670
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
12598
12671
  /**
12599
12672
  * 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
12673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
12601
12674
  */
12602
12675
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
12603
12676
  /**
12604
12677
  * 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
12678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
12606
12679
  */
12607
12680
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
12608
12681
  /**
12609
12682
  * 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
12683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
12611
12684
  */
12612
12685
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
12613
12686
  /**
12614
12687
  * 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
12688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
12616
12689
  */
12617
12690
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
12618
12691
  /**
12619
12692
  * 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
12693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
12621
12694
  */
12622
12695
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
12623
12696
  /**
12624
12697
  * 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
12698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
12626
12699
  */
12627
12700
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
12628
12701
  /**
12629
12702
  * Prefer `EventTarget` over `EventEmitter`.
12630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
12703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
12631
12704
  */
12632
12705
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
12633
12706
  /**
12634
12707
  * Prefer explicit viewport units.
12635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
12708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
12636
12709
  */
12637
12710
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
12638
12711
  /**
12639
12712
  * 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
12713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
12641
12714
  */
12642
12715
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
12643
12716
  /**
12644
12717
  * 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
12718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
12646
12719
  */
12647
12720
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
12648
12721
  /**
12649
12722
  * 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
12723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
12651
12724
  */
12652
12725
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
12653
12726
  /**
12654
12727
  * 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
12728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
12656
12729
  */
12657
12730
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
12658
12731
  /**
12659
12732
  * 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
12733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
12661
12734
  */
12662
12735
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
12663
12736
  /**
12664
12737
  * 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
12738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
12666
12739
  */
12667
12740
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
12668
12741
  /**
12669
12742
  * Prefer `.has()` when checking existence.
12670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
12743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
12671
12744
  */
12672
12745
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
12673
12746
  /**
12674
12747
  * 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
12748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
12676
12749
  */
12677
12750
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
12678
12751
  /**
12679
12752
  * Prefer HTTPS over HTTP.
12680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
12753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
12681
12754
  */
12682
12755
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
12683
12756
  /**
12684
12757
  * 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
12758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
12686
12759
  */
12687
12760
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
12688
12761
  /**
12689
12762
  * 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
12763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
12691
12764
  */
12692
12765
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
12693
12766
  /**
12694
12767
  * 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
12768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
12696
12769
  */
12697
12770
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
12698
12771
  /**
12699
12772
  * 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
12773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
12701
12774
  */
12702
12775
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
12703
12776
  /**
12704
12777
  * 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
12778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
12706
12779
  */
12707
12780
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
12708
12781
  /**
12709
12782
  * 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
12783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
12711
12784
  */
12712
12785
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
12713
12786
  /**
12714
12787
  * 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
12788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
12716
12789
  */
12717
12790
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
12718
12791
  /**
12719
12792
  * 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
12793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
12721
12794
  */
12722
12795
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
12723
12796
  /**
12724
12797
  * 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
12798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
12726
12799
  */
12727
12800
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
12728
12801
  /**
12729
12802
  * 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
12803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
12731
12804
  * @deprecated
12732
12805
  */
12733
12806
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
12734
12807
  /**
12735
12808
  * 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
12809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
12737
12810
  */
12738
12811
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
12739
12812
  /**
12740
12813
  * 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
12814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
12742
12815
  */
12743
12816
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
12744
12817
  /**
12745
12818
  * 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
12819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
12747
12820
  */
12748
12821
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
12749
12822
  /**
12750
12823
  * 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
12824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
12752
12825
  */
12753
12826
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
12754
12827
  /**
12755
12828
  * 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
12829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
12757
12830
  */
12758
12831
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
12759
12832
  /**
12760
12833
  * 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
12834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
12762
12835
  */
12763
12836
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
12764
12837
  /**
12765
12838
  * 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
12839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
12767
12840
  */
12768
12841
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
12769
12842
  /**
12770
12843
  * 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
12844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
12772
12845
  */
12773
12846
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
12774
12847
  /**
12775
12848
  * 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
12849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
12777
12850
  */
12778
12851
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
12779
12852
  /**
12780
12853
  * Prefer modern DOM APIs.
12781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
12854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
12782
12855
  */
12783
12856
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
12784
12857
  /**
12785
12858
  * 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
12859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
12787
12860
  */
12788
12861
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
12789
12862
  /**
12790
12863
  * Prefer JavaScript modules (ESM) over CommonJS.
12791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
12864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
12792
12865
  */
12793
12866
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
12794
12867
  /**
12795
12868
  * 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
12869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
12797
12870
  */
12798
12871
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
12799
12872
  /**
12800
12873
  * 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
12874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
12802
12875
  */
12803
12876
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
12804
12877
  /**
12805
12878
  * 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
12879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
12807
12880
  */
12808
12881
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
12809
12882
  /**
12810
12883
  * 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
12884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
12812
12885
  */
12813
12886
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
12814
12887
  /**
12815
12888
  * 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
12889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
12817
12890
  */
12818
12891
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
12819
12892
  /**
12820
12893
  * 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
12894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
12822
12895
  */
12823
12896
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
12824
12897
  /**
12825
12898
  * 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
12899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
12827
12900
  */
12828
12901
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
12829
12902
  /**
12830
12903
  * 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
12904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
12832
12905
  */
12833
12906
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
12834
12907
  /**
12835
12908
  * 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
12909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
12837
12910
  */
12838
12911
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
12839
12912
  /**
12840
12913
  * 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
12914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
12842
12915
  */
12843
12916
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
12844
12917
  /**
12845
12918
  * 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
12919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
12847
12920
  */
12848
12921
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
12849
12922
  /**
12850
12923
  * 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
12924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
12852
12925
  */
12853
12926
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
12854
12927
  /**
12855
12928
  * 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
12929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
12857
12930
  */
12858
12931
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
12859
12932
  /**
12860
12933
  * 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
12934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
12862
12935
  */
12863
12936
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
12864
12937
  /**
12865
12938
  * 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
12939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
12867
12940
  */
12868
12941
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
12869
12942
  /**
12870
12943
  * 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
12944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
12872
12945
  */
12873
12946
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
12874
12947
  /**
12875
12948
  * 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
12949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
12877
12950
  */
12878
12951
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
12879
12952
  /**
12880
12953
  * 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
12954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
12882
12955
  */
12883
12956
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
12884
12957
  /**
12885
12958
  * 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
12959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
12887
12960
  */
12888
12961
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
12889
12962
  /**
12890
12963
  * 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
12964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
12892
12965
  */
12893
12966
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
12894
12967
  /**
12895
12968
  * 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
12969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
12897
12970
  */
12898
12971
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
12899
12972
  /**
12900
12973
  * 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
12974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
12902
12975
  */
12903
12976
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
12904
12977
  /**
12905
12978
  * 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
12979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
12907
12980
  */
12908
12981
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
12909
12982
  /**
12910
12983
  * 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
12984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
12912
12985
  */
12913
12986
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
12914
12987
  /**
12915
12988
  * 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
12989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
12917
12990
  */
12918
12991
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
12919
12992
  /**
12920
12993
  * 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
12994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
12922
12995
  */
12923
12996
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
12924
12997
  /**
12925
12998
  * 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
12999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
12927
13000
  */
12928
13001
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
12929
13002
  /**
12930
13003
  * 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
13004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
12932
13005
  */
12933
13006
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
12934
13007
  /**
12935
13008
  * 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
13009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
12937
13010
  */
12938
13011
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
12939
13012
  /**
12940
13013
  * 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
13014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
12942
13015
  */
12943
13016
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
12944
13017
  /**
12945
13018
  * Prefer simplified conditions.
12946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
13019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
12947
13020
  */
12948
13021
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
12949
13022
  /**
12950
13023
  * 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
13024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
12952
13025
  */
12953
13026
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
12954
13027
  /**
12955
13028
  * 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
13029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
12957
13030
  */
12958
13031
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
12959
13032
  /**
12960
13033
  * 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
13034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
12962
13035
  */
12963
13036
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
12964
13037
  /**
12965
13038
  * 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
13039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
12967
13040
  */
12968
13041
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
12969
13042
  /**
12970
13043
  * 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
13044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
12972
13045
  */
12973
13046
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
12974
13047
  /**
12975
13048
  * 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
13049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
12977
13050
  */
12978
13051
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
12979
13052
  /**
12980
13053
  * 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
13054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
12982
13055
  */
12983
13056
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
12984
13057
  /**
12985
13058
  * 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
13059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
12987
13060
  */
12988
13061
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
12989
13062
  /**
12990
13063
  * 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
13064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
12992
13065
  */
12993
13066
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
12994
13067
  /**
12995
13068
  * 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
13069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
12997
13070
  */
12998
13071
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
12999
13072
  /**
13000
13073
  * 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
13074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
13002
13075
  */
13003
13076
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
13004
13077
  /**
13005
13078
  * 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
13079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
13007
13080
  */
13008
13081
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
13009
13082
  /**
13010
13083
  * 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
13084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
13012
13085
  */
13013
13086
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
13014
13087
  /**
13015
13088
  * 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
13089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
13017
13090
  */
13018
13091
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
13019
13092
  /**
13020
13093
  * 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
13094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
13022
13095
  */
13023
13096
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
13024
13097
  /**
13025
13098
  * 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
13099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
13027
13100
  */
13028
13101
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13029
13102
  /**
13030
13103
  * Prefer `switch` over multiple `else-if`.
13031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
13104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
13032
13105
  */
13033
13106
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
13034
13107
  /**
13035
13108
  * Prefer `Temporal` over `Date`.
13036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
13109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
13037
13110
  */
13038
13111
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
13039
13112
  /**
13040
13113
  * 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
13114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
13042
13115
  */
13043
13116
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
13044
13117
  /**
13045
13118
  * 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
13119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
13047
13120
  */
13048
13121
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
13049
13122
  /**
13050
13123
  * 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
13124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
13052
13125
  */
13053
13126
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
13054
13127
  /**
13055
13128
  * 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
13129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
13057
13130
  */
13058
13131
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
13059
13132
  /**
13060
13133
  * 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
13134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
13062
13135
  */
13063
13136
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
13064
13137
  /**
13065
13138
  * 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
13139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
13067
13140
  */
13068
13141
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
13069
13142
  /**
13070
13143
  * 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
13144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
13072
13145
  */
13073
13146
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
13074
13147
  /**
13075
13148
  * 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
13149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
13077
13150
  */
13078
13151
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
13079
13152
  /**
13080
13153
  * 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
13154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
13082
13155
  */
13083
13156
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
13084
13157
  /**
13085
13158
  * 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
13159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
13087
13160
  */
13088
13161
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
13089
13162
  /**
13090
13163
  * 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
13164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
13092
13165
  */
13093
13166
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
13094
13167
  /**
13095
13168
  * 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
13169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
13097
13170
  */
13098
13171
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
13099
13172
  /**
13100
13173
  * 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
13174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
13102
13175
  */
13103
13176
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
13104
13177
  /**
13105
13178
  * 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
13179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
13107
13180
  * @deprecated
13108
13181
  */
13109
13182
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
13110
13183
  /**
13111
13184
  * Enforce consistent relative URL style.
13112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
13185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
13113
13186
  */
13114
13187
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13115
13188
  /**
13116
13189
  * 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
13190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
13118
13191
  */
13119
13192
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
13120
13193
  /**
13121
13194
  * 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
13195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
13123
13196
  */
13124
13197
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
13125
13198
  /**
13126
13199
  * 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
13200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
13128
13201
  */
13129
13202
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
13130
13203
  /**
13131
13204
  * Require configured YAML frontmatter fields.
13132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
13205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
13133
13206
  */
13134
13207
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
13135
13208
  /**
13136
13209
  * 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
13210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
13138
13211
  */
13139
13212
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
13140
13213
  /**
13141
13214
  * 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
13215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
13143
13216
  */
13144
13217
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
13145
13218
  /**
13146
13219
  * 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
13220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13148
13221
  */
13149
13222
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
13150
13223
  /**
13151
13224
  * 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
13225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
13153
13226
  */
13154
13227
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
13155
13228
  /**
13156
13229
  * 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
13230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
13158
13231
  */
13159
13232
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
13160
13233
  /**
13161
13234
  * 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
13235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
13163
13236
  */
13164
13237
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
13165
13238
  /**
13166
13239
  * 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
13240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
13168
13241
  */
13169
13242
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
13170
13243
  /**
13171
13244
  * Enforce better string content.
13172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
13245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
13173
13246
  */
13174
13247
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
13175
13248
  /**
13176
13249
  * 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
13250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
13178
13251
  */
13179
13252
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13180
13253
  /**
13181
13254
  * 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
13255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
13183
13256
  */
13184
13257
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
13185
13258
  /**
13186
13259
  * Fix whitespace-insensitive template indentation.
13187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
13260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
13188
13261
  */
13189
13262
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
13190
13263
  /**
13191
13264
  * 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
13265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
13193
13266
  */
13194
13267
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13195
13268
  /**
13196
13269
  * 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
13270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
13198
13271
  */
13199
13272
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
13200
13273
  /**
13201
13274
  * Limit the complexity of `try` blocks.
13202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
13275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
13203
13276
  */
13204
13277
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
13205
13278
  }
@@ -13660,8 +13733,8 @@ type UnicornTryComplexity = [] | [{
13660
13733
  }];
13661
13734
  //#endregion
13662
13735
  //#region src/config/unicorn.d.ts
13663
- declare function unicorn(options?: unicorn.Options): Promise<[Config, Config, Config]>;
13664
- declare namespace unicorn {
13736
+ export declare function unicorn(options?: unicorn.Options): Promise<[Config, Config, Config]>;
13737
+ export declare namespace unicorn {
13665
13738
  interface Options extends PluginOptionsBase<Rules> {}
13666
13739
  type Rules = RuleOptions$2;
13667
13740
  }
@@ -13721,8 +13794,8 @@ type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
13721
13794
  })];
13722
13795
  //#endregion
13723
13796
  //#region src/config/unused-imports.d.ts
13724
- declare function unusedImports(options?: unusedImports.Options): Promise<[Config, Config]>;
13725
- declare namespace unusedImports {
13797
+ export declare function unusedImports(options?: unusedImports.Options): Promise<[Config, Config]>;
13798
+ export declare namespace unusedImports {
13726
13799
  interface Options extends PluginOptionsBase<Rules> {}
13727
13800
  type Rules = RuleOptions$1;
13728
13801
  }
@@ -14114,14 +14187,17 @@ type YmlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
14114
14187
  }];
14115
14188
  //#endregion
14116
14189
  //#region src/config/yml.d.ts
14117
- declare function yml(options?: yml.Options): Promise<[Config, Config]>;
14118
- declare namespace yml {
14190
+ export declare function yml(options?: yml.Options): Promise<[Config, Config]>;
14191
+ export declare namespace yml {
14119
14192
  interface Options extends PluginOptionsBase<Rules> {}
14120
14193
  type Rules = RuleOptions;
14121
14194
  }
14195
+ declare namespace config_d_exports {
14196
+ export { e18e, es, ignores, imports, jsdoc, jsonc, jsx, markdown, next, node, perfectionist, react, stylistic, test, ts, unicorn, unusedImports, yml };
14197
+ }
14122
14198
  //#endregion
14123
14199
  //#region src/defineConfig.d.ts
14124
- interface DefineConfigOptions extends ignores.Options {
14200
+ export interface DefineConfigOptions extends ignores.Options {
14125
14201
  /**
14126
14202
  * Plugins configuration
14127
14203
  */
@@ -14149,23 +14225,37 @@ interface DefineConfigOptions extends ignores.Options {
14149
14225
  */
14150
14226
  rules?: eslint.Linter.RulesRecord;
14151
14227
  }
14152
- declare function defineConfig(options?: DefineConfigOptions): Promise<Array<Config>>;
14228
+ export declare function defineConfig(options?: DefineConfigOptions): Promise<Array<Config>>;
14153
14229
  //#endregion
14154
14230
  //#region src/meta.d.ts
14155
- declare const meta: Readonly<{
14231
+ export declare const meta: Readonly<{
14156
14232
  buildNumber: number;
14157
14233
  name: string;
14158
14234
  version: string;
14159
14235
  }>;
14160
14236
  //#endregion
14161
14237
  //#region src/restrictedGlobals.d.ts
14162
- declare const restrictedGlobals: Readonly<RestrictedGlobals>;
14238
+ /**
14239
+ * Default restricted globals used by the ESLint rule no-restricted-globals.
14240
+ *
14241
+ * @see https://eslint.org/docs/latest/rules/no-restricted-globals
14242
+ */
14243
+ export declare const restrictedGlobals: Readonly<RestrictedGlobals>;
14163
14244
  //#endregion
14164
14245
  //#region src/restrictedImportPaths.d.ts
14165
14246
  /**
14166
14247
  * This file contains the list of restricted import paths used in the ESLint configuration.
14248
+ *
14249
+ * @see https://eslint.org/docs/latest/rules/no-restricted-imports
14250
+ */
14251
+ export declare const restrictedImportPaths: Readonly<RestrictedImportPaths>;
14252
+ //#endregion
14253
+ //#region src/restrictedSyntax.d.ts
14254
+ /**
14255
+ * Default restricted syntax used by the ESLint rule no-restricted-syntax.
14256
+ *
14257
+ * @see https://eslint.org/docs/latest/rules/no-restricted-syntax
14167
14258
  */
14168
- declare const restrictedImportPaths: Readonly<RestrictedImportPaths>;
14259
+ export declare const restrictedSyntax: Readonly<RestrictedSyntax>;
14169
14260
  //#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
14261
  //# sourceMappingURL=index.d.ts.map