@ntnyq/eslint-config 7.0.0-beta.18 → 7.0.0-beta.19

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +394 -352
  2. package/package.json +13 -13
package/dist/index.d.mts CHANGED
@@ -2745,7 +2745,7 @@ interface RuleOptions {
2745
2745
  * disallow using top-level permissions.
2746
2746
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-top-level-permissions.html
2747
2747
  */
2748
- 'github-action/no-top-level-permissions'?: Linter.RuleEntry<[]>;
2748
+ 'github-action/no-top-level-permissions'?: Linter.RuleEntry<GithubActionNoTopLevelPermissions>;
2749
2749
  /**
2750
2750
  * disallow unpinned uses references.
2751
2751
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/no-unpinned-uses.html
@@ -2756,6 +2756,11 @@ interface RuleOptions {
2756
2756
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-cancel-in-progress.html
2757
2757
  */
2758
2758
  'github-action/prefer-cancel-in-progress'?: Linter.RuleEntry<[]>;
2759
+ /**
2760
+ * disallow setting fail-fast to false.
2761
+ * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-fail-fast.html
2762
+ */
2763
+ 'github-action/prefer-fail-fast'?: Linter.RuleEntry<[]>;
2759
2764
  /**
2760
2765
  * enforce workflow file extension.
2761
2766
  * @see https://eslint-plugin-github-action.ntnyq.com/rules/prefer-file-extension.html
@@ -3258,6 +3263,10 @@ interface RuleOptions {
3258
3263
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
3259
3264
  */
3260
3265
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
3266
+ /**
3267
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
3268
+ */
3269
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
3261
3270
  /**
3262
3271
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
3263
3272
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -6467,1740 +6476,1740 @@ interface RuleOptions {
6467
6476
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6468
6477
  /**
6469
6478
  * Prefer better DOM traversal APIs.
6470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
6479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
6471
6480
  */
6472
6481
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6473
6482
  /**
6474
6483
  * Removed. Prefer `eslint-plugin-regexp`
6475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6476
6485
  * @deprecated
6477
6486
  */
6478
6487
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
6479
6488
  /**
6480
6489
  * Enforce a specific parameter name in catch clauses.
6481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
6490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
6482
6491
  */
6483
6492
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6484
6493
  /**
6485
6494
  * Enforce consistent class references in static methods.
6486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
6495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
6487
6496
  */
6488
6497
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
6489
6498
  /**
6490
6499
  * Enforce better comment content.
6491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
6492
6501
  */
6493
6502
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
6494
6503
  /**
6495
6504
  * Enforce a consistent return style for multiline arrow function bodies.
6496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
6497
6506
  */
6498
6507
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
6499
6508
  /**
6500
6509
  * Enforce consistent assertion style with `node:assert`.
6501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
6502
6511
  */
6503
6512
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6504
6513
  /**
6505
6514
  * Enforce consistent naming for boolean names.
6506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
6507
6516
  */
6508
6517
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
6509
6518
  /**
6510
6519
  * Enforce consistent class member order.
6511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
6512
6521
  */
6513
6522
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
6514
6523
  /**
6515
6524
  * Enforce consistent spelling of compound words in identifiers.
6516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
6517
6526
  */
6518
6527
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
6519
6528
  /**
6520
6529
  * Enforce consistent conditional object spread style.
6521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
6522
6531
  */
6523
6532
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
6524
6533
  /**
6525
6534
  * Prefer passing `Date` directly to the constructor when cloning.
6526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
6535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
6527
6536
  */
6528
6537
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6529
6538
  /**
6530
6539
  * Use destructured variables over properties.
6531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
6532
6541
  */
6533
6542
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6534
6543
  /**
6535
6544
  * Prefer consistent types when spreading a ternary in an array literal.
6536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
6537
6546
  */
6538
6547
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6539
6548
  /**
6540
6549
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
6542
6551
  */
6543
6552
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6544
6553
  /**
6545
6554
  * Enforce consistent decorator position on exported classes.
6546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
6547
6556
  */
6548
6557
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
6549
6558
  /**
6550
6559
  * Move function definitions to the highest possible scope.
6551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
6552
6561
  */
6553
6562
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6554
6563
  /**
6555
6564
  * Enforce function syntax by role.
6556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
6557
6566
  */
6558
6567
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
6559
6568
  /**
6560
6569
  * Enforce consistent JSON file reads before `JSON.parse()`.
6561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
6562
6571
  */
6563
6572
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
6564
6573
  /**
6565
6574
  * Enforce consistent optional chaining for same-base member access.
6566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
6567
6576
  */
6568
6577
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
6569
6578
  /**
6570
6579
  * Enforce consistent style for escaping `${` in template literals.
6571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
6572
6581
  */
6573
6582
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
6574
6583
  /**
6575
6584
  * Enforce consistent labels on tuple type elements.
6576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
6577
6586
  */
6578
6587
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
6579
6588
  /**
6580
6589
  * Enforce correct `Error` subclassing.
6581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
6582
6591
  */
6583
6592
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6584
6593
  /**
6585
6594
  * Enforce consistent default export declarations.
6586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
6587
6596
  */
6588
6597
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
6589
6598
  /**
6590
6599
  * Enforce consistent style for DOM element dataset access.
6591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
6592
6601
  */
6593
6602
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
6594
6603
  /**
6595
6604
  * Enforce no spaces between braces.
6596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
6597
6606
  */
6598
6607
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6599
6608
  /**
6600
6609
  * Enforce passing a `message` value when creating a built-in error.
6601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
6602
6611
  */
6603
6612
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6604
6613
  /**
6605
6614
  * Require escape sequences to use uppercase or lowercase values.
6606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
6607
6616
  */
6608
6617
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6609
6618
  /**
6610
6619
  * Add expiration conditions to TODO comments.
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
6620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
6612
6621
  */
6613
6622
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6614
6623
  /**
6615
6624
  * Enforce explicitly comparing the `length` or `size` property of a value.
6616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
6625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
6617
6626
  */
6618
6627
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6619
6628
  /**
6620
6629
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
6621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
6630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
6622
6631
  */
6623
6632
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
6624
6633
  /**
6625
6634
  * Enforce a case style for filenames and directory names.
6626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
6627
6636
  */
6628
6637
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6629
6638
  /**
6630
6639
  * Require identifiers to match a specified regular expression.
6631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
6632
6641
  */
6633
6642
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
6634
6643
  /**
6635
6644
  * Enforce specific import styles per module.
6636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
6637
6646
  */
6638
6647
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6639
6648
  /**
6640
6649
  * Prevent usage of variables from outside the scope of isolated functions.
6641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
6642
6651
  */
6643
6652
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6644
6653
  /**
6645
6654
  * Enforce a consistent style for optional loop sources.
6646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
6647
6656
  */
6648
6657
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
6649
6658
  /**
6650
6659
  * Require or disallow logical assignment operator shorthand
6651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
6652
6661
  */
6653
6662
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
6654
6663
  /**
6655
6664
  * Limit the depth of nested calls.
6656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
6657
6666
  */
6658
6667
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
6659
6668
  /**
6660
6669
  * Enforce replacements for variable, property, and filenames.
6661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
6662
6671
  */
6663
6672
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
6664
6673
  /**
6665
6674
  * Enforce correct use of `new` for builtin constructors.
6666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
6667
6676
  */
6668
6677
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6669
6678
  /**
6670
6679
  * Enforce specifying rules to disable in `eslint-disable` comments.
6671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
6672
6681
  */
6673
6682
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6674
6683
  /**
6675
6684
  * Disallow recursive access to `this` within getters and setters.
6676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
6677
6686
  */
6678
6687
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6679
6688
  /**
6680
6689
  * Disallow bitwise operators where a logical operator was likely intended.
6681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
6682
6691
  */
6683
6692
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
6684
6693
  /**
6685
6694
  * Disallow anonymous functions and classes as the default export.
6686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
6687
6696
  */
6688
6697
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6689
6698
  /**
6690
6699
  * Prevent passing a function reference directly to iterator methods.
6691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
6692
6701
  */
6693
6702
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
6694
6703
  /**
6695
6704
  * Disallow array accumulation with `Array#concat()` in loops.
6696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
6697
6706
  */
6698
6707
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
6699
6708
  /**
6700
6709
  * Disallow using reference values as `Array#fill()` values.
6701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
6702
6711
  */
6703
6712
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
6704
6713
  /**
6705
6714
  * Disallow `.fill()` after `Array.from({length: …})`.
6706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
6707
6716
  */
6708
6717
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
6709
6718
  /**
6710
6719
  * Disallow front-of-array mutation.
6711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
6712
6721
  */
6713
6722
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
6714
6723
  /**
6715
6724
  * Disallow using the `this` argument in array methods.
6716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
6717
6726
  */
6718
6727
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6719
6728
  /**
6720
6729
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6722
6731
  * @deprecated
6723
6732
  */
6724
6733
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6725
6734
  /**
6726
6735
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
6736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
6728
6737
  */
6729
6738
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6730
6739
  /**
6731
6740
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
6741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
6733
6742
  */
6734
6743
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6735
6744
  /**
6736
6745
  * Prefer `Array#toSorted()` over `Array#sort()`.
6737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
6746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
6738
6747
  */
6739
6748
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6740
6749
  /**
6741
6750
  * Disallow sorting arrays to get the minimum or maximum value.
6742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
6751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
6743
6752
  */
6744
6753
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
6745
6754
  /**
6746
6755
  * Prefer `Array#toSpliced()` over `Array#splice()`.
6747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
6756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
6748
6757
  */
6749
6758
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
6750
6759
  /**
6751
6760
  * Disallow asterisk prefixes in documentation comments.
6752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6753
6762
  */
6754
6763
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
6755
6764
  /**
6756
6765
  * Disallow async functions as `Promise#finally()` callbacks.
6757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
6766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
6758
6767
  */
6759
6768
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
6760
6769
  /**
6761
6770
  * Disallow member access from await expression.
6762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
6771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
6763
6772
  */
6764
6773
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6765
6774
  /**
6766
6775
  * Disallow using `await` in `Promise` method parameters.
6767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
6776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
6768
6777
  */
6769
6778
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6770
6779
  /**
6771
6780
  * Disallow barrel files.
6772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
6781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
6773
6782
  */
6774
6783
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
6775
6784
  /**
6776
6785
  * Disallow unnecessary `Blob` to `File` conversion.
6777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
6786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
6778
6787
  */
6779
6788
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
6780
6789
  /**
6781
6790
  * Disallow boolean-returning sort comparators.
6782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
6791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
6783
6792
  */
6784
6793
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
6785
6794
  /**
6786
6795
  * Disallow `break` and `continue` in nested loops and switches inside loops.
6787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
6796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
6788
6797
  */
6789
6798
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
6790
6799
  /**
6791
6800
  * Prefer drawing canvases directly instead of converting them to images.
6792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
6801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
6793
6802
  */
6794
6803
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
6795
6804
  /**
6796
6805
  * Disallow chained comparisons such as `a < b < c`.
6797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
6806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
6798
6807
  */
6799
6808
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
6800
6809
  /**
6801
6810
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
6802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
6811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
6803
6812
  */
6804
6813
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
6805
6814
  /**
6806
6815
  * Disallow dynamic object property existence checks.
6807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
6816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
6808
6817
  */
6809
6818
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
6810
6819
  /**
6811
6820
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
6812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
6821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
6813
6822
  */
6814
6823
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
6815
6824
  /**
6816
6825
  * Disallow confusing uses of `Array#with()`.
6817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
6826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
6818
6827
  */
6819
6828
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
6820
6829
  /**
6821
6830
  * Do not use leading/trailing space between `console.log` parameters.
6822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
6831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
6823
6832
  */
6824
6833
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6825
6834
  /**
6826
6835
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
6827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
6836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
6828
6837
  */
6829
6838
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
6830
6839
  /**
6831
6840
  * Disallow declarations before conditional early exits when they are only used after the exit.
6832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
6841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
6833
6842
  */
6834
6843
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
6835
6844
  /**
6836
6845
  * Do not use `document.cookie` directly.
6837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
6846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
6838
6847
  */
6839
6848
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6840
6849
  /**
6841
6850
  * Disallow two comparisons of the same operands that can be combined into one.
6842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
6851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
6843
6852
  */
6844
6853
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
6845
6854
  /**
6846
6855
  * Disallow duplicate adjacent branches in if chains.
6847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
6856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
6848
6857
  */
6849
6858
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
6850
6859
  /**
6851
6860
  * Disallow adjacent duplicate operands in logical expressions.
6852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
6861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
6853
6862
  */
6854
6863
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
6855
6864
  /**
6856
6865
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
6857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
6866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
6858
6867
  */
6859
6868
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
6860
6869
  /**
6861
6870
  * Disallow duplicate values in `Set` constructor array literals.
6862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
6871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
6863
6872
  */
6864
6873
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
6865
6874
  /**
6866
6875
  * Disallow empty files.
6867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
6876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
6868
6877
  */
6869
6878
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
6870
6879
  /**
6871
6880
  * Disallow assigning to built-in error properties.
6872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
6881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
6873
6882
  */
6874
6883
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
6875
6884
  /**
6876
6885
  * Disallow exports in scripts.
6877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
6886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
6878
6887
  */
6879
6888
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
6880
6889
  /**
6881
6890
  * Prefer `for…of` over the `forEach` method.
6882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
6891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
6883
6892
  */
6884
6893
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
6885
6894
  /**
6886
6895
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
6896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
6888
6897
  */
6889
6898
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6890
6899
  /**
6891
6900
  * Disallow assigning properties on the global object.
6892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
6901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
6893
6902
  */
6894
6903
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
6895
6904
  /**
6896
6905
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
6897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6898
6907
  * @deprecated
6899
6908
  */
6900
6909
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6901
6910
  /**
6902
6911
  * Disallow immediate mutation after variable assignment.
6903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
6912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
6904
6913
  */
6905
6914
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
6906
6915
  /**
6907
6916
  * Disallow impossible comparisons against `.length` or `.size`.
6908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
6917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
6909
6918
  */
6910
6919
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
6911
6920
  /**
6912
6921
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
6913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
6922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
6914
6923
  */
6915
6924
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
6916
6925
  /**
6917
6926
  * Disallow incorrect template literal interpolation syntax.
6918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6919
6928
  */
6920
6929
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
6921
6930
  /**
6922
6931
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6924
6933
  * @deprecated
6925
6934
  */
6926
6935
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6927
6936
  /**
6928
6937
  * Disallow `instanceof` with built-in objects
6929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
6938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
6930
6939
  */
6931
6940
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6932
6941
  /**
6933
6942
  * Disallow calling functions and constructors with an invalid number of arguments.
6934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
6943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
6935
6944
  */
6936
6945
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
6937
6946
  /**
6938
6947
  * Disallow comparing a single character from a string to a multi-character string.
6939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
6948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
6940
6949
  */
6941
6950
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
6942
6951
  /**
6943
6952
  * Disallow invalid options in `fetch()` and `new Request()`.
6944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
6953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
6945
6954
  */
6946
6955
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6947
6956
  /**
6948
6957
  * Disallow invalid `accept` values on file inputs.
6949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
6958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
6950
6959
  */
6951
6960
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
6952
6961
  /**
6953
6962
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
6963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
6955
6964
  */
6956
6965
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6957
6966
  /**
6958
6967
  * Disallow invalid implementations of well-known symbol methods.
6959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
6968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
6960
6969
  */
6961
6970
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
6962
6971
  /**
6963
6972
  * Disallow identifiers starting with `new` or `class`.
6964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
6973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
6965
6974
  */
6966
6975
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6967
6976
  /**
6968
6977
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
6969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
6978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
6970
6979
  */
6971
6980
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
6972
6981
  /**
6973
6982
  * Disallow event-control method calls after the synchronous event dispatch has finished.
6974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
6983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
6975
6984
  */
6976
6985
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
6977
6986
  /**
6978
6987
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6980
6989
  * @deprecated
6981
6990
  */
6982
6991
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6983
6992
  /**
6984
6993
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
6994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
6986
6995
  */
6987
6996
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6988
6997
  /**
6989
6998
  * Disallow mutating a loop iterable during iteration.
6990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
6999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
6991
7000
  */
6992
7001
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
6993
7002
  /**
6994
7003
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
7004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
6996
7005
  */
6997
7006
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6998
7007
  /**
6999
7008
  * Disallow manually wrapped comments.
7000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
7009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
7001
7010
  */
7002
7011
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7003
7012
  /**
7004
7013
  * Disallow checking a Map key before accessing a different key.
7005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
7014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
7006
7015
  */
7007
7016
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7008
7017
  /**
7009
7018
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
7019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
7011
7020
  */
7012
7021
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7013
7022
  /**
7014
7023
  * Disallow references to missing local resources.
7015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
7024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
7016
7025
  */
7017
7026
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7018
7027
  /**
7019
7028
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7021
7030
  */
7022
7031
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7023
7032
  /**
7024
7033
  * Disallow named usage of default import and export.
7025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
7034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
7026
7035
  */
7027
7036
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7028
7037
  /**
7029
7038
  * Disallow negated array predicate calls.
7030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
7039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
7031
7040
  */
7032
7041
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7033
7042
  /**
7034
7043
  * Disallow negated comparisons.
7035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
7044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
7036
7045
  */
7037
7046
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7038
7047
  /**
7039
7048
  * Disallow negated conditions.
7040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
7049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
7041
7050
  */
7042
7051
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7043
7052
  /**
7044
7053
  * Disallow negated expression in equality check.
7045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
7054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
7046
7055
  */
7047
7056
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7048
7057
  /**
7049
7058
  * Disallow nested ternary expressions.
7050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
7059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
7051
7060
  */
7052
7061
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7053
7062
  /**
7054
7063
  * Disallow `new Array()`.
7055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
7064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
7056
7065
  */
7057
7066
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7058
7067
  /**
7059
7068
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
7069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
7061
7070
  */
7062
7071
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7063
7072
  /**
7064
7073
  * Disallow non-function values with function-style verb prefixes.
7065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
7074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
7066
7075
  */
7067
7076
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7068
7077
  /**
7069
7078
  * Disallow non-standard properties on built-in objects.
7070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
7079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
7071
7080
  */
7072
7081
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7073
7082
  /**
7074
7083
  * Disallow the use of the `null` literal.
7075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
7084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
7076
7085
  */
7077
7086
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7078
7087
  /**
7079
7088
  * Disallow the use of objects as default parameters.
7080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
7089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
7081
7090
  */
7082
7091
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7083
7092
  /**
7084
7093
  * Disallow `Object` methods with `Map` or `Set`.
7085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
7094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
7086
7095
  */
7087
7096
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7088
7097
  /**
7089
7098
  * Disallow optional chaining on undeclared variables.
7090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7091
7100
  */
7092
7101
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7093
7102
  /**
7094
7103
  * Disallow `process.exit()`.
7095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
7104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
7096
7105
  */
7097
7106
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7098
7107
  /**
7099
7108
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
7109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
7101
7110
  */
7102
7111
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7103
7112
  /**
7104
7113
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
7114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
7106
7115
  */
7107
7116
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7108
7117
  /**
7109
7118
  * Disallow selector syntax in DOM names.
7110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
7119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
7111
7120
  */
7112
7121
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7113
7122
  /**
7114
7123
  * Disallow shorthand properties that override related longhand properties.
7115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
7124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
7116
7125
  */
7117
7126
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7118
7127
  /**
7119
7128
  * Disallow passing single-element arrays to `Promise` methods.
7120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
7129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
7121
7130
  */
7122
7131
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7123
7132
  /**
7124
7133
  * Disallow classes that only have static members.
7125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
7134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
7126
7135
  */
7127
7136
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7128
7137
  /**
7129
7138
  * Prefer comparing values directly over subtracting and comparing to `0`.
7130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
7139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
7131
7140
  */
7132
7141
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7133
7142
  /**
7134
7143
  * Disallow `then` property.
7135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
7144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
7136
7145
  */
7137
7146
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7138
7147
  /**
7139
7148
  * Disallow assigning `this` to a variable.
7140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
7149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
7141
7150
  */
7142
7151
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7143
7152
  /**
7144
7153
  * Disallow `this` outside of classes.
7145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
7154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
7146
7155
  */
7147
7156
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7148
7157
  /**
7149
7158
  * Disallow assigning to top-level variables from inside functions.
7150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
7159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
7151
7160
  */
7152
7161
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7153
7162
  /**
7154
7163
  * Disallow top-level side effects in exported modules.
7155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
7164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
7156
7165
  */
7157
7166
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7158
7167
  /**
7159
7168
  * Disallow `all` as a transition property.
7160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
7169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
7161
7170
  */
7162
7171
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7163
7172
  /**
7164
7173
  * Disallow comparing `undefined` using `typeof`.
7165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
7174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
7166
7175
  */
7167
7176
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7168
7177
  /**
7169
7178
  * Disallow referencing methods without calling them.
7170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
7179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
7171
7180
  */
7172
7181
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7173
7182
  /**
7174
7183
  * Require class members to be declared.
7175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
7184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
7176
7185
  */
7177
7186
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7178
7187
  /**
7179
7188
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7181
7190
  */
7182
7191
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7183
7192
  /**
7184
7193
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
7194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
7186
7195
  */
7187
7196
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7188
7197
  /**
7189
7198
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
7199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
7191
7200
  */
7192
7201
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7193
7202
  /**
7194
7203
  * Disallow awaiting non-promise values.
7195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
7204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
7196
7205
  */
7197
7206
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7198
7207
  /**
7199
7208
  * Disallow unnecessary comparisons against boolean literals.
7200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7201
7210
  */
7202
7211
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7203
7212
  /**
7204
7213
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
7214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
7206
7215
  */
7207
7216
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7208
7217
  /**
7209
7218
  * Disallow unnecessary `globalThis` references.
7210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
7219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
7211
7220
  */
7212
7221
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7213
7222
  /**
7214
7223
  * Disallow unnecessary nested ternary expressions.
7215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
7224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
7216
7225
  */
7217
7226
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7218
7227
  /**
7219
7228
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
7229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
7221
7230
  */
7222
7231
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7223
7232
  /**
7224
7233
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
7234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
7226
7235
  */
7227
7236
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7228
7237
  /**
7229
7238
  * Disallow `Array#splice()` when simpler alternatives exist.
7230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
7239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
7231
7240
  */
7232
7241
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7233
7242
  /**
7234
7243
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
7244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
7236
7245
  */
7237
7246
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7238
7247
  /**
7239
7248
  * Disallow unreadable array destructuring.
7240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
7249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
7241
7250
  */
7242
7251
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7243
7252
  /**
7244
7253
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
7254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
7246
7255
  */
7247
7256
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7248
7257
  /**
7249
7258
  * Disallow unreadable IIFEs.
7250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
7259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
7251
7260
  */
7252
7261
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7253
7262
  /**
7254
7263
  * Disallow unreadable `new` expressions.
7255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
7264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
7256
7265
  */
7257
7266
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7258
7267
  /**
7259
7268
  * Disallow unreadable object destructuring.
7260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
7269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
7261
7270
  */
7262
7271
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7263
7272
  /**
7264
7273
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
7274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
7266
7275
  */
7267
7276
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7268
7277
  /**
7269
7278
  * Disallow unsafe DOM HTML APIs.
7270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
7279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
7271
7280
  */
7272
7281
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7273
7282
  /**
7274
7283
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7276
7285
  */
7277
7286
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7278
7287
  /**
7279
7288
  * Disallow unsafe values as property keys.
7280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
7289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
7281
7290
  */
7282
7291
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7283
7292
  /**
7284
7293
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7286
7295
  */
7287
7296
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7288
7297
  /**
7289
7298
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
7299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
7291
7300
  */
7292
7301
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7293
7302
  /**
7294
7303
  * Disallow ignoring the return value of selected array methods.
7295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
7304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
7296
7305
  */
7297
7306
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7298
7307
  /**
7299
7308
  * Disallow unused object properties.
7300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
7309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
7301
7310
  */
7302
7311
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7303
7312
  /**
7304
7313
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
7314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
7306
7315
  */
7307
7316
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7308
7317
  /**
7309
7318
  * Disallow useless type coercions of values that are already of the target type.
7310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
7319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
7311
7320
  */
7312
7321
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7313
7322
  /**
7314
7323
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
7324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
7316
7325
  */
7317
7326
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7318
7327
  /**
7319
7328
  * Disallow useless compound assignments such as `x += 0`.
7320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
7329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
7321
7330
  */
7322
7331
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7323
7332
  /**
7324
7333
  * Disallow useless concatenation of literals.
7325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
7334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
7326
7335
  */
7327
7336
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7328
7337
  /**
7329
7338
  * Disallow useless `continue` statements.
7330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
7339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
7331
7340
  */
7332
7341
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7333
7342
  /**
7334
7343
  * Disallow unnecessary existence checks before deletion.
7335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
7344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
7336
7345
  */
7337
7346
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7338
7347
  /**
7339
7348
  * Disallow `else` after a statement that exits.
7340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
7349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
7341
7350
  */
7342
7351
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7343
7352
  /**
7344
7353
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7346
7355
  */
7347
7356
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7348
7357
  /**
7349
7358
  * Disallow useless fallback when spreading in object literals.
7350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
7359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
7351
7360
  */
7352
7361
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7353
7362
  /**
7354
7363
  * Disallow unnecessary `.toArray()` on iterators.
7355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
7364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
7356
7365
  */
7357
7366
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7358
7367
  /**
7359
7368
  * Disallow useless array length check.
7360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
7369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
7361
7370
  */
7362
7371
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7363
7372
  /**
7364
7373
  * Disallow unnecessary operands in logical expressions involving boolean literals.
7365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
7374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
7366
7375
  */
7367
7376
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7368
7377
  /**
7369
7378
  * Disallow useless overrides of class methods.
7370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
7379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
7371
7380
  */
7372
7381
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7373
7382
  /**
7374
7383
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
7384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
7376
7385
  */
7377
7386
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7378
7387
  /**
7379
7388
  * Disallow redundant re-exports.
7380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
7389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
7381
7390
  */
7382
7391
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
7383
7392
  /**
7384
7393
  * Disallow simple recursive function calls that can be replaced with a loop.
7385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
7394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
7386
7395
  */
7387
7396
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7388
7397
  /**
7389
7398
  * Disallow unnecessary spread.
7390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
7399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
7391
7400
  */
7392
7401
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7393
7402
  /**
7394
7403
  * Disallow useless case in switch statements.
7395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
7404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
7396
7405
  */
7397
7406
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7398
7407
  /**
7399
7408
  * Disallow useless template literal expressions.
7400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
7409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
7401
7410
  */
7402
7411
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7403
7412
  /**
7404
7413
  * Disallow useless `undefined`.
7405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
7414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
7406
7415
  */
7407
7416
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7408
7417
  /**
7409
7418
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
7410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
7419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
7411
7420
  */
7412
7421
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7413
7422
  /**
7414
7423
  * Disallow number literals with zero fractions or dangling dots.
7415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
7424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
7416
7425
  */
7417
7426
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7418
7427
  /**
7419
7428
  * Enforce proper case for numeric literals.
7420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
7429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
7421
7430
  */
7422
7431
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7423
7432
  /**
7424
7433
  * Enforce the style of numeric separators by correctly grouping digits.
7425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
7434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
7426
7435
  */
7427
7436
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7428
7437
  /**
7429
7438
  * Require assignment operator shorthand where possible.
7430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
7439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
7431
7440
  */
7432
7441
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7433
7442
  /**
7434
7443
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
7444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
7436
7445
  */
7437
7446
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
7438
7447
  /**
7439
7448
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
7449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
7441
7450
  */
7442
7451
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7443
7452
  /**
7444
7453
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
7454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
7446
7455
  */
7447
7456
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7448
7457
  /**
7449
7458
  * Prefer an options object over a boolean in `.addEventListener()`.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
7459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
7451
7460
  */
7452
7461
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7453
7462
  /**
7454
7463
  * Prefer `AggregateError` when throwing collected errors.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
7464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
7456
7465
  */
7457
7466
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7458
7467
  /**
7459
7468
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
7469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
7461
7470
  */
7462
7471
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7463
7472
  /**
7464
7473
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
7474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
7466
7475
  */
7467
7476
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7468
7477
  /**
7469
7478
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
7479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
7471
7480
  */
7472
7481
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7473
7482
  /**
7474
7483
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
7484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
7476
7485
  */
7477
7486
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7478
7487
  /**
7479
7488
  * Prefer using the `Array.from()` mapping function argument.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
7489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
7481
7490
  */
7482
7491
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7483
7492
  /**
7484
7493
  * Prefer `Array.from({length}, …)` when creating range arrays.
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
7494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
7486
7495
  */
7487
7496
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
7488
7497
  /**
7489
7498
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
7499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
7491
7500
  */
7492
7501
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7493
7502
  /**
7494
7503
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
7504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
7496
7505
  */
7497
7506
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7498
7507
  /**
7499
7508
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
7509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
7501
7510
  */
7502
7511
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7503
7512
  /**
7504
7513
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
7514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
7506
7515
  */
7507
7516
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7508
7517
  /**
7509
7518
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
7511
7520
  */
7512
7521
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7513
7522
  /**
7514
7523
  * Prefer `.at()` method for index access and `String#charAt()`.
7515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
7516
7525
  */
7517
7526
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7518
7527
  /**
7519
7528
  * Prefer `await` over promise chaining.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
7521
7530
  */
7522
7531
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7523
7532
  /**
7524
7533
  * Prefer `BigInt` literals over the constructor.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
7526
7535
  */
7527
7536
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7528
7537
  /**
7529
7538
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
7531
7540
  */
7532
7541
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7533
7542
  /**
7534
7543
  * Prefer block statements over IIFEs used only for scoping.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
7536
7545
  */
7537
7546
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
7538
7547
  /**
7539
7548
  * Prefer directly returning boolean expressions over `if` statements.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
7541
7550
  */
7542
7551
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7543
7552
  /**
7544
7553
  * Prefer class field declarations over `this` assignments in constructors.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
7546
7555
  */
7547
7556
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7548
7557
  /**
7549
7558
  * Prefer using `Element#classList.toggle()` to toggle class names.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
7551
7560
  */
7552
7561
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7553
7562
  /**
7554
7563
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
7556
7565
  */
7557
7566
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7558
7567
  /**
7559
7568
  * Prefer early continues over whole-loop conditional wrapping.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
7561
7570
  */
7562
7571
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7563
7572
  /**
7564
7573
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
7566
7575
  */
7567
7576
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7568
7577
  /**
7569
7578
  * Prefer default parameters over reassignment.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
7571
7580
  */
7572
7581
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7573
7582
  /**
7574
7583
  * Prefer direct iteration over default iterator method calls.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
7576
7585
  */
7577
7586
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
7578
7587
  /**
7579
7588
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
7580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
7589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
7581
7590
  */
7582
7591
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
7583
7592
  /**
7584
7593
  * Prefer `Element#append()` over `Node#appendChild()`.
7585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
7594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
7586
7595
  */
7587
7596
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7588
7597
  /**
7589
7598
  * Renamed to `unicorn/dom-node-dataset`.
7590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7591
7600
  * @deprecated
7592
7601
  */
7593
7602
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7594
7603
  /**
7595
7604
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
7596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
7605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
7597
7606
  */
7598
7607
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
7599
7608
  /**
7600
7609
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
7610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
7602
7611
  */
7603
7612
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7604
7613
  /**
7605
7614
  * Prefer `.replaceChildren()` when emptying DOM children.
7606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
7615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
7607
7616
  */
7608
7617
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7609
7618
  /**
7610
7619
  * Prefer `.textContent` over `.innerText`.
7611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
7620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
7612
7621
  */
7613
7622
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7614
7623
  /**
7615
7624
  * Prefer early returns over full-function conditional wrapping.
7616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
7625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
7617
7626
  */
7618
7627
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
7619
7628
  /**
7620
7629
  * Prefer `else if` over adjacent `if` statements with related conditions.
7621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
7630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
7622
7631
  */
7623
7632
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
7624
7633
  /**
7625
7634
  * Prefer `Error.isError()` when checking for errors.
7626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
7635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
7627
7636
  */
7628
7637
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7629
7638
  /**
7630
7639
  * Prefer `EventTarget` over `EventEmitter`.
7631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
7640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
7632
7641
  */
7633
7642
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7634
7643
  /**
7635
7644
  * Prefer explicit viewport units.
7636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
7645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
7637
7646
  */
7638
7647
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
7639
7648
  /**
7640
7649
  * Prefer `export…from` when re-exporting.
7641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
7650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
7642
7651
  */
7643
7652
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7644
7653
  /**
7645
7654
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
7646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
7655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
7647
7656
  */
7648
7657
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
7649
7658
  /**
7650
7659
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
7651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
7660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
7652
7661
  */
7653
7662
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
7654
7663
  /**
7655
7664
  * Prefer global numeric constants over `Number` static properties.
7656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
7665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
7657
7666
  */
7658
7667
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7659
7668
  /**
7660
7669
  * Prefer `globalThis` over `window`, `self`, and `global`.
7661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
7670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
7662
7671
  */
7663
7672
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7664
7673
  /**
7665
7674
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
7666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
7675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
7667
7676
  */
7668
7677
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
7669
7678
  /**
7670
7679
  * Prefer `.has()` when checking existence.
7671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
7680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
7672
7681
  */
7673
7682
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
7674
7683
  /**
7675
7684
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
7676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
7685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
7677
7686
  */
7678
7687
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
7679
7688
  /**
7680
7689
  * Prefer HTTPS over HTTP.
7681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
7690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
7682
7691
  */
7683
7692
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
7684
7693
  /**
7685
7694
  * Prefer identifiers over string literals in import and export specifiers.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7687
7696
  */
7688
7697
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7689
7698
  /**
7690
7699
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
7700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
7692
7701
  */
7693
7702
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7694
7703
  /**
7695
7704
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
7705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
7697
7706
  */
7698
7707
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7699
7708
  /**
7700
7709
  * Prefer `.includes()` over repeated equality comparisons.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7702
7711
  */
7703
7712
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
7704
7713
  /**
7705
7714
  * Prefer passing iterables directly to constructors instead of filling empty collections.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
7715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
7707
7716
  */
7708
7717
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
7709
7718
  /**
7710
7719
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
7720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
7712
7721
  */
7713
7722
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
7714
7723
  /**
7715
7724
  * Prefer iterator helpers over temporary arrays from iterators.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
7725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
7717
7726
  */
7718
7727
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
7719
7728
  /**
7720
7729
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
7730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
7722
7731
  */
7723
7732
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
7724
7733
  /**
7725
7734
  * Prefer moving `.toArray()` to the end of iterator helper chains.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7727
7736
  */
7728
7737
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
7729
7738
  /**
7730
7739
  * Renamed to `unicorn/consistent-json-file-read`.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7732
7741
  * @deprecated
7733
7742
  */
7734
7743
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7735
7744
  /**
7736
7745
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
7737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
7738
7747
  */
7739
7748
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7740
7749
  /**
7741
7750
  * Prefer `location.assign()` over assigning to `location.href`.
7742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
7743
7752
  */
7744
7753
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7745
7754
  /**
7746
7755
  * Prefer using a logical operator over a ternary.
7747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7748
7757
  */
7749
7758
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7750
7759
  /**
7751
7760
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
7752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
7753
7762
  */
7754
7763
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
7755
7764
  /**
7756
7765
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
7757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
7758
7767
  */
7759
7768
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
7760
7769
  /**
7761
7770
  * Prefer `Math` constants over their approximate numeric values.
7762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
7763
7772
  */
7764
7773
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7765
7774
  /**
7766
7775
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
7768
7777
  */
7769
7778
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7770
7779
  /**
7771
7780
  * Prefer `Math.trunc()` for truncating numbers.
7772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
7773
7782
  */
7774
7783
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7775
7784
  /**
7776
7785
  * Prefer moving ternaries into the minimal varying part of an expression.
7777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
7778
7787
  */
7779
7788
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
7780
7789
  /**
7781
7790
  * Prefer modern DOM APIs.
7782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
7783
7792
  */
7784
7793
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7785
7794
  /**
7786
7795
  * Prefer modern `Math` APIs over legacy patterns.
7787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
7788
7797
  */
7789
7798
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7790
7799
  /**
7791
7800
  * Prefer JavaScript modules (ESM) over CommonJS.
7792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
7793
7802
  */
7794
7803
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7795
7804
  /**
7796
7805
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
7806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
7798
7807
  */
7799
7808
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7800
7809
  /**
7801
7810
  * Prefer negative index over `.length - index` when possible.
7802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
7811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
7803
7812
  */
7804
7813
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7805
7814
  /**
7806
7815
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
7816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
7808
7817
  */
7809
7818
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7810
7819
  /**
7811
7820
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
7812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
7821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
7813
7822
  */
7814
7823
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
7815
7824
  /**
7816
7825
  * Prefer `Number.isSafeInteger()` over integer checks.
7817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
7826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
7818
7827
  */
7819
7828
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
7820
7829
  /**
7821
7830
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
7822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
7831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
7823
7832
  */
7824
7833
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7825
7834
  /**
7826
7835
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
7827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
7836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
7828
7837
  */
7829
7838
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
7830
7839
  /**
7831
7840
  * Prefer object destructuring defaults over default object literals with spread.
7832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
7841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
7833
7842
  */
7834
7843
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7835
7844
  /**
7836
7845
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
7846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
7838
7847
  */
7839
7848
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7840
7849
  /**
7841
7850
  * Prefer the most specific `Object` iterable method.
7842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
7851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
7843
7852
  */
7844
7853
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
7845
7854
  /**
7846
7855
  * Prefer observer APIs over resize and scroll listeners with layout reads.
7847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
7856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
7848
7857
  */
7849
7858
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
7850
7859
  /**
7851
7860
  * Prefer omitting the `catch` binding parameter.
7852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
7861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
7853
7862
  */
7854
7863
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7855
7864
  /**
7856
7865
  * Prefer `Path2D` for repeatedly drawn canvas paths.
7857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
7866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
7858
7867
  */
7859
7868
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
7860
7869
  /**
7861
7870
  * Prefer private class fields over the underscore-prefix convention.
7862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
7871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
7863
7872
  */
7864
7873
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
7865
7874
  /**
7866
7875
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
7867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
7876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
7868
7877
  */
7869
7878
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
7870
7879
  /**
7871
7880
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
7872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
7881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
7873
7882
  */
7874
7883
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
7875
7884
  /**
7876
7885
  * Prefer borrowing methods from the prototype instead of the instance.
7877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
7886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
7878
7887
  */
7879
7888
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7880
7889
  /**
7881
7890
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
7882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
7891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
7883
7892
  */
7884
7893
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
7885
7894
  /**
7886
7895
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
7887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
7896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
7888
7897
  */
7889
7898
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
7890
7899
  /**
7891
7900
  * Prefer `Reflect.apply()` over `Function#apply()`.
7892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
7901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
7893
7902
  */
7894
7903
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7895
7904
  /**
7896
7905
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
7897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
7906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
7898
7907
  */
7899
7908
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
7900
7909
  /**
7901
7910
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
7902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
7911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
7903
7912
  */
7904
7913
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7905
7914
  /**
7906
7915
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
7916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
7908
7917
  */
7909
7918
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
7910
7919
  /**
7911
7920
  * Prefer `:scope` when using element query selector methods.
7912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
7921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
7913
7922
  */
7914
7923
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
7915
7924
  /**
7916
7925
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
7926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
7918
7927
  */
7919
7928
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
7920
7929
  /**
7921
7930
  * Prefer `Set` methods for Set operations.
7922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
7931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
7923
7932
  */
7924
7933
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
7925
7934
  /**
7926
7935
  * Prefer using `Set#size` instead of `Array#length`.
7927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
7936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
7928
7937
  */
7929
7938
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
7930
7939
  /**
7931
7940
  * Prefer arrow function properties over methods with a single return.
7932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
7941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
7933
7942
  */
7934
7943
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
7935
7944
  /**
7936
7945
  * Prefer simple conditions first in logical expressions.
7937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
7946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
7938
7947
  */
7939
7948
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
7940
7949
  /**
7941
7950
  * Prefer a simple comparison function for `Array#sort()`.
7942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
7951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
7943
7952
  */
7944
7953
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
7945
7954
  /**
7946
7955
  * Prefer simplified conditions.
7947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
7956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
7948
7957
  */
7949
7958
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
7950
7959
  /**
7951
7960
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
7952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
7961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
7953
7962
  */
7954
7963
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
7955
7964
  /**
7956
7965
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
7966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
7958
7967
  */
7959
7968
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7960
7969
  /**
7961
7970
  * Prefer a single object destructuring declaration per local const source.
7962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
7971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
7963
7972
  */
7964
7973
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
7965
7974
  /**
7966
7975
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
7967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
7976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
7968
7977
  */
7969
7978
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
7970
7979
  /**
7971
7980
  * Prefer declaring variables in the smallest possible scope.
7972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
7981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
7973
7982
  */
7974
7983
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
7975
7984
  /**
7976
7985
  * Prefer `String#split()` with a limit.
7977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
7986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
7978
7987
  */
7979
7988
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
7980
7989
  /**
7981
7990
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
7982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
7991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
7983
7992
  */
7984
7993
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7985
7994
  /**
7986
7995
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
7987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
7996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
7988
7997
  */
7989
7998
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
7990
7999
  /**
7991
8000
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
7992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
7993
8002
  */
7994
8003
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
7995
8004
  /**
7996
8005
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
7998
8007
  */
7999
8008
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8000
8009
  /**
8001
8010
  * Prefer `String#repeat()` for repeated whitespace.
8002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
8011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
8003
8012
  */
8004
8013
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8005
8014
  /**
8006
8015
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
8008
8017
  */
8009
8018
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8010
8019
  /**
8011
8020
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
8013
8022
  */
8014
8023
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8015
8024
  /**
8016
8025
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
8018
8027
  */
8019
8028
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8020
8029
  /**
8021
8030
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
8023
8032
  */
8024
8033
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8025
8034
  /**
8026
8035
  * Prefer using `structuredClone` to create a deep clone.
8027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
8028
8037
  */
8029
8038
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8030
8039
  /**
8031
8040
  * Prefer `switch` over multiple `else-if`.
8032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
8041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
8033
8042
  */
8034
8043
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8035
8044
  /**
8036
8045
  * Prefer `Temporal` over `Date`.
8037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
8046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
8038
8047
  */
8039
8048
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8040
8049
  /**
8041
8050
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
8051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
8043
8052
  */
8044
8053
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8045
8054
  /**
8046
8055
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
8056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
8048
8057
  */
8049
8058
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8050
8059
  /**
8051
8060
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
8061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
8053
8062
  */
8054
8063
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8055
8064
  /**
8056
8065
  * Prefer top-level await over top-level promises and async function calls.
8057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
8066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
8058
8067
  */
8059
8068
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8060
8069
  /**
8061
8070
  * Enforce throwing `TypeError` in type checking conditions.
8062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
8071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
8063
8072
  */
8064
8073
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8065
8074
  /**
8066
8075
  * Require type literals to be last in union types.
8067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
8076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
8068
8077
  */
8069
8078
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8070
8079
  /**
8071
8080
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
8081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
8073
8082
  */
8074
8083
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8075
8084
  /**
8076
8085
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
8086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
8078
8087
  */
8079
8088
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8080
8089
  /**
8081
8090
  * Prefer Unicode code point escapes over legacy escape sequences.
8082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8083
8092
  */
8084
8093
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8085
8094
  /**
8086
8095
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
8096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
8088
8097
  */
8089
8098
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8090
8099
  /**
8091
8100
  * Prefer `URL#href` over stringifying a `URL`.
8092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
8101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
8093
8102
  */
8094
8103
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8095
8104
  /**
8096
8105
  * Prefer `URLSearchParams` over manually splitting query strings.
8097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
8106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
8098
8107
  */
8099
8108
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8100
8109
  /**
8101
8110
  * Prefer putting the condition in the while statement.
8102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
8111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
8103
8112
  */
8104
8113
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8105
8114
  /**
8106
8115
  * Renamed to `unicorn/name-replacements`.
8107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8108
8117
  * @deprecated
8109
8118
  */
8110
8119
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8111
8120
  /**
8112
8121
  * Enforce consistent relative URL style.
8113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
8114
8123
  */
8115
8124
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8116
8125
  /**
8117
8126
  * Enforce using the separator argument with `Array#join()`.
8118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
8119
8128
  */
8120
8129
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8121
8130
  /**
8122
8131
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
8124
8133
  */
8125
8134
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8126
8135
  /**
8127
8136
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
8129
8138
  */
8130
8139
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8131
8140
  /**
8132
8141
  * Require configured YAML frontmatter fields.
8133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
8134
8143
  */
8135
8144
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8136
8145
  /**
8137
8146
  * Require non-empty module attributes for imports and exports
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
8147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
8139
8148
  */
8140
8149
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8141
8150
  /**
8142
8151
  * Require non-empty specifier list in import and export statements.
8143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
8152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
8144
8153
  */
8145
8154
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8146
8155
  /**
8147
8156
  * Enforce using the digits argument with `Number#toFixed()`.
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8149
8158
  */
8150
8159
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8151
8160
  /**
8152
8161
  * Require passive event listeners for high-frequency events.
8153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
8162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
8154
8163
  */
8155
8164
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8156
8165
  /**
8157
8166
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
8167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
8159
8168
  */
8160
8169
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8161
8170
  /**
8162
8171
  * Require boolean-returning Proxy traps to return booleans.
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
8172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
8164
8173
  */
8165
8174
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8166
8175
  /**
8167
8176
  * Enforce a consistent style for single-line block comments.
8168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
8177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
8169
8178
  */
8170
8179
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8171
8180
  /**
8172
8181
  * Enforce better string content.
8173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
8182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
8174
8183
  */
8175
8184
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8176
8185
  /**
8177
8186
  * Enforce consistent brace style for `case` clauses.
8178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
8187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
8179
8188
  */
8180
8189
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8181
8190
  /**
8182
8191
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
8192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
8184
8193
  */
8185
8194
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8186
8195
  /**
8187
8196
  * Fix whitespace-insensitive template indentation.
8188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
8197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
8189
8198
  */
8190
8199
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8191
8200
  /**
8192
8201
  * Enforce consistent case for text encoding identifiers.
8193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
8202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
8194
8203
  */
8195
8204
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8196
8205
  /**
8197
8206
  * Require `new` when creating an error.
8198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
8207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
8199
8208
  */
8200
8209
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8201
8210
  /**
8202
8211
  * Limit the complexity of `try` blocks.
8203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
8212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
8204
8213
  */
8205
8214
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8206
8215
  /**
@@ -10816,7 +10825,9 @@ type TypescriptEslintNoMeaninglessVoidOperator = [] | [{
10816
10825
  }];
10817
10826
  // ----- @typescript-eslint/no-misused-promises -----
10818
10827
  type TypescriptEslintNoMisusedPromises = [] | [{
10819
- checksConditionals?: boolean;
10828
+ checksConditionals?: (boolean | {
10829
+ flagUnions?: ("all" | "strict" | "none");
10830
+ });
10820
10831
  checksSpreads?: boolean;
10821
10832
  checksVoidReturn?: (boolean | {
10822
10833
  arguments?: boolean;
@@ -11553,6 +11564,11 @@ type GithubActionJobIdCasing = [] | [(("camelCase" | "kebab-case" | "PascalCase"
11553
11564
  })];
11554
11565
  // ----- github-action/max-jobs-per-action -----
11555
11566
  type GithubActionMaxJobsPerAction = [] | [number];
11567
+ // ----- github-action/no-top-level-permissions -----
11568
+ type GithubActionNoTopLevelPermissions = [] | [{
11569
+ allowEmpty?: _GithubActionNoTopLevelPermissions_AllowEmptyPermissionsBlock;
11570
+ }];
11571
+ type _GithubActionNoTopLevelPermissions_AllowEmptyPermissionsBlock = boolean;
11556
11572
  // ----- github-action/prefer-file-extension -----
11557
11573
  type GithubActionPreferFileExtension = [] | [(("yml" | "yaml") | {
11558
11574
  extension?: ("yml" | "yaml");
@@ -12155,6 +12171,13 @@ type JsdocNoUndefinedTypes = [] | [{
12155
12171
  disableReporting?: boolean;
12156
12172
  markVariablesAsUsed?: boolean;
12157
12173
  }];
12174
+ // ----- jsdoc/no-unnecessary-type-assertion -----
12175
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
12176
+ checkLiteralConstAssertions?: boolean;
12177
+ enableFixer?: boolean;
12178
+ treatAnyAsRedundant?: boolean;
12179
+ typesToIgnore?: string[];
12180
+ }];
12158
12181
  // ----- jsdoc/normalize-see-links -----
12159
12182
  type JsdocNormalizeSeeLinks = [] | [{
12160
12183
  canonicalForm?: ("pipe" | "prefix");
@@ -15493,10 +15516,6 @@ type PerfectionistSortImports = {
15493
15516
  sortBy?: ("specifier" | "path");
15494
15517
  })[];
15495
15518
  newlinesBetween?: ("ignore" | number);
15496
- tsconfig?: {
15497
- rootDir: string;
15498
- filename?: string;
15499
- };
15500
15519
  maxLineLength?: number;
15501
15520
  sortSideEffects?: boolean;
15502
15521
  environment?: ("node" | "bun");
@@ -15531,6 +15550,10 @@ type PerfectionistSortImports = {
15531
15550
  pattern: string;
15532
15551
  flags?: string;
15533
15552
  } | string));
15553
+ tsconfig?: {
15554
+ rootDir: string;
15555
+ filename?: string;
15556
+ };
15534
15557
  }[];
15535
15558
  // ----- perfectionist/sort-interfaces -----
15536
15559
  type PerfectionistSortInterfaces = {
@@ -16115,6 +16138,7 @@ type PerfectionistSortModules = [] | [{
16115
16138
  order?: ("asc" | "desc");
16116
16139
  })[];
16117
16140
  newlinesBetween?: ("ignore" | number);
16141
+ additionalModuleBlockTypes?: string[];
16118
16142
  useExperimentalDependencyDetection?: boolean;
16119
16143
  newlinesBetweenOverloadSignatures?: ("ignore" | number);
16120
16144
  partitionByComment?: (boolean | (({
@@ -16140,6 +16164,10 @@ type PerfectionistSortModules = [] | [{
16140
16164
  } | string)));
16141
16165
  });
16142
16166
  partitionByNewLine?: boolean;
16167
+ tsconfig?: {
16168
+ rootDir: string;
16169
+ filename?: string;
16170
+ };
16143
16171
  }];
16144
16172
  // ----- perfectionist/sort-named-exports -----
16145
16173
  type PerfectionistSortNamedExports = {
@@ -16668,6 +16696,13 @@ type PerfectionistSortObjects = {
16668
16696
  partitionByComputedKey?: boolean;
16669
16697
  styledComponents?: boolean;
16670
16698
  useExperimentalDependencyDetection?: boolean;
16699
+ ignoreCallbackDependenciesPatterns?: (({
16700
+ pattern: string;
16701
+ flags?: string;
16702
+ } | string)[] | ({
16703
+ pattern: string;
16704
+ flags?: string;
16705
+ } | string));
16671
16706
  partitionByComment?: (boolean | (({
16672
16707
  pattern: string;
16673
16708
  flags?: string;
@@ -17003,6 +17038,13 @@ type PerfectionistSortVariableDeclarations = {
17003
17038
  matchesAstSelector?: string;
17004
17039
  };
17005
17040
  useExperimentalDependencyDetection?: boolean;
17041
+ ignoreCallbackDependenciesPatterns?: (({
17042
+ pattern: string;
17043
+ flags?: string;
17044
+ } | string)[] | ({
17045
+ pattern: string;
17046
+ flags?: string;
17047
+ } | string));
17006
17048
  partitionByComment?: (boolean | (({
17007
17049
  pattern: string;
17008
17050
  flags?: string;