@2digits/eslint-config 5.6.3 → 5.6.5

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
@@ -513,7 +513,7 @@ interface RuleOptions {
513
513
  * disallow using top-level permissions.
514
514
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-top-level-permissions.html
515
515
  */
516
- 'github-action/no-top-level-permissions'?: Linter.RuleEntry<[]>;
516
+ 'github-action/no-top-level-permissions'?: Linter.RuleEntry<GithubActionNoTopLevelPermissions>;
517
517
  /**
518
518
  * disallow unpinned uses references.
519
519
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-unpinned-uses.html
@@ -524,6 +524,11 @@ interface RuleOptions {
524
524
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-cancel-in-progress.html
525
525
  */
526
526
  'github-action/prefer-cancel-in-progress'?: Linter.RuleEntry<[]>;
527
+ /**
528
+ * disallow setting fail-fast to false.
529
+ * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-fail-fast.html
530
+ */
531
+ 'github-action/prefer-fail-fast'?: Linter.RuleEntry<[]>;
527
532
  /**
528
533
  * enforce workflow file extension.
529
534
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-file-extension.html
@@ -1173,6 +1178,10 @@ Backward pagination arguments
1173
1178
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1174
1179
  */
1175
1180
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1181
+ /**
1182
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
1183
+ */
1184
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
1176
1185
  /**
1177
1186
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1178
1187
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -7321,1740 +7330,1740 @@ Backward pagination arguments
7321
7330
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7322
7331
  /**
7323
7332
  * Prefer better DOM traversal APIs.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
7333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
7325
7334
  */
7326
7335
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7327
7336
  /**
7328
7337
  * Removed. Prefer `eslint-plugin-regexp`
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7330
7339
  * @deprecated
7331
7340
  */
7332
7341
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7333
7342
  /**
7334
7343
  * Enforce a specific parameter name in catch clauses.
7335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
7344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
7336
7345
  */
7337
7346
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7338
7347
  /**
7339
7348
  * Enforce consistent class references in static methods.
7340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
7349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
7341
7350
  */
7342
7351
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7343
7352
  /**
7344
7353
  * Enforce better comment content.
7345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
7354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
7346
7355
  */
7347
7356
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7348
7357
  /**
7349
7358
  * Enforce a consistent return style for multiline arrow function bodies.
7350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
7359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
7351
7360
  */
7352
7361
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7353
7362
  /**
7354
7363
  * Enforce consistent assertion style with `node:assert`.
7355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
7364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
7356
7365
  */
7357
7366
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7358
7367
  /**
7359
7368
  * Enforce consistent naming for boolean names.
7360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
7369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
7361
7370
  */
7362
7371
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7363
7372
  /**
7364
7373
  * Enforce consistent class member order.
7365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
7374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
7366
7375
  */
7367
7376
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7368
7377
  /**
7369
7378
  * Enforce consistent spelling of compound words in identifiers.
7370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
7379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
7371
7380
  */
7372
7381
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7373
7382
  /**
7374
7383
  * Enforce consistent conditional object spread style.
7375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
7384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
7376
7385
  */
7377
7386
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7378
7387
  /**
7379
7388
  * Prefer passing `Date` directly to the constructor when cloning.
7380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
7389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
7381
7390
  */
7382
7391
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7383
7392
  /**
7384
7393
  * Use destructured variables over properties.
7385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
7394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
7386
7395
  */
7387
7396
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7388
7397
  /**
7389
7398
  * Prefer consistent types when spreading a ternary in an array literal.
7390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
7399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
7391
7400
  */
7392
7401
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7393
7402
  /**
7394
7403
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
7404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
7396
7405
  */
7397
7406
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7398
7407
  /**
7399
7408
  * Enforce consistent decorator position on exported classes.
7400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
7409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
7401
7410
  */
7402
7411
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7403
7412
  /**
7404
7413
  * Move function definitions to the highest possible scope.
7405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
7414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
7406
7415
  */
7407
7416
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7408
7417
  /**
7409
7418
  * Enforce function syntax by role.
7410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
7419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
7411
7420
  */
7412
7421
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7413
7422
  /**
7414
7423
  * Enforce consistent JSON file reads before `JSON.parse()`.
7415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
7424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
7416
7425
  */
7417
7426
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7418
7427
  /**
7419
7428
  * Enforce consistent optional chaining for same-base member access.
7420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
7429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
7421
7430
  */
7422
7431
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7423
7432
  /**
7424
7433
  * Enforce consistent style for escaping `${` in template literals.
7425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
7434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
7426
7435
  */
7427
7436
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7428
7437
  /**
7429
7438
  * Enforce consistent labels on tuple type elements.
7430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
7439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
7431
7440
  */
7432
7441
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7433
7442
  /**
7434
7443
  * Enforce correct `Error` subclassing.
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
7444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
7436
7445
  */
7437
7446
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7438
7447
  /**
7439
7448
  * Enforce consistent default export declarations.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
7449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
7441
7450
  */
7442
7451
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7443
7452
  /**
7444
7453
  * Enforce consistent style for DOM element dataset access.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
7454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
7446
7455
  */
7447
7456
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7448
7457
  /**
7449
7458
  * Enforce no spaces between braces.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
7459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
7451
7460
  */
7452
7461
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7453
7462
  /**
7454
7463
  * Enforce passing a `message` value when creating a built-in error.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
7464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
7456
7465
  */
7457
7466
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7458
7467
  /**
7459
7468
  * Require escape sequences to use uppercase or lowercase values.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
7469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
7461
7470
  */
7462
7471
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7463
7472
  /**
7464
7473
  * Add expiration conditions to TODO comments.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
7474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
7466
7475
  */
7467
7476
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7468
7477
  /**
7469
7478
  * Enforce explicitly comparing the `length` or `size` property of a value.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
7479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
7471
7480
  */
7472
7481
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7473
7482
  /**
7474
7483
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
7484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
7476
7485
  */
7477
7486
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7478
7487
  /**
7479
7488
  * Enforce a case style for filenames and directory names.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
7489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
7481
7490
  */
7482
7491
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7483
7492
  /**
7484
7493
  * Require identifiers to match a specified regular expression.
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
7494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
7486
7495
  */
7487
7496
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7488
7497
  /**
7489
7498
  * Enforce specific import styles per module.
7490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
7499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
7491
7500
  */
7492
7501
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7493
7502
  /**
7494
7503
  * Prevent usage of variables from outside the scope of isolated functions.
7495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
7504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
7496
7505
  */
7497
7506
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7498
7507
  /**
7499
7508
  * Enforce a consistent style for optional loop sources.
7500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
7509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
7501
7510
  */
7502
7511
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7503
7512
  /**
7504
7513
  * Require or disallow logical assignment operator shorthand
7505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
7514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
7506
7515
  */
7507
7516
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7508
7517
  /**
7509
7518
  * Limit the depth of nested calls.
7510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
7511
7520
  */
7512
7521
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7513
7522
  /**
7514
7523
  * Enforce replacements for variable, property, and filenames.
7515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
7516
7525
  */
7517
7526
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7518
7527
  /**
7519
7528
  * Enforce correct use of `new` for builtin constructors.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
7521
7530
  */
7522
7531
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7523
7532
  /**
7524
7533
  * Enforce specifying rules to disable in `eslint-disable` comments.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
7526
7535
  */
7527
7536
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7528
7537
  /**
7529
7538
  * Disallow recursive access to `this` within getters and setters.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
7531
7540
  */
7532
7541
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7533
7542
  /**
7534
7543
  * Disallow bitwise operators where a logical operator was likely intended.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
7536
7545
  */
7537
7546
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7538
7547
  /**
7539
7548
  * Disallow anonymous functions and classes as the default export.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
7541
7550
  */
7542
7551
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7543
7552
  /**
7544
7553
  * Prevent passing a function reference directly to iterator methods.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
7546
7555
  */
7547
7556
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7548
7557
  /**
7549
7558
  * Disallow array accumulation with `Array#concat()` in loops.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
7551
7560
  */
7552
7561
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7553
7562
  /**
7554
7563
  * Disallow using reference values as `Array#fill()` values.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
7556
7565
  */
7557
7566
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7558
7567
  /**
7559
7568
  * Disallow `.fill()` after `Array.from({length: …})`.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
7561
7570
  */
7562
7571
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7563
7572
  /**
7564
7573
  * Disallow front-of-array mutation.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
7566
7575
  */
7567
7576
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7568
7577
  /**
7569
7578
  * Disallow using the `this` argument in array methods.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
7571
7580
  */
7572
7581
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7573
7582
  /**
7574
7583
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7576
7585
  * @deprecated
7577
7586
  */
7578
7587
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7579
7588
  /**
7580
7589
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
7590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
7582
7591
  */
7583
7592
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7584
7593
  /**
7585
7594
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
7595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
7587
7596
  */
7588
7597
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7589
7598
  /**
7590
7599
  * Prefer `Array#toSorted()` over `Array#sort()`.
7591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
7600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
7592
7601
  */
7593
7602
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7594
7603
  /**
7595
7604
  * Disallow sorting arrays to get the minimum or maximum value.
7596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
7605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
7597
7606
  */
7598
7607
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7599
7608
  /**
7600
7609
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
7610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
7602
7611
  */
7603
7612
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7604
7613
  /**
7605
7614
  * Disallow asterisk prefixes in documentation comments.
7606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7607
7616
  */
7608
7617
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7609
7618
  /**
7610
7619
  * Disallow async functions as `Promise#finally()` callbacks.
7611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
7620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
7612
7621
  */
7613
7622
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7614
7623
  /**
7615
7624
  * Disallow member access from await expression.
7616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
7625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
7617
7626
  */
7618
7627
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7619
7628
  /**
7620
7629
  * Disallow using `await` in `Promise` method parameters.
7621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
7630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
7622
7631
  */
7623
7632
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7624
7633
  /**
7625
7634
  * Disallow barrel files.
7626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
7635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
7627
7636
  */
7628
7637
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7629
7638
  /**
7630
7639
  * Disallow unnecessary `Blob` to `File` conversion.
7631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
7640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
7632
7641
  */
7633
7642
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7634
7643
  /**
7635
7644
  * Disallow boolean-returning sort comparators.
7636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
7645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
7637
7646
  */
7638
7647
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7639
7648
  /**
7640
7649
  * Disallow `break` and `continue` in nested loops and switches inside loops.
7641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
7650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
7642
7651
  */
7643
7652
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7644
7653
  /**
7645
7654
  * Prefer drawing canvases directly instead of converting them to images.
7646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
7655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
7647
7656
  */
7648
7657
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7649
7658
  /**
7650
7659
  * Disallow chained comparisons such as `a < b < c`.
7651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
7660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
7652
7661
  */
7653
7662
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7654
7663
  /**
7655
7664
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
7665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
7657
7666
  */
7658
7667
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7659
7668
  /**
7660
7669
  * Disallow dynamic object property existence checks.
7661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
7670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
7662
7671
  */
7663
7672
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7664
7673
  /**
7665
7674
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
7675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
7667
7676
  */
7668
7677
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7669
7678
  /**
7670
7679
  * Disallow confusing uses of `Array#with()`.
7671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
7680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
7672
7681
  */
7673
7682
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7674
7683
  /**
7675
7684
  * Do not use leading/trailing space between `console.log` parameters.
7676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
7685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
7677
7686
  */
7678
7687
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7679
7688
  /**
7680
7689
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
7690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
7682
7691
  */
7683
7692
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7684
7693
  /**
7685
7694
  * Disallow declarations before conditional early exits when they are only used after the exit.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
7695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
7687
7696
  */
7688
7697
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7689
7698
  /**
7690
7699
  * Do not use `document.cookie` directly.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
7700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
7692
7701
  */
7693
7702
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7694
7703
  /**
7695
7704
  * Disallow two comparisons of the same operands that can be combined into one.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
7705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
7697
7706
  */
7698
7707
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7699
7708
  /**
7700
7709
  * Disallow duplicate adjacent branches in if chains.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
7710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
7702
7711
  */
7703
7712
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7704
7713
  /**
7705
7714
  * Disallow adjacent duplicate operands in logical expressions.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
7715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
7707
7716
  */
7708
7717
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7709
7718
  /**
7710
7719
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
7720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
7712
7721
  */
7713
7722
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7714
7723
  /**
7715
7724
  * Disallow duplicate values in `Set` constructor array literals.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
7725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
7717
7726
  */
7718
7727
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7719
7728
  /**
7720
7729
  * Disallow empty files.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
7730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
7722
7731
  */
7723
7732
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7724
7733
  /**
7725
7734
  * Disallow assigning to built-in error properties.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
7727
7736
  */
7728
7737
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7729
7738
  /**
7730
7739
  * Disallow exports in scripts.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
7740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
7732
7741
  */
7733
7742
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7734
7743
  /**
7735
7744
  * Prefer `for…of` over the `forEach` method.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
7745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
7737
7746
  */
7738
7747
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7739
7748
  /**
7740
7749
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
7750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
7742
7751
  */
7743
7752
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7744
7753
  /**
7745
7754
  * Disallow assigning properties on the global object.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
7755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
7747
7756
  */
7748
7757
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7749
7758
  /**
7750
7759
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7752
7761
  * @deprecated
7753
7762
  */
7754
7763
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7755
7764
  /**
7756
7765
  * Disallow immediate mutation after variable assignment.
7757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
7758
7767
  */
7759
7768
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7760
7769
  /**
7761
7770
  * Disallow impossible comparisons against `.length` or `.size`.
7762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
7763
7772
  */
7764
7773
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7765
7774
  /**
7766
7775
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
7768
7777
  */
7769
7778
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7770
7779
  /**
7771
7780
  * Disallow incorrect template literal interpolation syntax.
7772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7773
7782
  */
7774
7783
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7775
7784
  /**
7776
7785
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7778
7787
  * @deprecated
7779
7788
  */
7780
7789
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7781
7790
  /**
7782
7791
  * Disallow `instanceof` with built-in objects
7783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
7792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
7784
7793
  */
7785
7794
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7786
7795
  /**
7787
7796
  * Disallow calling functions and constructors with an invalid number of arguments.
7788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
7797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
7789
7798
  */
7790
7799
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7791
7800
  /**
7792
7801
  * Disallow comparing a single character from a string to a multi-character string.
7793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
7802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
7794
7803
  */
7795
7804
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7796
7805
  /**
7797
7806
  * Disallow invalid options in `fetch()` and `new Request()`.
7798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
7807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
7799
7808
  */
7800
7809
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7801
7810
  /**
7802
7811
  * Disallow invalid `accept` values on file inputs.
7803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
7812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
7804
7813
  */
7805
7814
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7806
7815
  /**
7807
7816
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
7817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
7809
7818
  */
7810
7819
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7811
7820
  /**
7812
7821
  * Disallow invalid implementations of well-known symbol methods.
7813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7814
7823
  */
7815
7824
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7816
7825
  /**
7817
7826
  * Disallow identifiers starting with `new` or `class`.
7818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
7827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
7819
7828
  */
7820
7829
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7821
7830
  /**
7822
7831
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
7832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
7824
7833
  */
7825
7834
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7826
7835
  /**
7827
7836
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
7837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
7829
7838
  */
7830
7839
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7831
7840
  /**
7832
7841
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7834
7843
  * @deprecated
7835
7844
  */
7836
7845
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7837
7846
  /**
7838
7847
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
7848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
7840
7849
  */
7841
7850
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7842
7851
  /**
7843
7852
  * Disallow mutating a loop iterable during iteration.
7844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
7853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
7845
7854
  */
7846
7855
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7847
7856
  /**
7848
7857
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
7858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
7850
7859
  */
7851
7860
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7852
7861
  /**
7853
7862
  * Disallow manually wrapped comments.
7854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
7863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
7855
7864
  */
7856
7865
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7857
7866
  /**
7858
7867
  * Disallow checking a Map key before accessing a different key.
7859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
7868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
7860
7869
  */
7861
7870
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7862
7871
  /**
7863
7872
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
7873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
7865
7874
  */
7866
7875
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7867
7876
  /**
7868
7877
  * Disallow references to missing local resources.
7869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
7878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
7870
7879
  */
7871
7880
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7872
7881
  /**
7873
7882
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7875
7884
  */
7876
7885
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7877
7886
  /**
7878
7887
  * Disallow named usage of default import and export.
7879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
7888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
7880
7889
  */
7881
7890
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7882
7891
  /**
7883
7892
  * Disallow negated array predicate calls.
7884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
7893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
7885
7894
  */
7886
7895
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7887
7896
  /**
7888
7897
  * Disallow negated comparisons.
7889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
7898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
7890
7899
  */
7891
7900
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7892
7901
  /**
7893
7902
  * Disallow negated conditions.
7894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
7903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
7895
7904
  */
7896
7905
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7897
7906
  /**
7898
7907
  * Disallow negated expression in equality check.
7899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
7908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
7900
7909
  */
7901
7910
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7902
7911
  /**
7903
7912
  * Disallow nested ternary expressions.
7904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
7913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
7905
7914
  */
7906
7915
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7907
7916
  /**
7908
7917
  * Disallow `new Array()`.
7909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
7918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
7910
7919
  */
7911
7920
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7912
7921
  /**
7913
7922
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
7923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
7915
7924
  */
7916
7925
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7917
7926
  /**
7918
7927
  * Disallow non-function values with function-style verb prefixes.
7919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
7928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
7920
7929
  */
7921
7930
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7922
7931
  /**
7923
7932
  * Disallow non-standard properties on built-in objects.
7924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
7933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
7925
7934
  */
7926
7935
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7927
7936
  /**
7928
7937
  * Disallow the use of the `null` literal.
7929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
7938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
7930
7939
  */
7931
7940
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7932
7941
  /**
7933
7942
  * Disallow the use of objects as default parameters.
7934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
7943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
7935
7944
  */
7936
7945
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7937
7946
  /**
7938
7947
  * Disallow `Object` methods with `Map` or `Set`.
7939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
7948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
7940
7949
  */
7941
7950
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7942
7951
  /**
7943
7952
  * Disallow optional chaining on undeclared variables.
7944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7945
7954
  */
7946
7955
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7947
7956
  /**
7948
7957
  * Disallow `process.exit()`.
7949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
7958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
7950
7959
  */
7951
7960
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7952
7961
  /**
7953
7962
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
7963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
7955
7964
  */
7956
7965
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7957
7966
  /**
7958
7967
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
7968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
7960
7969
  */
7961
7970
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7962
7971
  /**
7963
7972
  * Disallow selector syntax in DOM names.
7964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
7973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
7965
7974
  */
7966
7975
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7967
7976
  /**
7968
7977
  * Disallow shorthand properties that override related longhand properties.
7969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
7978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
7970
7979
  */
7971
7980
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7972
7981
  /**
7973
7982
  * Disallow passing single-element arrays to `Promise` methods.
7974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
7983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
7975
7984
  */
7976
7985
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7977
7986
  /**
7978
7987
  * Disallow classes that only have static members.
7979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
7988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
7980
7989
  */
7981
7990
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7982
7991
  /**
7983
7992
  * Prefer comparing values directly over subtracting and comparing to `0`.
7984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
7993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
7985
7994
  */
7986
7995
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7987
7996
  /**
7988
7997
  * Disallow `then` property.
7989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
7998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
7990
7999
  */
7991
8000
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7992
8001
  /**
7993
8002
  * Disallow assigning `this` to a variable.
7994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
8003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
7995
8004
  */
7996
8005
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7997
8006
  /**
7998
8007
  * Disallow `this` outside of classes.
7999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
8008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
8000
8009
  */
8001
8010
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8002
8011
  /**
8003
8012
  * Disallow assigning to top-level variables from inside functions.
8004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
8013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
8005
8014
  */
8006
8015
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8007
8016
  /**
8008
8017
  * Disallow top-level side effects in exported modules.
8009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
8018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
8010
8019
  */
8011
8020
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
8012
8021
  /**
8013
8022
  * Disallow `all` as a transition property.
8014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
8023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
8015
8024
  */
8016
8025
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8017
8026
  /**
8018
8027
  * Disallow comparing `undefined` using `typeof`.
8019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
8028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
8020
8029
  */
8021
8030
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8022
8031
  /**
8023
8032
  * Disallow referencing methods without calling them.
8024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
8033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
8025
8034
  */
8026
8035
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8027
8036
  /**
8028
8037
  * Require class members to be declared.
8029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
8038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
8030
8039
  */
8031
8040
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8032
8041
  /**
8033
8042
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8035
8044
  */
8036
8045
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8037
8046
  /**
8038
8047
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
8039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
8048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
8040
8049
  */
8041
8050
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8042
8051
  /**
8043
8052
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
8053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
8045
8054
  */
8046
8055
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8047
8056
  /**
8048
8057
  * Disallow awaiting non-promise values.
8049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
8058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
8050
8059
  */
8051
8060
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8052
8061
  /**
8053
8062
  * Disallow unnecessary comparisons against boolean literals.
8054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8055
8064
  */
8056
8065
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8057
8066
  /**
8058
8067
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
8068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
8060
8069
  */
8061
8070
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8062
8071
  /**
8063
8072
  * Disallow unnecessary `globalThis` references.
8064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
8073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
8065
8074
  */
8066
8075
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8067
8076
  /**
8068
8077
  * Disallow unnecessary nested ternary expressions.
8069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
8078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
8070
8079
  */
8071
8080
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8072
8081
  /**
8073
8082
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
8083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
8075
8084
  */
8076
8085
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8077
8086
  /**
8078
8087
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
8088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
8080
8089
  */
8081
8090
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8082
8091
  /**
8083
8092
  * Disallow `Array#splice()` when simpler alternatives exist.
8084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
8093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
8085
8094
  */
8086
8095
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8087
8096
  /**
8088
8097
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
8098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
8090
8099
  */
8091
8100
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8092
8101
  /**
8093
8102
  * Disallow unreadable array destructuring.
8094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
8103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
8095
8104
  */
8096
8105
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8097
8106
  /**
8098
8107
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
8108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
8100
8109
  */
8101
8110
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8102
8111
  /**
8103
8112
  * Disallow unreadable IIFEs.
8104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
8113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
8105
8114
  */
8106
8115
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8107
8116
  /**
8108
8117
  * Disallow unreadable `new` expressions.
8109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
8118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
8110
8119
  */
8111
8120
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8112
8121
  /**
8113
8122
  * Disallow unreadable object destructuring.
8114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
8123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
8115
8124
  */
8116
8125
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8117
8126
  /**
8118
8127
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
8128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
8120
8129
  */
8121
8130
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8122
8131
  /**
8123
8132
  * Disallow unsafe DOM HTML APIs.
8124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
8133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
8125
8134
  */
8126
8135
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8127
8136
  /**
8128
8137
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8130
8139
  */
8131
8140
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8132
8141
  /**
8133
8142
  * Disallow unsafe values as property keys.
8134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
8143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
8135
8144
  */
8136
8145
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8137
8146
  /**
8138
8147
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8140
8149
  */
8141
8150
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8142
8151
  /**
8143
8152
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
8145
8154
  */
8146
8155
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8147
8156
  /**
8148
8157
  * Disallow ignoring the return value of selected array methods.
8149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
8158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
8150
8159
  */
8151
8160
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8152
8161
  /**
8153
8162
  * Disallow unused object properties.
8154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
8155
8164
  */
8156
8165
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8157
8166
  /**
8158
8167
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
8160
8169
  */
8161
8170
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8162
8171
  /**
8163
8172
  * Disallow useless type coercions of values that are already of the target type.
8164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
8165
8174
  */
8166
8175
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8167
8176
  /**
8168
8177
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
8170
8179
  */
8171
8180
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8172
8181
  /**
8173
8182
  * Disallow useless compound assignments such as `x += 0`.
8174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
8175
8184
  */
8176
8185
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8177
8186
  /**
8178
8187
  * Disallow useless concatenation of literals.
8179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
8180
8189
  */
8181
8190
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8182
8191
  /**
8183
8192
  * Disallow useless `continue` statements.
8184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
8185
8194
  */
8186
8195
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8187
8196
  /**
8188
8197
  * Disallow unnecessary existence checks before deletion.
8189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
8190
8199
  */
8191
8200
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8192
8201
  /**
8193
8202
  * Disallow `else` after a statement that exits.
8194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
8195
8204
  */
8196
8205
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8197
8206
  /**
8198
8207
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8200
8209
  */
8201
8210
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8202
8211
  /**
8203
8212
  * Disallow useless fallback when spreading in object literals.
8204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
8205
8214
  */
8206
8215
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8207
8216
  /**
8208
8217
  * Disallow unnecessary `.toArray()` on iterators.
8209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
8210
8219
  */
8211
8220
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8212
8221
  /**
8213
8222
  * Disallow useless array length check.
8214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
8215
8224
  */
8216
8225
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8217
8226
  /**
8218
8227
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
8220
8229
  */
8221
8230
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8222
8231
  /**
8223
8232
  * Disallow useless overrides of class methods.
8224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
8225
8234
  */
8226
8235
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8227
8236
  /**
8228
8237
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
8230
8239
  */
8231
8240
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8232
8241
  /**
8233
8242
  * Disallow redundant re-exports.
8234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
8235
8244
  */
8236
8245
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8237
8246
  /**
8238
8247
  * Disallow simple recursive function calls that can be replaced with a loop.
8239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
8240
8249
  */
8241
8250
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8242
8251
  /**
8243
8252
  * Disallow unnecessary spread.
8244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
8245
8254
  */
8246
8255
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8247
8256
  /**
8248
8257
  * Disallow useless case in switch statements.
8249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
8250
8259
  */
8251
8260
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8252
8261
  /**
8253
8262
  * Disallow useless template literal expressions.
8254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
8263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
8255
8264
  */
8256
8265
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8257
8266
  /**
8258
8267
  * Disallow useless `undefined`.
8259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
8268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
8260
8269
  */
8261
8270
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8262
8271
  /**
8263
8272
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
8273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
8265
8274
  */
8266
8275
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8267
8276
  /**
8268
8277
  * Disallow number literals with zero fractions or dangling dots.
8269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
8278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
8270
8279
  */
8271
8280
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8272
8281
  /**
8273
8282
  * Enforce proper case for numeric literals.
8274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
8283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
8275
8284
  */
8276
8285
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8277
8286
  /**
8278
8287
  * Enforce the style of numeric separators by correctly grouping digits.
8279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
8280
8289
  */
8281
8290
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8282
8291
  /**
8283
8292
  * Require assignment operator shorthand where possible.
8284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
8285
8294
  */
8286
8295
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8287
8296
  /**
8288
8297
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
8290
8299
  */
8291
8300
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8292
8301
  /**
8293
8302
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
8295
8304
  */
8296
8305
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8297
8306
  /**
8298
8307
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
8300
8309
  */
8301
8310
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8302
8311
  /**
8303
8312
  * Prefer an options object over a boolean in `.addEventListener()`.
8304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
8305
8314
  */
8306
8315
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8307
8316
  /**
8308
8317
  * Prefer `AggregateError` when throwing collected errors.
8309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
8310
8319
  */
8311
8320
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8312
8321
  /**
8313
8322
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
8315
8324
  */
8316
8325
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8317
8326
  /**
8318
8327
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
8320
8329
  */
8321
8330
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8322
8331
  /**
8323
8332
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
8325
8334
  */
8326
8335
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8327
8336
  /**
8328
8337
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
8330
8339
  */
8331
8340
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8332
8341
  /**
8333
8342
  * Prefer using the `Array.from()` mapping function argument.
8334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
8335
8344
  */
8336
8345
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8337
8346
  /**
8338
8347
  * Prefer `Array.from({length}, …)` when creating range arrays.
8339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
8340
8349
  */
8341
8350
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8342
8351
  /**
8343
8352
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
8345
8354
  */
8346
8355
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8347
8356
  /**
8348
8357
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
8350
8359
  */
8351
8360
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8352
8361
  /**
8353
8362
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
8355
8364
  */
8356
8365
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8357
8366
  /**
8358
8367
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
8360
8369
  */
8361
8370
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8362
8371
  /**
8363
8372
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
8365
8374
  */
8366
8375
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8367
8376
  /**
8368
8377
  * Prefer `.at()` method for index access and `String#charAt()`.
8369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
8370
8379
  */
8371
8380
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8372
8381
  /**
8373
8382
  * Prefer `await` over promise chaining.
8374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
8375
8384
  */
8376
8385
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8377
8386
  /**
8378
8387
  * Prefer `BigInt` literals over the constructor.
8379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
8380
8389
  */
8381
8390
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8382
8391
  /**
8383
8392
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
8385
8394
  */
8386
8395
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8387
8396
  /**
8388
8397
  * Prefer block statements over IIFEs used only for scoping.
8389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
8390
8399
  */
8391
8400
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8392
8401
  /**
8393
8402
  * Prefer directly returning boolean expressions over `if` statements.
8394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
8395
8404
  */
8396
8405
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8397
8406
  /**
8398
8407
  * Prefer class field declarations over `this` assignments in constructors.
8399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
8400
8409
  */
8401
8410
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8402
8411
  /**
8403
8412
  * Prefer using `Element#classList.toggle()` to toggle class names.
8404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
8405
8414
  */
8406
8415
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8407
8416
  /**
8408
8417
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
8410
8419
  */
8411
8420
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8412
8421
  /**
8413
8422
  * Prefer early continues over whole-loop conditional wrapping.
8414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
8415
8424
  */
8416
8425
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8417
8426
  /**
8418
8427
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
8420
8429
  */
8421
8430
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8422
8431
  /**
8423
8432
  * Prefer default parameters over reassignment.
8424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
8425
8434
  */
8426
8435
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8427
8436
  /**
8428
8437
  * Prefer direct iteration over default iterator method calls.
8429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
8430
8439
  */
8431
8440
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8432
8441
  /**
8433
8442
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
8435
8444
  */
8436
8445
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8437
8446
  /**
8438
8447
  * Prefer `Element#append()` over `Node#appendChild()`.
8439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
8440
8449
  */
8441
8450
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8442
8451
  /**
8443
8452
  * Renamed to `unicorn/dom-node-dataset`.
8444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8445
8454
  * @deprecated
8446
8455
  */
8447
8456
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8448
8457
  /**
8449
8458
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
8459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
8451
8460
  */
8452
8461
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8453
8462
  /**
8454
8463
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
8464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
8456
8465
  */
8457
8466
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8458
8467
  /**
8459
8468
  * Prefer `.replaceChildren()` when emptying DOM children.
8460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
8469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
8461
8470
  */
8462
8471
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8463
8472
  /**
8464
8473
  * Prefer `.textContent` over `.innerText`.
8465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
8474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
8466
8475
  */
8467
8476
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8468
8477
  /**
8469
8478
  * Prefer early returns over full-function conditional wrapping.
8470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
8479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
8471
8480
  */
8472
8481
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8473
8482
  /**
8474
8483
  * Prefer `else if` over adjacent `if` statements with related conditions.
8475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
8484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
8476
8485
  */
8477
8486
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8478
8487
  /**
8479
8488
  * Prefer `Error.isError()` when checking for errors.
8480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
8489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
8481
8490
  */
8482
8491
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8483
8492
  /**
8484
8493
  * Prefer `EventTarget` over `EventEmitter`.
8485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
8494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
8486
8495
  */
8487
8496
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8488
8497
  /**
8489
8498
  * Prefer explicit viewport units.
8490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
8499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
8491
8500
  */
8492
8501
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8493
8502
  /**
8494
8503
  * Prefer `export…from` when re-exporting.
8495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
8504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
8496
8505
  */
8497
8506
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8498
8507
  /**
8499
8508
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
8509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
8501
8510
  */
8502
8511
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8503
8512
  /**
8504
8513
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
8514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
8506
8515
  */
8507
8516
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8508
8517
  /**
8509
8518
  * Prefer global numeric constants over `Number` static properties.
8510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
8519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
8511
8520
  */
8512
8521
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8513
8522
  /**
8514
8523
  * Prefer `globalThis` over `window`, `self`, and `global`.
8515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
8524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
8516
8525
  */
8517
8526
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8518
8527
  /**
8519
8528
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
8529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
8521
8530
  */
8522
8531
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8523
8532
  /**
8524
8533
  * Prefer `.has()` when checking existence.
8525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
8534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
8526
8535
  */
8527
8536
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8528
8537
  /**
8529
8538
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
8539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
8531
8540
  */
8532
8541
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8533
8542
  /**
8534
8543
  * Prefer HTTPS over HTTP.
8535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
8544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
8536
8545
  */
8537
8546
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8538
8547
  /**
8539
8548
  * Prefer identifiers over string literals in import and export specifiers.
8540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8541
8550
  */
8542
8551
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8543
8552
  /**
8544
8553
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
8554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
8546
8555
  */
8547
8556
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8548
8557
  /**
8549
8558
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
8559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
8551
8560
  */
8552
8561
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8553
8562
  /**
8554
8563
  * Prefer `.includes()` over repeated equality comparisons.
8555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8556
8565
  */
8557
8566
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8558
8567
  /**
8559
8568
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
8569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
8561
8570
  */
8562
8571
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8563
8572
  /**
8564
8573
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
8574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
8566
8575
  */
8567
8576
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8568
8577
  /**
8569
8578
  * Prefer iterator helpers over temporary arrays from iterators.
8570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
8579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
8571
8580
  */
8572
8581
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8573
8582
  /**
8574
8583
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
8584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
8576
8585
  */
8577
8586
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8578
8587
  /**
8579
8588
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8581
8590
  */
8582
8591
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8583
8592
  /**
8584
8593
  * Renamed to `unicorn/consistent-json-file-read`.
8585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8586
8595
  * @deprecated
8587
8596
  */
8588
8597
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8589
8598
  /**
8590
8599
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
8600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
8592
8601
  */
8593
8602
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8594
8603
  /**
8595
8604
  * Prefer `location.assign()` over assigning to `location.href`.
8596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
8605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
8597
8606
  */
8598
8607
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8599
8608
  /**
8600
8609
  * Prefer using a logical operator over a ternary.
8601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8602
8611
  */
8603
8612
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8604
8613
  /**
8605
8614
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
8615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
8607
8616
  */
8608
8617
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8609
8618
  /**
8610
8619
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
8620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
8612
8621
  */
8613
8622
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8614
8623
  /**
8615
8624
  * Prefer `Math` constants over their approximate numeric values.
8616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
8625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
8617
8626
  */
8618
8627
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8619
8628
  /**
8620
8629
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
8622
8631
  */
8623
8632
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8624
8633
  /**
8625
8634
  * Prefer `Math.trunc()` for truncating numbers.
8626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
8627
8636
  */
8628
8637
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8629
8638
  /**
8630
8639
  * Prefer moving ternaries into the minimal varying part of an expression.
8631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
8640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
8632
8641
  */
8633
8642
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8634
8643
  /**
8635
8644
  * Prefer modern DOM APIs.
8636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
8645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
8637
8646
  */
8638
8647
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8639
8648
  /**
8640
8649
  * Prefer modern `Math` APIs over legacy patterns.
8641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
8650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
8642
8651
  */
8643
8652
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8644
8653
  /**
8645
8654
  * Prefer JavaScript modules (ESM) over CommonJS.
8646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
8655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
8647
8656
  */
8648
8657
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8649
8658
  /**
8650
8659
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
8660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
8652
8661
  */
8653
8662
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8654
8663
  /**
8655
8664
  * Prefer negative index over `.length - index` when possible.
8656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
8665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
8657
8666
  */
8658
8667
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8659
8668
  /**
8660
8669
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
8670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
8662
8671
  */
8663
8672
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8664
8673
  /**
8665
8674
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
8675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
8667
8676
  */
8668
8677
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8669
8678
  /**
8670
8679
  * Prefer `Number.isSafeInteger()` over integer checks.
8671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
8680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
8672
8681
  */
8673
8682
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8674
8683
  /**
8675
8684
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
8685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
8677
8686
  */
8678
8687
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8679
8688
  /**
8680
8689
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
8690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
8682
8691
  */
8683
8692
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8684
8693
  /**
8685
8694
  * Prefer object destructuring defaults over default object literals with spread.
8686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
8695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
8687
8696
  */
8688
8697
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8689
8698
  /**
8690
8699
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
8700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
8692
8701
  */
8693
8702
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8694
8703
  /**
8695
8704
  * Prefer the most specific `Object` iterable method.
8696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
8705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
8697
8706
  */
8698
8707
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8699
8708
  /**
8700
8709
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
8710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
8702
8711
  */
8703
8712
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8704
8713
  /**
8705
8714
  * Prefer omitting the `catch` binding parameter.
8706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
8715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
8707
8716
  */
8708
8717
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8709
8718
  /**
8710
8719
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
8720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
8712
8721
  */
8713
8722
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8714
8723
  /**
8715
8724
  * Prefer private class fields over the underscore-prefix convention.
8716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
8725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
8717
8726
  */
8718
8727
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8719
8728
  /**
8720
8729
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
8730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
8722
8731
  */
8723
8732
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8724
8733
  /**
8725
8734
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
8735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
8727
8736
  */
8728
8737
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8729
8738
  /**
8730
8739
  * Prefer borrowing methods from the prototype instead of the instance.
8731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
8740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
8732
8741
  */
8733
8742
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8734
8743
  /**
8735
8744
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
8745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
8737
8746
  */
8738
8747
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8739
8748
  /**
8740
8749
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
8750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
8742
8751
  */
8743
8752
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8744
8753
  /**
8745
8754
  * Prefer `Reflect.apply()` over `Function#apply()`.
8746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
8755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
8747
8756
  */
8748
8757
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8749
8758
  /**
8750
8759
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
8760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
8752
8761
  */
8753
8762
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8754
8763
  /**
8755
8764
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
8765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
8757
8766
  */
8758
8767
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8759
8768
  /**
8760
8769
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
8770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
8762
8771
  */
8763
8772
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8764
8773
  /**
8765
8774
  * Prefer `:scope` when using element query selector methods.
8766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
8775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
8767
8776
  */
8768
8777
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8769
8778
  /**
8770
8779
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
8780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
8772
8781
  */
8773
8782
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8774
8783
  /**
8775
8784
  * Prefer `Set` methods for Set operations.
8776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
8785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
8777
8786
  */
8778
8787
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8779
8788
  /**
8780
8789
  * Prefer using `Set#size` instead of `Array#length`.
8781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
8790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
8782
8791
  */
8783
8792
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8784
8793
  /**
8785
8794
  * Prefer arrow function properties over methods with a single return.
8786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
8795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
8787
8796
  */
8788
8797
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8789
8798
  /**
8790
8799
  * Prefer simple conditions first in logical expressions.
8791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
8800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
8792
8801
  */
8793
8802
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8794
8803
  /**
8795
8804
  * Prefer a simple comparison function for `Array#sort()`.
8796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
8805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
8797
8806
  */
8798
8807
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8799
8808
  /**
8800
8809
  * Prefer simplified conditions.
8801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
8810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
8802
8811
  */
8803
8812
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8804
8813
  /**
8805
8814
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
8815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
8807
8816
  */
8808
8817
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8809
8818
  /**
8810
8819
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
8820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
8812
8821
  */
8813
8822
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8814
8823
  /**
8815
8824
  * Prefer a single object destructuring declaration per local const source.
8816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
8825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
8817
8826
  */
8818
8827
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8819
8828
  /**
8820
8829
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
8830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
8822
8831
  */
8823
8832
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8824
8833
  /**
8825
8834
  * Prefer declaring variables in the smallest possible scope.
8826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
8835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
8827
8836
  */
8828
8837
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8829
8838
  /**
8830
8839
  * Prefer `String#split()` with a limit.
8831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
8840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
8832
8841
  */
8833
8842
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8834
8843
  /**
8835
8844
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
8845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
8837
8846
  */
8838
8847
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8839
8848
  /**
8840
8849
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
8850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
8842
8851
  */
8843
8852
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8844
8853
  /**
8845
8854
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
8855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
8847
8856
  */
8848
8857
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8849
8858
  /**
8850
8859
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
8860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
8852
8861
  */
8853
8862
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8854
8863
  /**
8855
8864
  * Prefer `String#repeat()` for repeated whitespace.
8856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
8865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
8857
8866
  */
8858
8867
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8859
8868
  /**
8860
8869
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
8870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
8862
8871
  */
8863
8872
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8864
8873
  /**
8865
8874
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
8875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
8867
8876
  */
8868
8877
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8869
8878
  /**
8870
8879
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
8880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
8872
8881
  */
8873
8882
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8874
8883
  /**
8875
8884
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
8885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
8877
8886
  */
8878
8887
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8879
8888
  /**
8880
8889
  * Prefer using `structuredClone` to create a deep clone.
8881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
8890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
8882
8891
  */
8883
8892
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8884
8893
  /**
8885
8894
  * Prefer `switch` over multiple `else-if`.
8886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
8895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
8887
8896
  */
8888
8897
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8889
8898
  /**
8890
8899
  * Prefer `Temporal` over `Date`.
8891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
8900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
8892
8901
  */
8893
8902
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8894
8903
  /**
8895
8904
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
8905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
8897
8906
  */
8898
8907
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8899
8908
  /**
8900
8909
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
8910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
8902
8911
  */
8903
8912
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8904
8913
  /**
8905
8914
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
8915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
8907
8916
  */
8908
8917
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8909
8918
  /**
8910
8919
  * Prefer top-level await over top-level promises and async function calls.
8911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
8920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
8912
8921
  */
8913
8922
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8914
8923
  /**
8915
8924
  * Enforce throwing `TypeError` in type checking conditions.
8916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
8925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
8917
8926
  */
8918
8927
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8919
8928
  /**
8920
8929
  * Require type literals to be last in union types.
8921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
8930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
8922
8931
  */
8923
8932
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8924
8933
  /**
8925
8934
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
8935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
8927
8936
  */
8928
8937
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8929
8938
  /**
8930
8939
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
8940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
8932
8941
  */
8933
8942
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8934
8943
  /**
8935
8944
  * Prefer Unicode code point escapes over legacy escape sequences.
8936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8937
8946
  */
8938
8947
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8939
8948
  /**
8940
8949
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
8950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
8942
8951
  */
8943
8952
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8944
8953
  /**
8945
8954
  * Prefer `URL#href` over stringifying a `URL`.
8946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
8955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
8947
8956
  */
8948
8957
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8949
8958
  /**
8950
8959
  * Prefer `URLSearchParams` over manually splitting query strings.
8951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
8960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
8952
8961
  */
8953
8962
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8954
8963
  /**
8955
8964
  * Prefer putting the condition in the while statement.
8956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
8965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
8957
8966
  */
8958
8967
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8959
8968
  /**
8960
8969
  * Renamed to `unicorn/name-replacements`.
8961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8962
8971
  * @deprecated
8963
8972
  */
8964
8973
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8965
8974
  /**
8966
8975
  * Enforce consistent relative URL style.
8967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
8976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
8968
8977
  */
8969
8978
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8970
8979
  /**
8971
8980
  * Enforce using the separator argument with `Array#join()`.
8972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
8981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
8973
8982
  */
8974
8983
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8975
8984
  /**
8976
8985
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
8986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
8978
8987
  */
8979
8988
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8980
8989
  /**
8981
8990
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
8991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
8983
8992
  */
8984
8993
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8985
8994
  /**
8986
8995
  * Require configured YAML frontmatter fields.
8987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
8996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
8988
8997
  */
8989
8998
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8990
8999
  /**
8991
9000
  * Require non-empty module attributes for imports and exports
8992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
9001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
8993
9002
  */
8994
9003
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8995
9004
  /**
8996
9005
  * Require non-empty specifier list in import and export statements.
8997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
9006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
8998
9007
  */
8999
9008
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9000
9009
  /**
9001
9010
  * Enforce using the digits argument with `Number#toFixed()`.
9002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9003
9012
  */
9004
9013
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9005
9014
  /**
9006
9015
  * Require passive event listeners for high-frequency events.
9007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
9016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
9008
9017
  */
9009
9018
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9010
9019
  /**
9011
9020
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
9021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
9013
9022
  */
9014
9023
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9015
9024
  /**
9016
9025
  * Require boolean-returning Proxy traps to return booleans.
9017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
9026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
9018
9027
  */
9019
9028
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9020
9029
  /**
9021
9030
  * Enforce a consistent style for single-line block comments.
9022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
9031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
9023
9032
  */
9024
9033
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9025
9034
  /**
9026
9035
  * Enforce better string content.
9027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
9036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
9028
9037
  */
9029
9038
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9030
9039
  /**
9031
9040
  * Enforce consistent brace style for `case` clauses.
9032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
9041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
9033
9042
  */
9034
9043
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9035
9044
  /**
9036
9045
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
9046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
9038
9047
  */
9039
9048
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9040
9049
  /**
9041
9050
  * Fix whitespace-insensitive template indentation.
9042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
9051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
9043
9052
  */
9044
9053
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9045
9054
  /**
9046
9055
  * Enforce consistent case for text encoding identifiers.
9047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
9056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
9048
9057
  */
9049
9058
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9050
9059
  /**
9051
9060
  * Require `new` when creating an error.
9052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
9061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
9053
9062
  */
9054
9063
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9055
9064
  /**
9056
9065
  * Limit the complexity of `try` blocks.
9057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
9066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
9058
9067
  */
9059
9068
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9060
9069
  /**
@@ -9802,6 +9811,11 @@ Backward pagination arguments
9802
9811
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-loose-object.md
9803
9812
  */
9804
9813
  'zod/prefer-loose-object'?: Linter.RuleEntry<[]>;
9814
+ /**
9815
+ * Prefer `.size(n)` over `.min(n).max(n)` with the same value on a set or map schema
9816
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-map-set-size-over-min-max.md
9817
+ */
9818
+ 'zod/prefer-map-set-size-over-min-max'?: Linter.RuleEntry<[]>;
9805
9819
  /**
9806
9820
  * Enforce usage of `.meta()` over `.describe()`
9807
9821
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-meta.md
@@ -9822,6 +9836,11 @@ Backward pagination arguments
9822
9836
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-strict-object.md
9823
9837
  */
9824
9838
  'zod/prefer-strict-object'?: Linter.RuleEntry<[]>;
9839
+ /**
9840
+ * Prefer `.length(n)` over `.min(n).max(n)` with the same value on a string schema
9841
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-string-length-over-min-max.md
9842
+ */
9843
+ 'zod/prefer-string-length-over-min-max'?: Linter.RuleEntry<[]>;
9825
9844
  /**
9826
9845
  * Enforce `z.string().trim()` to prevent accidental leading/trailing whitespace
9827
9846
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-string-schema-with-trim.md
@@ -10594,6 +10613,11 @@ type GithubActionJobIdCasing = [] | [(("camelCase" | "kebab-case" | "PascalCase"
10594
10613
  })];
10595
10614
  // ----- github-action/max-jobs-per-action -----
10596
10615
  type GithubActionMaxJobsPerAction = [] | [number];
10616
+ // ----- github-action/no-top-level-permissions -----
10617
+ type GithubActionNoTopLevelPermissions = [] | [{
10618
+ allowEmpty?: _GithubActionNoTopLevelPermissions_AllowEmptyPermissionsBlock;
10619
+ }];
10620
+ type _GithubActionNoTopLevelPermissions_AllowEmptyPermissionsBlock = boolean;
10597
10621
  // ----- github-action/prefer-file-extension -----
10598
10622
  type GithubActionPreferFileExtension = [] | [(("yml" | "yaml") | {
10599
10623
  extension?: ("yml" | "yaml");
@@ -11094,6 +11118,13 @@ type JsdocNoUndefinedTypes = [] | [{
11094
11118
  disableReporting?: boolean;
11095
11119
  markVariablesAsUsed?: boolean;
11096
11120
  }];
11121
+ // ----- jsdoc/no-unnecessary-type-assertion -----
11122
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
11123
+ checkLiteralConstAssertions?: boolean;
11124
+ enableFixer?: boolean;
11125
+ treatAnyAsRedundant?: boolean;
11126
+ typesToIgnore?: string[];
11127
+ }];
11097
11128
  // ----- jsdoc/normalize-see-links -----
11098
11129
  type JsdocNormalizeSeeLinks = [] | [{
11099
11130
  canonicalForm?: ("pipe" | "prefix");