@antfu/eslint-config 9.3.0 → 9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -380,7 +380,7 @@ interface RuleOptions {
380
380
  * Ensures components do not opt out of the default `ChangeDetectionStrategy.OnPush` change detection strategy
381
381
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md
382
382
  */
383
- 'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<[]>;
383
+ 'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<AngularPreferOnPushComponentChangeDetection>;
384
384
  /**
385
385
  * Use `OutputEmitterRef` instead of `@Output()`
386
386
  * @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-output-emitter-ref.md
@@ -1097,6 +1097,11 @@ interface RuleOptions {
1097
1097
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
1098
1098
  */
1099
1099
  'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
1100
+ /**
1101
+ * Avoid using TypeScript's export aliases.
1102
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/export-aliases.md
1103
+ */
1104
+ 'erasable-syntax-only/export-aliases'?: Linter.RuleEntry<[]>;
1100
1105
  /**
1101
1106
  * Avoid using TypeScript's import aliases.
1102
1107
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
@@ -1485,6 +1490,10 @@ interface RuleOptions {
1485
1490
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1486
1491
  */
1487
1492
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1493
+ /**
1494
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
1495
+ */
1496
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
1488
1497
  /**
1489
1498
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1490
1499
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -3157,7 +3166,7 @@ interface RuleOptions {
3157
3166
  * Disallow unmodified loop conditions
3158
3167
  * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
3159
3168
  */
3160
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
3169
+ 'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
3161
3170
  /**
3162
3171
  * Disallow ternary operators when simpler alternatives exist
3163
3172
  * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
@@ -3371,7 +3380,7 @@ interface RuleOptions {
3371
3380
  */
3372
3381
  'node/no-new-require'?: Linter.RuleEntry<[]>;
3373
3382
  /**
3374
- * disallow string concatenation with `__dirname` and `__filename`
3383
+ * disallow string concatenation with `__dirname`, `__filename`, and `import.meta` paths
3375
3384
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
3376
3385
  */
3377
3386
  'node/no-path-concat'?: Linter.RuleEntry<[]>;
@@ -3480,11 +3489,21 @@ interface RuleOptions {
3480
3489
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
3481
3490
  */
3482
3491
  'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>;
3492
+ /**
3493
+ * enforce using `node:assert/strict` instead of `node:assert`.
3494
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-import/assert-strict.md
3495
+ */
3496
+ 'node/prefer-import/assert-strict'?: Linter.RuleEntry<[]>;
3483
3497
  /**
3484
3498
  * enforce using the `node:` protocol when importing Node.js builtin modules.
3485
3499
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
3486
3500
  */
3487
3501
  'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>;
3502
+ /**
3503
+ * enforce using `process.getBuiltinModule()` to load Node.js built-in modules
3504
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-process-get-builtin-module.md
3505
+ */
3506
+ 'node/prefer-process-get-builtin-module'?: Linter.RuleEntry<NodePreferProcessGetBuiltinModule>;
3488
3507
  /**
3489
3508
  * enforce `require("dns").promises`
3490
3509
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
@@ -3699,6 +3718,11 @@ interface RuleOptions {
3699
3718
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
3700
3719
  */
3701
3720
  'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
3721
+ /**
3722
+ * Require blank lines around multi-line entries in `pnpm-workspace.yaml`, and disallow them between single-line entries
3723
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-blank-lines.test.ts
3724
+ */
3725
+ 'pnpm/yaml-blank-lines'?: Linter.RuleEntry<[]>;
3702
3726
  /**
3703
3727
  * Enforce settings in `pnpm-workspace.yaml`
3704
3728
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
@@ -5007,11 +5031,21 @@ interface RuleOptions {
5007
5031
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-uses-vars.md
5008
5032
  */
5009
5033
  'solid/jsx-uses-vars'?: Linter.RuleEntry<[]>;
5034
+ /**
5035
+ * Disallow passing uncalled signal accessors or other functions as value-typed DOM element attributes.
5036
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-accessor-as-prop.md
5037
+ */
5038
+ 'solid/no-accessor-as-prop'?: Linter.RuleEntry<[]>;
5010
5039
  /**
5011
5040
  * Disallow usage of type-unsafe event handlers.
5012
5041
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-array-handlers.md
5013
5042
  */
5014
5043
  'solid/no-array-handlers'?: Linter.RuleEntry<[]>;
5044
+ /**
5045
+ * Disallow browser-only globals inside server functions, which run exclusively on the server.
5046
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-browser-globals-in-server-function.md
5047
+ */
5048
+ 'solid/no-browser-globals-in-server-function'?: Linter.RuleEntry<[]>;
5015
5049
  /**
5016
5050
  * Disallow destructuring props. In Solid, props must be used with property accesses (`props.foo`) to preserve reactivity. This rule only tracks destructuring in the parameter list.
5017
5051
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-destructure.md
@@ -5022,6 +5056,16 @@ interface RuleOptions {
5022
5056
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-innerhtml.md
5023
5057
  */
5024
5058
  'solid/no-innerhtml'?: Linter.RuleEntry<SolidNoInnerhtml>;
5059
+ /**
5060
+ * Disallow server functions from capturing variables in enclosing non-module scopes, mirroring the compiler's build-time validation.
5061
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-invalid-server-capture.md
5062
+ */
5063
+ 'solid/no-invalid-server-capture'?: Linter.RuleEntry<[]>;
5064
+ /**
5065
+ * Disallow reactive primitives at module scope, where state is shared across SSR requests.
5066
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-module-scope-reactive-primitive.md
5067
+ */
5068
+ 'solid/no-module-scope-reactive-primitive'?: Linter.RuleEntry<[]>;
5025
5069
  /**
5026
5070
  * Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them.
5027
5071
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-proxy-apis.md
@@ -5037,6 +5081,16 @@ interface RuleOptions {
5037
5081
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-react-specific-props.md
5038
5082
  */
5039
5083
  'solid/no-react-specific-props'?: Linter.RuleEntry<[]>;
5084
+ /**
5085
+ * Disallow restating a prop or option value that is already the default.
5086
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-restated-default-options.md
5087
+ */
5088
+ 'solid/no-restated-default-options'?: Linter.RuleEntry<[]>;
5089
+ /**
5090
+ * Require the two-argument `createEffect(compute, effect)` form used by Solid 2.0.
5091
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-single-arg-create-effect.md
5092
+ */
5093
+ 'solid/no-single-arg-create-effect'?: Linter.RuleEntry<[]>;
5040
5094
  /**
5041
5095
  * Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`).
5042
5096
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md
@@ -5053,16 +5107,36 @@ interface RuleOptions {
5053
5107
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-for.md
5054
5108
  */
5055
5109
  'solid/prefer-for'?: Linter.RuleEntry<[]>;
5110
+ /**
5111
+ * Enforce running side-effectful setup (timers, global listeners, observers) inside `onSettled` instead of the component body.
5112
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-onSettled-for-side-effects.md
5113
+ */
5114
+ 'solid/prefer-onSettled-for-side-effects'?: Linter.RuleEntry<[]>;
5056
5115
  /**
5057
5116
  * Enforce using Solid's `<Show />` component for conditionally showing content. Solid's compiler covers this case, so it's a stylistic rule only.
5058
5117
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-show.md
5059
5118
  */
5060
5119
  'solid/prefer-show'?: Linter.RuleEntry<[]>;
5120
+ /**
5121
+ * Enforce using the structured array/object forms of the `class` prop over manually-built class strings.
5122
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-structured-class.md
5123
+ */
5124
+ 'solid/prefer-structured-class'?: Linter.RuleEntry<[]>;
5061
5125
  /**
5062
5126
  * Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected.
5063
5127
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/reactivity.md
5064
5128
  */
5065
5129
  'solid/reactivity'?: Linter.RuleEntry<SolidReactivity>;
5130
+ /**
5131
+ * Disallow Solid 1.x APIs that were removed or renamed in Solid 2.0, with migration guidance.
5132
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/removed-api.md
5133
+ */
5134
+ 'solid/removed-api'?: Linter.RuleEntry<[]>;
5135
+ /**
5136
+ * Require server functions to be async, matching their client-side contract.
5137
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/require-async-server-function.md
5138
+ */
5139
+ 'solid/require-async-server-function'?: Linter.RuleEntry<[]>;
5066
5140
  /**
5067
5141
  * Disallow extra closing tags for components without children.
5068
5142
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/self-closing-comp.md
@@ -5073,6 +5147,11 @@ interface RuleOptions {
5073
5147
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/style-prop.md
5074
5148
  */
5075
5149
  'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>;
5150
+ /**
5151
+ * Enforce that "use server" directives are placed where the compiler honors them, and that module-level directive files export working server functions.
5152
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/valid-use-server.md
5153
+ */
5154
+ 'solid/valid-use-server'?: Linter.RuleEntry<SolidValidUseServer>;
5076
5155
  /**
5077
5156
  * Enforce sorted `import` declarations within modules
5078
5157
  * @see https://eslint.org/docs/latest/rules/sort-imports
@@ -5931,6 +6010,11 @@ interface RuleOptions {
5931
6010
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
5932
6011
  */
5933
6012
  'svelte/no-useless-mustaches'?: Linter.RuleEntry<SvelteNoUselessMustaches>;
6013
+ /**
6014
+ * require attribute interpolation instead of template literals
6015
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-attribute-interpolation/
6016
+ */
6017
+ 'svelte/prefer-attribute-interpolation'?: Linter.RuleEntry<[]>;
5934
6018
  /**
5935
6019
  * require class directives instead of ternary expressions
5936
6020
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
@@ -7292,1740 +7376,1740 @@ interface RuleOptions {
7292
7376
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7293
7377
  /**
7294
7378
  * Prefer better DOM traversal APIs.
7295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
7379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
7296
7380
  */
7297
7381
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7298
7382
  /**
7299
7383
  * Removed. Prefer `eslint-plugin-regexp`
7300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7301
7385
  * @deprecated
7302
7386
  */
7303
7387
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7304
7388
  /**
7305
7389
  * Enforce a specific parameter name in catch clauses.
7306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
7390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
7307
7391
  */
7308
7392
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7309
7393
  /**
7310
7394
  * Enforce consistent class references in static methods.
7311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
7395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
7312
7396
  */
7313
7397
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7314
7398
  /**
7315
7399
  * Enforce better comment content.
7316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
7400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
7317
7401
  */
7318
7402
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7319
7403
  /**
7320
7404
  * Enforce a consistent return style for multiline arrow function bodies.
7321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
7405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
7322
7406
  */
7323
7407
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7324
7408
  /**
7325
7409
  * Enforce consistent assertion style with `node:assert`.
7326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
7410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
7327
7411
  */
7328
7412
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7329
7413
  /**
7330
7414
  * Enforce consistent naming for boolean names.
7331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
7415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
7332
7416
  */
7333
7417
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7334
7418
  /**
7335
7419
  * Enforce consistent class member order.
7336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
7420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
7337
7421
  */
7338
7422
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7339
7423
  /**
7340
7424
  * Enforce consistent spelling of compound words in identifiers.
7341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
7425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
7342
7426
  */
7343
7427
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7344
7428
  /**
7345
7429
  * Enforce consistent conditional object spread style.
7346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
7430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
7347
7431
  */
7348
7432
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7349
7433
  /**
7350
7434
  * Prefer passing `Date` directly to the constructor when cloning.
7351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
7435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
7352
7436
  */
7353
7437
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7354
7438
  /**
7355
7439
  * Use destructured variables over properties.
7356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
7440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
7357
7441
  */
7358
7442
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7359
7443
  /**
7360
7444
  * Prefer consistent types when spreading a ternary in an array literal.
7361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
7445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
7362
7446
  */
7363
7447
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7364
7448
  /**
7365
7449
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
7450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
7367
7451
  */
7368
7452
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7369
7453
  /**
7370
7454
  * Enforce consistent decorator position on exported classes.
7371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
7455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
7372
7456
  */
7373
7457
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7374
7458
  /**
7375
7459
  * Move function definitions to the highest possible scope.
7376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
7460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
7377
7461
  */
7378
7462
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7379
7463
  /**
7380
7464
  * Enforce function syntax by role.
7381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
7465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
7382
7466
  */
7383
7467
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7384
7468
  /**
7385
7469
  * Enforce consistent JSON file reads before `JSON.parse()`.
7386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
7470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
7387
7471
  */
7388
7472
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7389
7473
  /**
7390
7474
  * Enforce consistent optional chaining for same-base member access.
7391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
7475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
7392
7476
  */
7393
7477
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7394
7478
  /**
7395
7479
  * Enforce consistent style for escaping `${` in template literals.
7396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
7480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
7397
7481
  */
7398
7482
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7399
7483
  /**
7400
7484
  * Enforce consistent labels on tuple type elements.
7401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
7485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
7402
7486
  */
7403
7487
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7404
7488
  /**
7405
7489
  * Enforce correct `Error` subclassing.
7406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
7490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
7407
7491
  */
7408
7492
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7409
7493
  /**
7410
7494
  * Enforce consistent default export declarations.
7411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
7495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
7412
7496
  */
7413
7497
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7414
7498
  /**
7415
7499
  * Enforce consistent style for DOM element dataset access.
7416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
7500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
7417
7501
  */
7418
7502
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7419
7503
  /**
7420
7504
  * Enforce no spaces between braces.
7421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
7505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
7422
7506
  */
7423
7507
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7424
7508
  /**
7425
7509
  * Enforce passing a `message` value when creating a built-in error.
7426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
7510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
7427
7511
  */
7428
7512
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7429
7513
  /**
7430
7514
  * Require escape sequences to use uppercase or lowercase values.
7431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
7515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
7432
7516
  */
7433
7517
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7434
7518
  /**
7435
7519
  * Add expiration conditions to TODO comments.
7436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
7520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
7437
7521
  */
7438
7522
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7439
7523
  /**
7440
7524
  * Enforce explicitly comparing the `length` or `size` property of a value.
7441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
7525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
7442
7526
  */
7443
7527
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7444
7528
  /**
7445
7529
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
7530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
7447
7531
  */
7448
7532
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7449
7533
  /**
7450
7534
  * Enforce a case style for filenames and directory names.
7451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
7535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
7452
7536
  */
7453
7537
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7454
7538
  /**
7455
7539
  * Require identifiers to match a specified regular expression.
7456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
7540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
7457
7541
  */
7458
7542
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7459
7543
  /**
7460
7544
  * Enforce specific import styles per module.
7461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
7545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
7462
7546
  */
7463
7547
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7464
7548
  /**
7465
7549
  * Prevent usage of variables from outside the scope of isolated functions.
7466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
7550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
7467
7551
  */
7468
7552
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7469
7553
  /**
7470
7554
  * Enforce a consistent style for optional loop sources.
7471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
7555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
7472
7556
  */
7473
7557
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7474
7558
  /**
7475
7559
  * Require or disallow logical assignment operator shorthand
7476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
7560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
7477
7561
  */
7478
7562
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7479
7563
  /**
7480
7564
  * Limit the depth of nested calls.
7481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
7565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
7482
7566
  */
7483
7567
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7484
7568
  /**
7485
7569
  * Enforce replacements for variable, property, and filenames.
7486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
7570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
7487
7571
  */
7488
7572
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7489
7573
  /**
7490
7574
  * Enforce correct use of `new` for builtin constructors.
7491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
7575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
7492
7576
  */
7493
7577
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7494
7578
  /**
7495
7579
  * Enforce specifying rules to disable in `eslint-disable` comments.
7496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
7580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
7497
7581
  */
7498
7582
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7499
7583
  /**
7500
7584
  * Disallow recursive access to `this` within getters and setters.
7501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
7585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
7502
7586
  */
7503
7587
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7504
7588
  /**
7505
7589
  * Disallow bitwise operators where a logical operator was likely intended.
7506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
7590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
7507
7591
  */
7508
7592
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7509
7593
  /**
7510
7594
  * Disallow anonymous functions and classes as the default export.
7511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
7595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
7512
7596
  */
7513
7597
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7514
7598
  /**
7515
7599
  * Prevent passing a function reference directly to iterator methods.
7516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
7600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
7517
7601
  */
7518
7602
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7519
7603
  /**
7520
7604
  * Disallow array accumulation with `Array#concat()` in loops.
7521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
7605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
7522
7606
  */
7523
7607
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7524
7608
  /**
7525
7609
  * Disallow using reference values as `Array#fill()` values.
7526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
7610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
7527
7611
  */
7528
7612
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7529
7613
  /**
7530
7614
  * Disallow `.fill()` after `Array.from({length: …})`.
7531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
7615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
7532
7616
  */
7533
7617
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7534
7618
  /**
7535
7619
  * Disallow front-of-array mutation.
7536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
7620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
7537
7621
  */
7538
7622
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7539
7623
  /**
7540
7624
  * Disallow using the `this` argument in array methods.
7541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
7625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
7542
7626
  */
7543
7627
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7544
7628
  /**
7545
7629
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7547
7631
  * @deprecated
7548
7632
  */
7549
7633
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7550
7634
  /**
7551
7635
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
7636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
7553
7637
  */
7554
7638
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7555
7639
  /**
7556
7640
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
7641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
7558
7642
  */
7559
7643
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7560
7644
  /**
7561
7645
  * Prefer `Array#toSorted()` over `Array#sort()`.
7562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
7646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
7563
7647
  */
7564
7648
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7565
7649
  /**
7566
7650
  * Disallow sorting arrays to get the minimum or maximum value.
7567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
7651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
7568
7652
  */
7569
7653
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7570
7654
  /**
7571
7655
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
7656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
7573
7657
  */
7574
7658
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7575
7659
  /**
7576
7660
  * Disallow asterisk prefixes in documentation comments.
7577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7578
7662
  */
7579
7663
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7580
7664
  /**
7581
7665
  * Disallow async functions as `Promise#finally()` callbacks.
7582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
7666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
7583
7667
  */
7584
7668
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7585
7669
  /**
7586
7670
  * Disallow member access from await expression.
7587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
7671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
7588
7672
  */
7589
7673
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7590
7674
  /**
7591
7675
  * Disallow using `await` in `Promise` method parameters.
7592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
7676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
7593
7677
  */
7594
7678
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7595
7679
  /**
7596
7680
  * Disallow barrel files.
7597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
7681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
7598
7682
  */
7599
7683
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7600
7684
  /**
7601
7685
  * Disallow unnecessary `Blob` to `File` conversion.
7602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
7686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
7603
7687
  */
7604
7688
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7605
7689
  /**
7606
7690
  * Disallow boolean-returning sort comparators.
7607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
7691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
7608
7692
  */
7609
7693
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7610
7694
  /**
7611
7695
  * Disallow `break` and `continue` in nested loops and switches inside loops.
7612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
7696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
7613
7697
  */
7614
7698
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7615
7699
  /**
7616
7700
  * Prefer drawing canvases directly instead of converting them to images.
7617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
7701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
7618
7702
  */
7619
7703
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7620
7704
  /**
7621
7705
  * Disallow chained comparisons such as `a < b < c`.
7622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
7623
7707
  */
7624
7708
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7625
7709
  /**
7626
7710
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
7628
7712
  */
7629
7713
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7630
7714
  /**
7631
7715
  * Disallow dynamic object property existence checks.
7632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
7633
7717
  */
7634
7718
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7635
7719
  /**
7636
7720
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
7638
7722
  */
7639
7723
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7640
7724
  /**
7641
7725
  * Disallow confusing uses of `Array#with()`.
7642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
7643
7727
  */
7644
7728
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7645
7729
  /**
7646
7730
  * Do not use leading/trailing space between `console.log` parameters.
7647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
7648
7732
  */
7649
7733
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7650
7734
  /**
7651
7735
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
7736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
7653
7737
  */
7654
7738
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7655
7739
  /**
7656
7740
  * Disallow declarations before conditional early exits when they are only used after the exit.
7657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
7658
7742
  */
7659
7743
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7660
7744
  /**
7661
7745
  * Do not use `document.cookie` directly.
7662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
7663
7747
  */
7664
7748
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7665
7749
  /**
7666
7750
  * Disallow two comparisons of the same operands that can be combined into one.
7667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
7668
7752
  */
7669
7753
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7670
7754
  /**
7671
7755
  * Disallow duplicate adjacent branches in if chains.
7672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
7673
7757
  */
7674
7758
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7675
7759
  /**
7676
7760
  * Disallow adjacent duplicate operands in logical expressions.
7677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
7678
7762
  */
7679
7763
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7680
7764
  /**
7681
7765
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
7683
7767
  */
7684
7768
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7685
7769
  /**
7686
7770
  * Disallow duplicate values in `Set` constructor array literals.
7687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
7688
7772
  */
7689
7773
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7690
7774
  /**
7691
7775
  * Disallow empty files.
7692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
7693
7777
  */
7694
7778
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7695
7779
  /**
7696
7780
  * Disallow assigning to built-in error properties.
7697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
7698
7782
  */
7699
7783
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7700
7784
  /**
7701
7785
  * Disallow exports in scripts.
7702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
7703
7787
  */
7704
7788
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7705
7789
  /**
7706
7790
  * Prefer `for…of` over the `forEach` method.
7707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
7708
7792
  */
7709
7793
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7710
7794
  /**
7711
7795
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
7713
7797
  */
7714
7798
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7715
7799
  /**
7716
7800
  * Disallow assigning properties on the global object.
7717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
7718
7802
  */
7719
7803
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7720
7804
  /**
7721
7805
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7723
7807
  * @deprecated
7724
7808
  */
7725
7809
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7726
7810
  /**
7727
7811
  * Disallow immediate mutation after variable assignment.
7728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
7812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
7729
7813
  */
7730
7814
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7731
7815
  /**
7732
7816
  * Disallow impossible comparisons against `.length` or `.size`.
7733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
7817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
7734
7818
  */
7735
7819
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7736
7820
  /**
7737
7821
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
7822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
7739
7823
  */
7740
7824
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7741
7825
  /**
7742
7826
  * Disallow incorrect template literal interpolation syntax.
7743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7744
7828
  */
7745
7829
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7746
7830
  /**
7747
7831
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7749
7833
  * @deprecated
7750
7834
  */
7751
7835
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7752
7836
  /**
7753
7837
  * Disallow `instanceof` with built-in objects
7754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
7838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
7755
7839
  */
7756
7840
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7757
7841
  /**
7758
7842
  * Disallow calling functions and constructors with an invalid number of arguments.
7759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
7843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
7760
7844
  */
7761
7845
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7762
7846
  /**
7763
7847
  * Disallow comparing a single character from a string to a multi-character string.
7764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
7848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
7765
7849
  */
7766
7850
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7767
7851
  /**
7768
7852
  * Disallow invalid options in `fetch()` and `new Request()`.
7769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
7853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
7770
7854
  */
7771
7855
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7772
7856
  /**
7773
7857
  * Disallow invalid `accept` values on file inputs.
7774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
7858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
7775
7859
  */
7776
7860
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7777
7861
  /**
7778
7862
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
7863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
7780
7864
  */
7781
7865
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7782
7866
  /**
7783
7867
  * Disallow invalid implementations of well-known symbol methods.
7784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7785
7869
  */
7786
7870
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7787
7871
  /**
7788
7872
  * Disallow identifiers starting with `new` or `class`.
7789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
7873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
7790
7874
  */
7791
7875
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7792
7876
  /**
7793
7877
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
7878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
7795
7879
  */
7796
7880
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7797
7881
  /**
7798
7882
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
7883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
7800
7884
  */
7801
7885
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7802
7886
  /**
7803
7887
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7805
7889
  * @deprecated
7806
7890
  */
7807
7891
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7808
7892
  /**
7809
7893
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
7894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
7811
7895
  */
7812
7896
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7813
7897
  /**
7814
7898
  * Disallow mutating a loop iterable during iteration.
7815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
7899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
7816
7900
  */
7817
7901
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7818
7902
  /**
7819
7903
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
7904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
7821
7905
  */
7822
7906
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7823
7907
  /**
7824
7908
  * Disallow manually wrapped comments.
7825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
7909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
7826
7910
  */
7827
7911
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7828
7912
  /**
7829
7913
  * Disallow checking a Map key before accessing a different key.
7830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
7914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
7831
7915
  */
7832
7916
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7833
7917
  /**
7834
7918
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
7919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
7836
7920
  */
7837
7921
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7838
7922
  /**
7839
7923
  * Disallow references to missing local resources.
7840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
7924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
7841
7925
  */
7842
7926
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7843
7927
  /**
7844
7928
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7846
7930
  */
7847
7931
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7848
7932
  /**
7849
7933
  * Disallow named usage of default import and export.
7850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
7934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
7851
7935
  */
7852
7936
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7853
7937
  /**
7854
7938
  * Disallow negated array predicate calls.
7855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
7939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
7856
7940
  */
7857
7941
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7858
7942
  /**
7859
7943
  * Disallow negated comparisons.
7860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
7944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
7861
7945
  */
7862
7946
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7863
7947
  /**
7864
7948
  * Disallow negated conditions.
7865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
7949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
7866
7950
  */
7867
7951
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7868
7952
  /**
7869
7953
  * Disallow negated expression in equality check.
7870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
7954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
7871
7955
  */
7872
7956
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7873
7957
  /**
7874
7958
  * Disallow nested ternary expressions.
7875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
7959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
7876
7960
  */
7877
7961
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7878
7962
  /**
7879
7963
  * Disallow `new Array()`.
7880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
7964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
7881
7965
  */
7882
7966
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7883
7967
  /**
7884
7968
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
7969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
7886
7970
  */
7887
7971
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7888
7972
  /**
7889
7973
  * Disallow non-function values with function-style verb prefixes.
7890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
7974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
7891
7975
  */
7892
7976
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7893
7977
  /**
7894
7978
  * Disallow non-standard properties on built-in objects.
7895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
7979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
7896
7980
  */
7897
7981
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7898
7982
  /**
7899
7983
  * Disallow the use of the `null` literal.
7900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
7984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
7901
7985
  */
7902
7986
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7903
7987
  /**
7904
7988
  * Disallow the use of objects as default parameters.
7905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
7989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
7906
7990
  */
7907
7991
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7908
7992
  /**
7909
7993
  * Disallow `Object` methods with `Map` or `Set`.
7910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
7994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
7911
7995
  */
7912
7996
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7913
7997
  /**
7914
7998
  * Disallow optional chaining on undeclared variables.
7915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7916
8000
  */
7917
8001
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7918
8002
  /**
7919
8003
  * Disallow `process.exit()`.
7920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
8004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
7921
8005
  */
7922
8006
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7923
8007
  /**
7924
8008
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
8009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
7926
8010
  */
7927
8011
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7928
8012
  /**
7929
8013
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
8014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
7931
8015
  */
7932
8016
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7933
8017
  /**
7934
8018
  * Disallow selector syntax in DOM names.
7935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
8019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
7936
8020
  */
7937
8021
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7938
8022
  /**
7939
8023
  * Disallow shorthand properties that override related longhand properties.
7940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
8024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
7941
8025
  */
7942
8026
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7943
8027
  /**
7944
8028
  * Disallow passing single-element arrays to `Promise` methods.
7945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
8029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
7946
8030
  */
7947
8031
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7948
8032
  /**
7949
8033
  * Disallow classes that only have static members.
7950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
8034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
7951
8035
  */
7952
8036
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7953
8037
  /**
7954
8038
  * Prefer comparing values directly over subtracting and comparing to `0`.
7955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
8039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
7956
8040
  */
7957
8041
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7958
8042
  /**
7959
8043
  * Disallow `then` property.
7960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
8044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
7961
8045
  */
7962
8046
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7963
8047
  /**
7964
8048
  * Disallow assigning `this` to a variable.
7965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
8049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
7966
8050
  */
7967
8051
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7968
8052
  /**
7969
8053
  * Disallow `this` outside of classes.
7970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
8054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
7971
8055
  */
7972
8056
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7973
8057
  /**
7974
8058
  * Disallow assigning to top-level variables from inside functions.
7975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
8059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
7976
8060
  */
7977
8061
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7978
8062
  /**
7979
8063
  * Disallow top-level side effects in exported modules.
7980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
8064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
7981
8065
  */
7982
8066
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7983
8067
  /**
7984
8068
  * Disallow `all` as a transition property.
7985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
8069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
7986
8070
  */
7987
8071
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7988
8072
  /**
7989
8073
  * Disallow comparing `undefined` using `typeof`.
7990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
8074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
7991
8075
  */
7992
8076
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7993
8077
  /**
7994
8078
  * Disallow referencing methods without calling them.
7995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
8079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
7996
8080
  */
7997
8081
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7998
8082
  /**
7999
8083
  * Require class members to be declared.
8000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
8084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
8001
8085
  */
8002
8086
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8003
8087
  /**
8004
8088
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8006
8090
  */
8007
8091
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8008
8092
  /**
8009
8093
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
8010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
8094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
8011
8095
  */
8012
8096
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8013
8097
  /**
8014
8098
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
8099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
8016
8100
  */
8017
8101
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8018
8102
  /**
8019
8103
  * Disallow awaiting non-promise values.
8020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
8104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
8021
8105
  */
8022
8106
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8023
8107
  /**
8024
8108
  * Disallow unnecessary comparisons against boolean literals.
8025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8026
8110
  */
8027
8111
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8028
8112
  /**
8029
8113
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
8114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
8031
8115
  */
8032
8116
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8033
8117
  /**
8034
8118
  * Disallow unnecessary `globalThis` references.
8035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
8119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
8036
8120
  */
8037
8121
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8038
8122
  /**
8039
8123
  * Disallow unnecessary nested ternary expressions.
8040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
8124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
8041
8125
  */
8042
8126
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8043
8127
  /**
8044
8128
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
8129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
8046
8130
  */
8047
8131
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8048
8132
  /**
8049
8133
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
8134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
8051
8135
  */
8052
8136
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8053
8137
  /**
8054
8138
  * Disallow `Array#splice()` when simpler alternatives exist.
8055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
8139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
8056
8140
  */
8057
8141
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8058
8142
  /**
8059
8143
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
8144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
8061
8145
  */
8062
8146
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8063
8147
  /**
8064
8148
  * Disallow unreadable array destructuring.
8065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
8149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
8066
8150
  */
8067
8151
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8068
8152
  /**
8069
8153
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
8154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
8071
8155
  */
8072
8156
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8073
8157
  /**
8074
8158
  * Disallow unreadable IIFEs.
8075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
8159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
8076
8160
  */
8077
8161
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8078
8162
  /**
8079
8163
  * Disallow unreadable `new` expressions.
8080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
8164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
8081
8165
  */
8082
8166
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8083
8167
  /**
8084
8168
  * Disallow unreadable object destructuring.
8085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
8169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
8086
8170
  */
8087
8171
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8088
8172
  /**
8089
8173
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
8174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
8091
8175
  */
8092
8176
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8093
8177
  /**
8094
8178
  * Disallow unsafe DOM HTML APIs.
8095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
8179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
8096
8180
  */
8097
8181
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8098
8182
  /**
8099
8183
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8101
8185
  */
8102
8186
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8103
8187
  /**
8104
8188
  * Disallow unsafe values as property keys.
8105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
8189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
8106
8190
  */
8107
8191
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8108
8192
  /**
8109
8193
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8111
8195
  */
8112
8196
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8113
8197
  /**
8114
8198
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
8199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
8116
8200
  */
8117
8201
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8118
8202
  /**
8119
8203
  * Disallow ignoring the return value of selected array methods.
8120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
8204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
8121
8205
  */
8122
8206
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8123
8207
  /**
8124
8208
  * Disallow unused object properties.
8125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
8209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
8126
8210
  */
8127
8211
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8128
8212
  /**
8129
8213
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
8214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
8131
8215
  */
8132
8216
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8133
8217
  /**
8134
8218
  * Disallow useless type coercions of values that are already of the target type.
8135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
8219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
8136
8220
  */
8137
8221
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8138
8222
  /**
8139
8223
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
8224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
8141
8225
  */
8142
8226
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8143
8227
  /**
8144
8228
  * Disallow useless compound assignments such as `x += 0`.
8145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
8229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
8146
8230
  */
8147
8231
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8148
8232
  /**
8149
8233
  * Disallow useless concatenation of literals.
8150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
8234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
8151
8235
  */
8152
8236
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8153
8237
  /**
8154
8238
  * Disallow useless `continue` statements.
8155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
8239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
8156
8240
  */
8157
8241
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8158
8242
  /**
8159
8243
  * Disallow unnecessary existence checks before deletion.
8160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
8244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
8161
8245
  */
8162
8246
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8163
8247
  /**
8164
8248
  * Disallow `else` after a statement that exits.
8165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
8249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
8166
8250
  */
8167
8251
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8168
8252
  /**
8169
8253
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8171
8255
  */
8172
8256
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8173
8257
  /**
8174
8258
  * Disallow useless fallback when spreading in object literals.
8175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
8259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
8176
8260
  */
8177
8261
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8178
8262
  /**
8179
8263
  * Disallow unnecessary `.toArray()` on iterators.
8180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
8264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
8181
8265
  */
8182
8266
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8183
8267
  /**
8184
8268
  * Disallow useless array length check.
8185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
8269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
8186
8270
  */
8187
8271
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8188
8272
  /**
8189
8273
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
8274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
8191
8275
  */
8192
8276
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8193
8277
  /**
8194
8278
  * Disallow useless overrides of class methods.
8195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
8279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
8196
8280
  */
8197
8281
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8198
8282
  /**
8199
8283
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
8284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
8201
8285
  */
8202
8286
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8203
8287
  /**
8204
8288
  * Disallow redundant re-exports.
8205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
8289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
8206
8290
  */
8207
8291
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8208
8292
  /**
8209
8293
  * Disallow simple recursive function calls that can be replaced with a loop.
8210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
8294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
8211
8295
  */
8212
8296
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8213
8297
  /**
8214
8298
  * Disallow unnecessary spread.
8215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
8299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
8216
8300
  */
8217
8301
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8218
8302
  /**
8219
8303
  * Disallow useless case in switch statements.
8220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
8304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
8221
8305
  */
8222
8306
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8223
8307
  /**
8224
8308
  * Disallow useless template literal expressions.
8225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
8309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
8226
8310
  */
8227
8311
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8228
8312
  /**
8229
8313
  * Disallow useless `undefined`.
8230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
8314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
8231
8315
  */
8232
8316
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8233
8317
  /**
8234
8318
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
8319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
8236
8320
  */
8237
8321
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8238
8322
  /**
8239
8323
  * Disallow number literals with zero fractions or dangling dots.
8240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
8324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
8241
8325
  */
8242
8326
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8243
8327
  /**
8244
8328
  * Enforce proper case for numeric literals.
8245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
8329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
8246
8330
  */
8247
8331
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8248
8332
  /**
8249
8333
  * Enforce the style of numeric separators by correctly grouping digits.
8250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
8334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
8251
8335
  */
8252
8336
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8253
8337
  /**
8254
8338
  * Require assignment operator shorthand where possible.
8255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
8339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
8256
8340
  */
8257
8341
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8258
8342
  /**
8259
8343
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
8344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
8261
8345
  */
8262
8346
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8263
8347
  /**
8264
8348
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
8349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
8266
8350
  */
8267
8351
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8268
8352
  /**
8269
8353
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
8354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
8271
8355
  */
8272
8356
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8273
8357
  /**
8274
8358
  * Prefer an options object over a boolean in `.addEventListener()`.
8275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
8359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
8276
8360
  */
8277
8361
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8278
8362
  /**
8279
8363
  * Prefer `AggregateError` when throwing collected errors.
8280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
8364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
8281
8365
  */
8282
8366
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8283
8367
  /**
8284
8368
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
8369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
8286
8370
  */
8287
8371
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8288
8372
  /**
8289
8373
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
8374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
8291
8375
  */
8292
8376
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8293
8377
  /**
8294
8378
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
8379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
8296
8380
  */
8297
8381
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8298
8382
  /**
8299
8383
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
8384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
8301
8385
  */
8302
8386
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8303
8387
  /**
8304
8388
  * Prefer using the `Array.from()` mapping function argument.
8305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
8389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
8306
8390
  */
8307
8391
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8308
8392
  /**
8309
8393
  * Prefer `Array.from({length}, …)` when creating range arrays.
8310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
8394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
8311
8395
  */
8312
8396
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8313
8397
  /**
8314
8398
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
8399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
8316
8400
  */
8317
8401
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8318
8402
  /**
8319
8403
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
8404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
8321
8405
  */
8322
8406
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8323
8407
  /**
8324
8408
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
8409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
8326
8410
  */
8327
8411
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8328
8412
  /**
8329
8413
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
8414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
8331
8415
  */
8332
8416
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8333
8417
  /**
8334
8418
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
8419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
8336
8420
  */
8337
8421
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8338
8422
  /**
8339
8423
  * Prefer `.at()` method for index access and `String#charAt()`.
8340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
8424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
8341
8425
  */
8342
8426
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8343
8427
  /**
8344
8428
  * Prefer `await` over promise chaining.
8345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
8429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
8346
8430
  */
8347
8431
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8348
8432
  /**
8349
8433
  * Prefer `BigInt` literals over the constructor.
8350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
8434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
8351
8435
  */
8352
8436
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8353
8437
  /**
8354
8438
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
8439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
8356
8440
  */
8357
8441
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8358
8442
  /**
8359
8443
  * Prefer block statements over IIFEs used only for scoping.
8360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
8444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
8361
8445
  */
8362
8446
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8363
8447
  /**
8364
8448
  * Prefer directly returning boolean expressions over `if` statements.
8365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
8449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
8366
8450
  */
8367
8451
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8368
8452
  /**
8369
8453
  * Prefer class field declarations over `this` assignments in constructors.
8370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
8454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
8371
8455
  */
8372
8456
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8373
8457
  /**
8374
8458
  * Prefer using `Element#classList.toggle()` to toggle class names.
8375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
8459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
8376
8460
  */
8377
8461
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8378
8462
  /**
8379
8463
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
8464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
8381
8465
  */
8382
8466
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8383
8467
  /**
8384
8468
  * Prefer early continues over whole-loop conditional wrapping.
8385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
8469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
8386
8470
  */
8387
8471
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8388
8472
  /**
8389
8473
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
8474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
8391
8475
  */
8392
8476
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8393
8477
  /**
8394
8478
  * Prefer default parameters over reassignment.
8395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
8479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
8396
8480
  */
8397
8481
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8398
8482
  /**
8399
8483
  * Prefer direct iteration over default iterator method calls.
8400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
8484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
8401
8485
  */
8402
8486
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8403
8487
  /**
8404
8488
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
8489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
8406
8490
  */
8407
8491
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8408
8492
  /**
8409
8493
  * Prefer `Element#append()` over `Node#appendChild()`.
8410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
8494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
8411
8495
  */
8412
8496
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8413
8497
  /**
8414
8498
  * Renamed to `unicorn/dom-node-dataset`.
8415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8416
8500
  * @deprecated
8417
8501
  */
8418
8502
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8419
8503
  /**
8420
8504
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
8505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
8422
8506
  */
8423
8507
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8424
8508
  /**
8425
8509
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
8510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
8427
8511
  */
8428
8512
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8429
8513
  /**
8430
8514
  * Prefer `.replaceChildren()` when emptying DOM children.
8431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
8515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
8432
8516
  */
8433
8517
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8434
8518
  /**
8435
8519
  * Prefer `.textContent` over `.innerText`.
8436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
8520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
8437
8521
  */
8438
8522
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8439
8523
  /**
8440
8524
  * Prefer early returns over full-function conditional wrapping.
8441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
8525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
8442
8526
  */
8443
8527
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8444
8528
  /**
8445
8529
  * Prefer `else if` over adjacent `if` statements with related conditions.
8446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
8530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
8447
8531
  */
8448
8532
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8449
8533
  /**
8450
8534
  * Prefer `Error.isError()` when checking for errors.
8451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
8535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
8452
8536
  */
8453
8537
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8454
8538
  /**
8455
8539
  * Prefer `EventTarget` over `EventEmitter`.
8456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
8540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
8457
8541
  */
8458
8542
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8459
8543
  /**
8460
8544
  * Prefer explicit viewport units.
8461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
8545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
8462
8546
  */
8463
8547
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8464
8548
  /**
8465
8549
  * Prefer `export…from` when re-exporting.
8466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
8550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
8467
8551
  */
8468
8552
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8469
8553
  /**
8470
8554
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
8555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
8472
8556
  */
8473
8557
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8474
8558
  /**
8475
8559
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
8560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
8477
8561
  */
8478
8562
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8479
8563
  /**
8480
8564
  * Prefer global numeric constants over `Number` static properties.
8481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
8565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
8482
8566
  */
8483
8567
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8484
8568
  /**
8485
8569
  * Prefer `globalThis` over `window`, `self`, and `global`.
8486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
8570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
8487
8571
  */
8488
8572
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8489
8573
  /**
8490
8574
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
8575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
8492
8576
  */
8493
8577
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8494
8578
  /**
8495
8579
  * Prefer `.has()` when checking existence.
8496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
8580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
8497
8581
  */
8498
8582
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8499
8583
  /**
8500
8584
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
8585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
8502
8586
  */
8503
8587
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8504
8588
  /**
8505
8589
  * Prefer HTTPS over HTTP.
8506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
8590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
8507
8591
  */
8508
8592
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8509
8593
  /**
8510
8594
  * Prefer identifiers over string literals in import and export specifiers.
8511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8512
8596
  */
8513
8597
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8514
8598
  /**
8515
8599
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
8600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
8517
8601
  */
8518
8602
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8519
8603
  /**
8520
8604
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
8605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
8522
8606
  */
8523
8607
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8524
8608
  /**
8525
8609
  * Prefer `.includes()` over repeated equality comparisons.
8526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8527
8611
  */
8528
8612
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8529
8613
  /**
8530
8614
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
8615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
8532
8616
  */
8533
8617
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8534
8618
  /**
8535
8619
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
8620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
8537
8621
  */
8538
8622
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8539
8623
  /**
8540
8624
  * Prefer iterator helpers over temporary arrays from iterators.
8541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
8625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
8542
8626
  */
8543
8627
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8544
8628
  /**
8545
8629
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
8547
8631
  */
8548
8632
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8549
8633
  /**
8550
8634
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8552
8636
  */
8553
8637
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8554
8638
  /**
8555
8639
  * Renamed to `unicorn/consistent-json-file-read`.
8556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8557
8641
  * @deprecated
8558
8642
  */
8559
8643
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8560
8644
  /**
8561
8645
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
8646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
8563
8647
  */
8564
8648
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8565
8649
  /**
8566
8650
  * Prefer `location.assign()` over assigning to `location.href`.
8567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
8651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
8568
8652
  */
8569
8653
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8570
8654
  /**
8571
8655
  * Prefer using a logical operator over a ternary.
8572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8573
8657
  */
8574
8658
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8575
8659
  /**
8576
8660
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
8661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
8578
8662
  */
8579
8663
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8580
8664
  /**
8581
8665
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
8666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
8583
8667
  */
8584
8668
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8585
8669
  /**
8586
8670
  * Prefer `Math` constants over their approximate numeric values.
8587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
8671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
8588
8672
  */
8589
8673
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8590
8674
  /**
8591
8675
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
8676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
8593
8677
  */
8594
8678
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8595
8679
  /**
8596
8680
  * Prefer `Math.trunc()` for truncating numbers.
8597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
8681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
8598
8682
  */
8599
8683
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8600
8684
  /**
8601
8685
  * Prefer moving ternaries into the minimal varying part of an expression.
8602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
8686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
8603
8687
  */
8604
8688
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8605
8689
  /**
8606
8690
  * Prefer modern DOM APIs.
8607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
8691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
8608
8692
  */
8609
8693
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8610
8694
  /**
8611
8695
  * Prefer modern `Math` APIs over legacy patterns.
8612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
8696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
8613
8697
  */
8614
8698
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8615
8699
  /**
8616
8700
  * Prefer JavaScript modules (ESM) over CommonJS.
8617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
8701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
8618
8702
  */
8619
8703
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8620
8704
  /**
8621
8705
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
8706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
8623
8707
  */
8624
8708
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8625
8709
  /**
8626
8710
  * Prefer negative index over `.length - index` when possible.
8627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
8711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
8628
8712
  */
8629
8713
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8630
8714
  /**
8631
8715
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
8716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
8633
8717
  */
8634
8718
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8635
8719
  /**
8636
8720
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
8721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
8638
8722
  */
8639
8723
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8640
8724
  /**
8641
8725
  * Prefer `Number.isSafeInteger()` over integer checks.
8642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
8726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
8643
8727
  */
8644
8728
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8645
8729
  /**
8646
8730
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
8731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
8648
8732
  */
8649
8733
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8650
8734
  /**
8651
8735
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
8736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
8653
8737
  */
8654
8738
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8655
8739
  /**
8656
8740
  * Prefer object destructuring defaults over default object literals with spread.
8657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
8741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
8658
8742
  */
8659
8743
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8660
8744
  /**
8661
8745
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
8746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
8663
8747
  */
8664
8748
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8665
8749
  /**
8666
8750
  * Prefer the most specific `Object` iterable method.
8667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
8751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
8668
8752
  */
8669
8753
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8670
8754
  /**
8671
8755
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
8756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
8673
8757
  */
8674
8758
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8675
8759
  /**
8676
8760
  * Prefer omitting the `catch` binding parameter.
8677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
8761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
8678
8762
  */
8679
8763
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8680
8764
  /**
8681
8765
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
8766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
8683
8767
  */
8684
8768
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8685
8769
  /**
8686
8770
  * Prefer private class fields over the underscore-prefix convention.
8687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
8771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
8688
8772
  */
8689
8773
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8690
8774
  /**
8691
8775
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
8776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
8693
8777
  */
8694
8778
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8695
8779
  /**
8696
8780
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
8781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
8698
8782
  */
8699
8783
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8700
8784
  /**
8701
8785
  * Prefer borrowing methods from the prototype instead of the instance.
8702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
8786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
8703
8787
  */
8704
8788
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8705
8789
  /**
8706
8790
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
8791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
8708
8792
  */
8709
8793
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8710
8794
  /**
8711
8795
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
8796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
8713
8797
  */
8714
8798
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8715
8799
  /**
8716
8800
  * Prefer `Reflect.apply()` over `Function#apply()`.
8717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
8801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
8718
8802
  */
8719
8803
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8720
8804
  /**
8721
8805
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
8806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
8723
8807
  */
8724
8808
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8725
8809
  /**
8726
8810
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
8811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
8728
8812
  */
8729
8813
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8730
8814
  /**
8731
8815
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
8816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
8733
8817
  */
8734
8818
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8735
8819
  /**
8736
8820
  * Prefer `:scope` when using element query selector methods.
8737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
8821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
8738
8822
  */
8739
8823
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8740
8824
  /**
8741
8825
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
8826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
8743
8827
  */
8744
8828
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8745
8829
  /**
8746
8830
  * Prefer `Set` methods for Set operations.
8747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
8831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
8748
8832
  */
8749
8833
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8750
8834
  /**
8751
8835
  * Prefer using `Set#size` instead of `Array#length`.
8752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
8836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
8753
8837
  */
8754
8838
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8755
8839
  /**
8756
8840
  * Prefer arrow function properties over methods with a single return.
8757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
8841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
8758
8842
  */
8759
8843
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8760
8844
  /**
8761
8845
  * Prefer simple conditions first in logical expressions.
8762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
8846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
8763
8847
  */
8764
8848
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8765
8849
  /**
8766
8850
  * Prefer a simple comparison function for `Array#sort()`.
8767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
8851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
8768
8852
  */
8769
8853
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8770
8854
  /**
8771
8855
  * Prefer simplified conditions.
8772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
8856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
8773
8857
  */
8774
8858
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8775
8859
  /**
8776
8860
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
8861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
8778
8862
  */
8779
8863
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8780
8864
  /**
8781
8865
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
8866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
8783
8867
  */
8784
8868
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8785
8869
  /**
8786
8870
  * Prefer a single object destructuring declaration per local const source.
8787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
8871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
8788
8872
  */
8789
8873
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8790
8874
  /**
8791
8875
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
8876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
8793
8877
  */
8794
8878
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8795
8879
  /**
8796
8880
  * Prefer declaring variables in the smallest possible scope.
8797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
8881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
8798
8882
  */
8799
8883
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8800
8884
  /**
8801
8885
  * Prefer `String#split()` with a limit.
8802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
8886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
8803
8887
  */
8804
8888
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8805
8889
  /**
8806
8890
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
8891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
8808
8892
  */
8809
8893
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8810
8894
  /**
8811
8895
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
8896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
8813
8897
  */
8814
8898
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8815
8899
  /**
8816
8900
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
8901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
8818
8902
  */
8819
8903
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8820
8904
  /**
8821
8905
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
8906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
8823
8907
  */
8824
8908
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8825
8909
  /**
8826
8910
  * Prefer `String#repeat()` for repeated whitespace.
8827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
8911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
8828
8912
  */
8829
8913
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8830
8914
  /**
8831
8915
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
8916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
8833
8917
  */
8834
8918
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8835
8919
  /**
8836
8920
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
8921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
8838
8922
  */
8839
8923
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8840
8924
  /**
8841
8925
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
8926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
8843
8927
  */
8844
8928
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8845
8929
  /**
8846
8930
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
8931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
8848
8932
  */
8849
8933
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8850
8934
  /**
8851
8935
  * Prefer using `structuredClone` to create a deep clone.
8852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
8936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
8853
8937
  */
8854
8938
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8855
8939
  /**
8856
8940
  * Prefer `switch` over multiple `else-if`.
8857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
8941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
8858
8942
  */
8859
8943
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8860
8944
  /**
8861
8945
  * Prefer `Temporal` over `Date`.
8862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
8946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
8863
8947
  */
8864
8948
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8865
8949
  /**
8866
8950
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
8951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
8868
8952
  */
8869
8953
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8870
8954
  /**
8871
8955
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
8956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
8873
8957
  */
8874
8958
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8875
8959
  /**
8876
8960
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
8961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
8878
8962
  */
8879
8963
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8880
8964
  /**
8881
8965
  * Prefer top-level await over top-level promises and async function calls.
8882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
8966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
8883
8967
  */
8884
8968
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8885
8969
  /**
8886
8970
  * Enforce throwing `TypeError` in type checking conditions.
8887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
8971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
8888
8972
  */
8889
8973
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8890
8974
  /**
8891
8975
  * Require type literals to be last in union types.
8892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
8976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
8893
8977
  */
8894
8978
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8895
8979
  /**
8896
8980
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
8981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
8898
8982
  */
8899
8983
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8900
8984
  /**
8901
8985
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
8986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
8903
8987
  */
8904
8988
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8905
8989
  /**
8906
8990
  * Prefer Unicode code point escapes over legacy escape sequences.
8907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8908
8992
  */
8909
8993
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8910
8994
  /**
8911
8995
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
8996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
8913
8997
  */
8914
8998
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8915
8999
  /**
8916
9000
  * Prefer `URL#href` over stringifying a `URL`.
8917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
9001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
8918
9002
  */
8919
9003
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8920
9004
  /**
8921
9005
  * Prefer `URLSearchParams` over manually splitting query strings.
8922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
9006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
8923
9007
  */
8924
9008
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8925
9009
  /**
8926
9010
  * Prefer putting the condition in the while statement.
8927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
9011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
8928
9012
  */
8929
9013
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8930
9014
  /**
8931
9015
  * Renamed to `unicorn/name-replacements`.
8932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8933
9017
  * @deprecated
8934
9018
  */
8935
9019
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8936
9020
  /**
8937
9021
  * Enforce consistent relative URL style.
8938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
9022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
8939
9023
  */
8940
9024
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8941
9025
  /**
8942
9026
  * Enforce using the separator argument with `Array#join()`.
8943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
9027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
8944
9028
  */
8945
9029
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8946
9030
  /**
8947
9031
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
9032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
8949
9033
  */
8950
9034
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8951
9035
  /**
8952
9036
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
9037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
8954
9038
  */
8955
9039
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8956
9040
  /**
8957
9041
  * Require configured YAML frontmatter fields.
8958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
9042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
8959
9043
  */
8960
9044
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8961
9045
  /**
8962
9046
  * Require non-empty module attributes for imports and exports
8963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
9047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
8964
9048
  */
8965
9049
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8966
9050
  /**
8967
9051
  * Require non-empty specifier list in import and export statements.
8968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
9052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
8969
9053
  */
8970
9054
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8971
9055
  /**
8972
9056
  * Enforce using the digits argument with `Number#toFixed()`.
8973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8974
9058
  */
8975
9059
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8976
9060
  /**
8977
9061
  * Require passive event listeners for high-frequency events.
8978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
9062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
8979
9063
  */
8980
9064
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8981
9065
  /**
8982
9066
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
9067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
8984
9068
  */
8985
9069
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8986
9070
  /**
8987
9071
  * Require boolean-returning Proxy traps to return booleans.
8988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
9072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
8989
9073
  */
8990
9074
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8991
9075
  /**
8992
9076
  * Enforce a consistent style for single-line block comments.
8993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
9077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
8994
9078
  */
8995
9079
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8996
9080
  /**
8997
9081
  * Enforce better string content.
8998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
9082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
8999
9083
  */
9000
9084
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9001
9085
  /**
9002
9086
  * Enforce consistent brace style for `case` clauses.
9003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
9087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
9004
9088
  */
9005
9089
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9006
9090
  /**
9007
9091
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
9092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
9009
9093
  */
9010
9094
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9011
9095
  /**
9012
9096
  * Fix whitespace-insensitive template indentation.
9013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
9097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
9014
9098
  */
9015
9099
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9016
9100
  /**
9017
9101
  * Enforce consistent case for text encoding identifiers.
9018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
9102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
9019
9103
  */
9020
9104
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9021
9105
  /**
9022
9106
  * Require `new` when creating an error.
9023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
9107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
9024
9108
  */
9025
9109
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9026
9110
  /**
9027
9111
  * Limit the complexity of `try` blocks.
9028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
9112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
9029
9113
  */
9030
9114
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9031
9115
  /**
@@ -10777,6 +10861,10 @@ type AngularNoInputRename = [] | [{
10777
10861
  type AngularPipePrefix = [] | [{
10778
10862
  prefixes?: string[];
10779
10863
  }];
10864
+ // ----- angular/prefer-on-push-component-change-detection -----
10865
+ type AngularPreferOnPushComponentChangeDetection = [] | [{
10866
+ allowExplicitOnPush?: boolean;
10867
+ }];
10780
10868
  // ----- angular/prefer-signals -----
10781
10869
  type AngularPreferSignals = [] | [{
10782
10870
  preferReadonlySignalProperties?: boolean;
@@ -11423,12 +11511,16 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
11423
11511
  // ----- jsdoc/check-param-names -----
11424
11512
  type JsdocCheckParamNames = [] | [{
11425
11513
  allowExtraTrailingParamDocs?: boolean;
11514
+ badParamNames?: boolean;
11515
+ badParamOrder?: boolean;
11426
11516
  checkDestructured?: boolean;
11427
11517
  checkRestProperty?: boolean;
11428
11518
  checkTypesPattern?: string;
11429
11519
  disableExtraPropertyReporting?: boolean;
11430
11520
  disableMissingParamChecks?: boolean;
11521
+ duplicateParams?: boolean;
11431
11522
  enableFixer?: boolean;
11523
+ extraParams?: boolean;
11432
11524
  useDefaultObjectProperties?: boolean;
11433
11525
  }];
11434
11526
  // ----- jsdoc/check-property-names -----
@@ -11609,6 +11701,13 @@ type JsdocNoUndefinedTypes = [] | [{
11609
11701
  disableReporting?: boolean;
11610
11702
  markVariablesAsUsed?: boolean;
11611
11703
  }];
11704
+ // ----- jsdoc/no-unnecessary-type-assertion -----
11705
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
11706
+ checkLiteralConstAssertions?: boolean;
11707
+ enableFixer?: boolean;
11708
+ treatAnyAsRedundant?: boolean;
11709
+ typesToIgnore?: string[];
11710
+ }];
11612
11711
  // ----- jsdoc/normalize-see-links -----
11613
11712
  type JsdocNormalizeSeeLinks = [] | [{
11614
11713
  canonicalForm?: ("pipe" | "prefix");
@@ -13320,6 +13419,10 @@ type NoUnderscoreDangle = [] | [{
13320
13419
  allowInArrayDestructuring?: boolean;
13321
13420
  allowInObjectDestructuring?: boolean;
13322
13421
  }];
13422
+ // ----- no-unmodified-loop-condition -----
13423
+ type NoUnmodifiedLoopCondition = [] | [{
13424
+ checkConditionalExpressions?: boolean;
13425
+ }];
13323
13426
  // ----- no-unneeded-ternary -----
13324
13427
  type NoUnneededTernary = [] | [{
13325
13428
  defaultAssignment?: boolean;
@@ -13643,6 +13746,10 @@ type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")];
13643
13746
  type NodePreferNodeProtocol = [] | [{
13644
13747
  version?: string;
13645
13748
  }];
13749
+ // ----- node/prefer-process-get-builtin-module -----
13750
+ type NodePreferProcessGetBuiltinModule = [] | [{
13751
+ version?: string;
13752
+ }];
13646
13753
  // ----- node/shebang -----
13647
13754
  type NodeShebang = [] | [{
13648
13755
  convertPath?: ({
@@ -16815,7 +16922,6 @@ type SolidEventHandlers = [] | [{
16815
16922
  // ----- solid/jsx-no-duplicate-props -----
16816
16923
  type SolidJsxNoDuplicateProps = [] | [{
16817
16924
  ignoreCase?: boolean;
16818
- [k: string]: unknown | undefined;
16819
16925
  }];
16820
16926
  // ----- solid/jsx-no-undef -----
16821
16927
  type SolidJsxNoUndef = [] | [{
@@ -16849,6 +16955,10 @@ type SolidStyleProp = [] | [{
16849
16955
  styleProps?: [string, ...(string)[]];
16850
16956
  allowString?: boolean;
16851
16957
  }];
16958
+ // ----- solid/valid-use-server -----
16959
+ type SolidValidUseServer = [] | [{
16960
+ clientWrappers?: string[];
16961
+ }];
16852
16962
  // ----- sort-imports -----
16853
16963
  type SortImports = [] | [{
16854
16964
  ignoreCase?: boolean;
@@ -21712,7 +21822,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
21712
21822
  onlyEquality?: boolean;
21713
21823
  }];
21714
21824
  // Names of all the configs
21715
- type ConfigNames = 'antfu/gitignore' | 'antfu/ignores' | 'antfu/javascript/setup' | 'antfu/javascript/rules' | 'antfu/eslint-comments/rules' | 'antfu/command/rules' | 'antfu/perfectionist/setup' | 'antfu/node/setup' | 'antfu/node/rules' | 'antfu/jsdoc/setup' | 'antfu/jsdoc/rules' | 'antfu/imports/rules' | 'antfu/e18e/rules' | 'antfu/unicorn/setup' | 'antfu/unicorn/rules' | 'antfu/jsx/setup' | 'antfu/typescript/setup' | 'antfu/typescript/parser' | 'antfu/typescript/type-aware-parser' | 'antfu/typescript/rules' | 'antfu/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'antfu/stylistic/rules' | 'antfu/regexp/rules' | 'antfu/test/setup' | 'antfu/test/rules' | 'antfu/vue/setup' | 'antfu/vue/rules' | 'antfu/react/setup' | 'antfu/react/rules' | 'antfu/react/typescript' | 'antfu/react/type-aware-rules' | 'antfu/nextjs/setup' | 'antfu/nextjs/rules' | 'antfu/solid/setup' | 'antfu/solid/rules' | 'antfu/svelte/setup' | 'antfu/svelte/rules' | 'antfu/unocss' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'antfu/jsonc/setup' | 'antfu/jsonc/rules' | 'antfu/sort/package-json' | 'antfu/sort/tsconfig-json' | 'antfu/pnpm/package-json' | 'antfu/pnpm/pnpm-workspace-yaml' | 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'antfu/yaml/setup' | 'antfu/yaml/rules' | 'antfu/toml/setup' | 'antfu/toml/rules' | 'antfu/markdown/setup' | 'antfu/markdown/processor' | 'antfu/markdown/parser' | 'antfu/markdown/rules' | 'antfu/markdown/disables/code' | 'antfu/formatter/setup' | 'antfu/formatter/css' | 'antfu/formatter/scss' | 'antfu/formatter/less' | 'antfu/formatter/html' | 'antfu/formatter/xml' | 'antfu/formatter/svg' | 'antfu/formatter/markdown' | 'antfu/formatter/astro' | 'antfu/formatter/astro/disables' | 'antfu/formatter/graphql' | 'antfu/disables/scripts' | 'antfu/disables/cli' | 'antfu/disables/bin' | 'antfu/disables/dts' | 'antfu/disables/cjs' | 'antfu/disables/config-files';
21825
+ type ConfigNames = 'antfu/gitignore' | 'antfu/ignores' | 'antfu/javascript/setup' | 'antfu/javascript/rules' | 'antfu/eslint-comments/rules' | 'antfu/command/rules' | 'antfu/perfectionist/setup' | 'antfu/node/setup' | 'antfu/node/rules' | 'antfu/jsdoc/setup' | 'antfu/jsdoc/rules' | 'antfu/imports/rules' | 'antfu/e18e/rules' | 'antfu/unicorn/setup' | 'antfu/unicorn/rules' | 'antfu/jsx/setup' | 'antfu/typescript/setup' | 'antfu/typescript/parser' | 'antfu/typescript/type-aware-parser' | 'antfu/typescript/rules' | 'antfu/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'antfu/stylistic/rules' | 'antfu/regexp/rules' | 'antfu/test/setup' | 'antfu/test/rules' | 'antfu/vue/setup' | 'antfu/vue/rules' | 'antfu/react/setup' | 'antfu/react/rules' | 'antfu/react/typescript' | 'antfu/react/type-aware-rules' | 'antfu/nextjs/setup' | 'antfu/nextjs/rules' | 'antfu/solid/setup' | 'antfu/solid/rules' | 'antfu/svelte/setup' | 'antfu/svelte/rules' | 'antfu/unocss' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'antfu/jsonc/setup' | 'antfu/jsonc/rules' | 'antfu/sort/package-json' | 'antfu/sort/tsconfig-json' | 'antfu/pnpm/package-json' | 'antfu/pnpm/pnpm-workspace-yaml' | 'antfu/pnpm/pnpm-workspace-yaml-stylistic' | 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'antfu/yaml/setup' | 'antfu/yaml/rules' | 'antfu/toml/setup' | 'antfu/toml/rules' | 'antfu/markdown/setup' | 'antfu/markdown/processor' | 'antfu/markdown/parser' | 'antfu/markdown/rules' | 'antfu/markdown/disables/code' | 'antfu/formatter/setup' | 'antfu/formatter/css' | 'antfu/formatter/scss' | 'antfu/formatter/less' | 'antfu/formatter/html' | 'antfu/formatter/xml' | 'antfu/formatter/svg' | 'antfu/formatter/markdown' | 'antfu/formatter/astro' | 'antfu/formatter/astro/disables' | 'antfu/formatter/graphql' | 'antfu/disables/scripts' | 'antfu/disables/cli' | 'antfu/disables/bin' | 'antfu/disables/dts' | 'antfu/disables/cjs' | 'antfu/disables/config-files';
21716
21826
  //#endregion
21717
21827
  //#region src/vender/prettier-types.d.ts
21718
21828
  /**
@@ -22077,7 +22187,7 @@ interface OptionsRegExp {
22077
22187
  interface OptionsIsInEditor {
22078
22188
  isInEditor?: boolean;
22079
22189
  }
22080
- interface OptionsPnpm extends OptionsIsInEditor {
22190
+ interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
22081
22191
  /**
22082
22192
  * Requires catalogs usage
22083
22193
  *