@lichthagel/eslint-config 1.0.37 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3566,1560 +3566,1620 @@ interface RuleOptions {
3566
3566
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
3567
3567
  /**
3568
3568
  * Prefer better DOM traversal APIs.
3569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/better-dom-traversing.md
3569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/better-dom-traversing.md
3570
3570
  */
3571
3571
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
3572
3572
  /**
3573
3573
  * Removed. Prefer `eslint-plugin-regexp`
3574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#better-regex
3574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
3575
3575
  * @deprecated
3576
3576
  */
3577
3577
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
3578
3578
  /**
3579
3579
  * Enforce a specific parameter name in catch clauses.
3580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/catch-error-name.md
3580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/catch-error-name.md
3581
3581
  */
3582
3582
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
3583
3583
  /**
3584
3584
  * Enforce consistent class references in static methods.
3585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/class-reference-in-static-methods.md
3585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/class-reference-in-static-methods.md
3586
3586
  */
3587
3587
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
3588
3588
  /**
3589
3589
  * Enforce better comment content.
3590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/comment-content.md
3590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
3591
3591
  */
3592
3592
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
3593
3593
  /**
3594
3594
  * Enforce consistent assertion style with `node:assert`.
3595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-assert.md
3595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
3596
3596
  */
3597
3597
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
3598
3598
  /**
3599
3599
  * Enforce consistent naming for boolean names.
3600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-boolean-name.md
3600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
3601
3601
  */
3602
3602
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
3603
3603
  /**
3604
3604
  * Enforce consistent class member order.
3605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-class-member-order.md
3605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
3606
3606
  */
3607
3607
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
3608
3608
  /**
3609
3609
  * Enforce consistent spelling of compound words in identifiers.
3610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-compound-words.md
3610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
3611
3611
  */
3612
3612
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
3613
3613
  /**
3614
3614
  * Enforce consistent conditional object spread style.
3615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-conditional-object-spread.md
3615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
3616
3616
  */
3617
3617
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
3618
3618
  /**
3619
3619
  * Prefer passing `Date` directly to the constructor when cloning.
3620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-date-clone.md
3620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
3621
3621
  */
3622
3622
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
3623
3623
  /**
3624
3624
  * Use destructured variables over properties.
3625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-destructuring.md
3625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
3626
3626
  */
3627
3627
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
3628
3628
  /**
3629
3629
  * Prefer consistent types when spreading a ternary in an array literal.
3630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-empty-array-spread.md
3630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
3631
3631
  */
3632
3632
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
3633
3633
  /**
3634
3634
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
3635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-existence-index-check.md
3635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
3636
3636
  */
3637
3637
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
3638
3638
  /**
3639
3639
  * Enforce consistent decorator position on exported classes.
3640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-export-decorator-position.md
3640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
3641
3641
  */
3642
3642
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
3643
3643
  /**
3644
3644
  * Move function definitions to the highest possible scope.
3645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-scoping.md
3645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
3646
3646
  */
3647
3647
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
3648
3648
  /**
3649
3649
  * Enforce function syntax by role.
3650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-style.md
3650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
3651
3651
  */
3652
3652
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
3653
3653
  /**
3654
3654
  * Enforce consistent JSON file reads before `JSON.parse()`.
3655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-json-file-read.md
3655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
3656
3656
  */
3657
3657
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
3658
3658
  /**
3659
3659
  * Enforce consistent optional chaining for same-base member access.
3660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-optional-chaining.md
3660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
3661
3661
  */
3662
3662
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
3663
3663
  /**
3664
3664
  * Enforce consistent style for escaping `${` in template literals.
3665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-template-literal-escape.md
3665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
3666
3666
  */
3667
3667
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
3668
+ /**
3669
+ * Enforce consistent labels on tuple type elements.
3670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
3671
+ */
3672
+ 'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
3668
3673
  /**
3669
3674
  * Enforce correct `Error` subclassing.
3670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/custom-error-definition.md
3675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
3671
3676
  */
3672
3677
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
3673
3678
  /**
3674
3679
  * Enforce consistent default export declarations.
3675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/default-export-style.md
3680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
3676
3681
  */
3677
3682
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
3678
3683
  /**
3679
3684
  * Enforce consistent style for DOM element dataset access.
3680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/dom-node-dataset.md
3685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
3681
3686
  */
3682
3687
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
3683
3688
  /**
3684
3689
  * Enforce no spaces between braces.
3685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/empty-brace-spaces.md
3690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
3686
3691
  */
3687
3692
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
3688
3693
  /**
3689
3694
  * Enforce passing a `message` value when creating a built-in error.
3690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/error-message.md
3695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
3691
3696
  */
3692
3697
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
3693
3698
  /**
3694
3699
  * Require escape sequences to use uppercase or lowercase values.
3695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/escape-case.md
3700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
3696
3701
  */
3697
3702
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
3698
3703
  /**
3699
3704
  * Add expiration conditions to TODO comments.
3700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/expiring-todo-comments.md
3705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
3701
3706
  */
3702
3707
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
3703
3708
  /**
3704
3709
  * Enforce explicitly comparing the `length` or `size` property of a value.
3705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-length-check.md
3710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
3706
3711
  */
3707
3712
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
3708
3713
  /**
3709
3714
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
3710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/explicit-timer-delay.md
3715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
3711
3716
  */
3712
3717
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
3713
3718
  /**
3714
3719
  * Enforce a case style for filenames and directory names.
3715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/filename-case.md
3720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
3716
3721
  */
3717
3722
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
3718
3723
  /**
3719
3724
  * Require identifiers to match a specified regular expression.
3720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/id-match.md
3725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
3721
3726
  */
3722
3727
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
3723
3728
  /**
3724
3729
  * Enforce specific import styles per module.
3725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/import-style.md
3730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
3726
3731
  */
3727
3732
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
3728
3733
  /**
3729
3734
  * Prevent usage of variables from outside the scope of isolated functions.
3730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/isolated-functions.md
3735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
3731
3736
  */
3732
3737
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
3733
3738
  /**
3734
3739
  * Require or disallow logical assignment operator shorthand
3735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/logical-assignment-operators.md
3740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
3736
3741
  */
3737
3742
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
3738
3743
  /**
3739
3744
  * Limit the depth of nested calls.
3740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/max-nested-calls.md
3745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
3741
3746
  */
3742
3747
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
3743
3748
  /**
3744
3749
  * Enforce replacements for variable, property, and filenames.
3745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/name-replacements.md
3750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
3746
3751
  */
3747
3752
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
3748
3753
  /**
3749
3754
  * Enforce correct use of `new` for builtin constructors.
3750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/new-for-builtins.md
3755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
3751
3756
  */
3752
3757
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
3753
3758
  /**
3754
3759
  * Enforce specifying rules to disable in `eslint-disable` comments.
3755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-abusive-eslint-disable.md
3760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
3756
3761
  */
3757
3762
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
3758
3763
  /**
3759
3764
  * Disallow recursive access to `this` within getters and setters.
3760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-accessor-recursion.md
3765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
3761
3766
  */
3762
3767
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
3763
3768
  /**
3764
3769
  * Disallow bitwise operators where a logical operator was likely intended.
3765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-accidental-bitwise-operator.md
3770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
3766
3771
  */
3767
3772
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
3768
3773
  /**
3769
3774
  * Disallow anonymous functions and classes as the default export.
3770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-anonymous-default-export.md
3775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
3771
3776
  */
3772
3777
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
3773
3778
  /**
3774
3779
  * Prevent passing a function reference directly to iterator methods.
3775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-callback-reference.md
3780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
3776
3781
  */
3777
3782
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
3778
3783
  /**
3779
3784
  * Disallow array accumulation with `Array#concat()` in loops.
3780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-concat-in-loop.md
3785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
3781
3786
  */
3782
3787
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
3783
3788
  /**
3784
3789
  * Disallow using reference values as `Array#fill()` values.
3785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-fill-with-reference-type.md
3790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
3786
3791
  */
3787
3792
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
3788
3793
  /**
3789
3794
  * Disallow `.fill()` after `Array.from({length: …})`.
3790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-from-fill.md
3795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
3791
3796
  */
3792
3797
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
3793
3798
  /**
3794
3799
  * Disallow front-of-array mutation.
3795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-front-mutation.md
3800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
3796
3801
  */
3797
3802
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
3798
3803
  /**
3799
3804
  * Disallow using the `this` argument in array methods.
3800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-method-this-argument.md
3805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
3801
3806
  */
3802
3807
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
3803
3808
  /**
3804
3809
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
3805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
3810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
3806
3811
  * @deprecated
3807
3812
  */
3808
3813
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
3809
3814
  /**
3810
3815
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
3811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reduce.md
3816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
3812
3817
  */
3813
3818
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
3814
3819
  /**
3815
3820
  * Prefer `Array#toReversed()` over `Array#reverse()`.
3816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-reverse.md
3821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
3817
3822
  */
3818
3823
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
3819
3824
  /**
3820
3825
  * Prefer `Array#toSorted()` over `Array#sort()`.
3821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-sort.md
3826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
3822
3827
  */
3823
3828
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
3824
3829
  /**
3825
3830
  * Disallow sorting arrays to get the minimum or maximum value.
3826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-sort-for-min-max.md
3831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
3827
3832
  */
3828
3833
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
3829
3834
  /**
3830
3835
  * Prefer `Array#toSpliced()` over `Array#splice()`.
3831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-array-splice.md
3836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
3832
3837
  */
3833
3838
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
3834
3839
  /**
3835
3840
  * Disallow asterisk prefixes in documentation comments.
3836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
3841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
3837
3842
  */
3838
3843
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
3839
3844
  /**
3840
3845
  * Disallow member access from await expression.
3841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-expression-member.md
3846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
3842
3847
  */
3843
3848
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
3844
3849
  /**
3845
3850
  * Disallow using `await` in `Promise` method parameters.
3846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-await-in-promise-methods.md
3851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
3847
3852
  */
3848
3853
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
3849
3854
  /**
3850
3855
  * Disallow unnecessary `Blob` to `File` conversion.
3851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-blob-to-file.md
3856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
3852
3857
  */
3853
3858
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
3854
3859
  /**
3855
3860
  * Disallow boolean-returning sort comparators.
3856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-boolean-sort-comparator.md
3861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
3857
3862
  */
3858
3863
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
3859
3864
  /**
3860
3865
  * Disallow `break` and `continue` in nested loops and switches inside loops.
3861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-break-in-nested-loop.md
3866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
3862
3867
  */
3863
3868
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
3864
3869
  /**
3865
3870
  * Prefer drawing canvases directly instead of converting them to images.
3866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-canvas-to-image.md
3871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
3867
3872
  */
3868
3873
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
3869
3874
  /**
3870
3875
  * Disallow chained comparisons such as `a < b < c`.
3871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-chained-comparison.md
3876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
3872
3877
  */
3873
3878
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
3874
3879
  /**
3875
3880
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
3876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-collection-bracket-access.md
3881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
3877
3882
  */
3878
3883
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
3879
3884
  /**
3880
3885
  * Disallow dynamic object property existence checks.
3881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-computed-property-existence-check.md
3886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
3882
3887
  */
3883
3888
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
3884
3889
  /**
3885
3890
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
3886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-splice.md
3891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
3887
3892
  */
3888
3893
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
3889
3894
  /**
3890
3895
  * Disallow confusing uses of `Array#with()`.
3891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-confusing-array-with.md
3896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
3892
3897
  */
3893
3898
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
3894
3899
  /**
3895
3900
  * Do not use leading/trailing space between `console.log` parameters.
3896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-console-spaces.md
3901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
3897
3902
  */
3898
3903
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
3899
3904
  /**
3900
3905
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
3901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-constant-zero-expression.md
3906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
3902
3907
  */
3903
3908
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
3904
3909
  /**
3905
3910
  * Disallow declarations before conditional early exits when they are only used after the exit.
3906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-declarations-before-early-exit.md
3911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
3907
3912
  */
3908
3913
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
3909
3914
  /**
3910
3915
  * Do not use `document.cookie` directly.
3911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-document-cookie.md
3916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
3912
3917
  */
3913
3918
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
3914
3919
  /**
3915
3920
  * Disallow two comparisons of the same operands that can be combined into one.
3916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-double-comparison.md
3921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
3917
3922
  */
3918
3923
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
3919
3924
  /**
3920
3925
  * Disallow duplicate adjacent branches in if chains.
3921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-if-branches.md
3926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
3922
3927
  */
3923
3928
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
3924
3929
  /**
3925
3930
  * Disallow adjacent duplicate operands in logical expressions.
3926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-logical-operands.md
3931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
3927
3932
  */
3928
3933
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
3929
3934
  /**
3930
3935
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
3931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-loops.md
3936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
3932
3937
  */
3933
3938
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
3934
3939
  /**
3935
3940
  * Disallow duplicate values in `Set` constructor array literals.
3936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-duplicate-set-values.md
3941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
3937
3942
  */
3938
3943
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
3939
3944
  /**
3940
3945
  * Disallow empty files.
3941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-empty-file.md
3946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
3942
3947
  */
3943
3948
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
3944
3949
  /**
3945
3950
  * Disallow assigning to built-in error properties.
3946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-error-property-assignment.md
3951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
3947
3952
  */
3948
3953
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
3949
3954
  /**
3950
3955
  * Disallow exports in scripts.
3951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-exports-in-scripts.md
3956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
3952
3957
  */
3953
3958
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
3954
3959
  /**
3955
3960
  * Prefer `for…of` over the `forEach` method.
3956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-each.md
3961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
3957
3962
  */
3958
3963
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
3959
3964
  /**
3960
3965
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
3961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-for-loop.md
3966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
3962
3967
  */
3963
3968
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
3964
3969
  /**
3965
3970
  * Disallow assigning properties on the global object.
3966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-global-object-property-assignment.md
3971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
3967
3972
  */
3968
3973
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
3969
3974
  /**
3970
3975
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
3971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
3976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
3972
3977
  * @deprecated
3973
3978
  */
3974
3979
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
3975
3980
  /**
3976
3981
  * Disallow immediate mutation after variable assignment.
3977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-immediate-mutation.md
3982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
3978
3983
  */
3979
3984
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
3980
3985
  /**
3981
3986
  * Disallow impossible comparisons against `.length` or `.size`.
3982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-impossible-length-comparison.md
3987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
3983
3988
  */
3984
3989
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
3985
3990
  /**
3986
3991
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
3987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-query-selector.md
3992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
3988
3993
  */
3989
3994
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
3990
3995
  /**
3991
3996
  * Disallow incorrect template literal interpolation syntax.
3992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-incorrect-template-string-interpolation.md
3997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
3993
3998
  */
3994
3999
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
3995
4000
  /**
3996
4001
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
3997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
3998
4003
  * @deprecated
3999
4004
  */
4000
4005
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
4001
4006
  /**
4002
4007
  * Disallow `instanceof` with built-in objects
4003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-instanceof-builtins.md
4008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
4004
4009
  */
4005
4010
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4006
4011
  /**
4007
4012
  * Disallow calling functions and constructors with an invalid number of arguments.
4008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-argument-count.md
4013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
4009
4014
  */
4010
4015
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
4011
4016
  /**
4012
4017
  * Disallow comparing a single character from a string to a multi-character string.
4013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-character-comparison.md
4018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
4014
4019
  */
4015
4020
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
4016
4021
  /**
4017
4022
  * Disallow invalid options in `fetch()` and `new Request()`.
4018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-fetch-options.md
4023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
4019
4024
  */
4020
4025
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
4021
4026
  /**
4022
4027
  * Disallow invalid `accept` values on file inputs.
4023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-file-input-accept.md
4028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
4024
4029
  */
4025
4030
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
4026
4031
  /**
4027
4032
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-invalid-remove-event-listener.md
4033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
4029
4034
  */
4030
4035
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
4036
+ /**
4037
+ * Disallow invalid implementations of well-known symbol methods.
4038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
4039
+ */
4040
+ 'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
4031
4041
  /**
4032
4042
  * Disallow identifiers starting with `new` or `class`.
4033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-keyword-prefix.md
4043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
4034
4044
  */
4035
4045
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4036
4046
  /**
4037
4047
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
4038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-late-current-target-access.md
4048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
4039
4049
  */
4040
4050
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
4051
+ /**
4052
+ * Disallow event-control method calls after the synchronous event dispatch has finished.
4053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
4054
+ */
4055
+ 'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
4041
4056
  /**
4042
4057
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4044
4059
  * @deprecated
4045
4060
  */
4046
4061
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
4047
4062
  /**
4048
4063
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-lonely-if.md
4064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
4050
4065
  */
4051
4066
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
4052
4067
  /**
4053
4068
  * Disallow mutating a loop iterable during iteration.
4054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-loop-iterable-mutation.md
4069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
4055
4070
  */
4056
4071
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
4057
4072
  /**
4058
4073
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-magic-array-flat-depth.md
4074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
4060
4075
  */
4061
4076
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
4062
4077
  /**
4063
4078
  * Disallow manually wrapped comments.
4064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-manually-wrapped-comments.md
4079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
4065
4080
  */
4066
4081
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
4067
4082
  /**
4068
4083
  * Disallow checking a Map key before accessing a different key.
4069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-mismatched-map-key.md
4084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
4070
4085
  */
4071
4086
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
4072
4087
  /**
4073
4088
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
4074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-misrefactored-assignment.md
4089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
4075
4090
  */
4076
4091
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
4077
4092
  /**
4078
4093
  * Disallow named usage of default import and export.
4079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-named-default.md
4094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
4080
4095
  */
4081
4096
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
4082
4097
  /**
4083
4098
  * Disallow negated array predicate calls.
4084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-array-predicate.md
4099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
4085
4100
  */
4086
4101
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
4087
4102
  /**
4088
4103
  * Disallow negated comparisons.
4089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-comparison.md
4104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
4090
4105
  */
4091
4106
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
4092
4107
  /**
4093
4108
  * Disallow negated conditions.
4094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-condition.md
4109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
4095
4110
  */
4096
4111
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
4097
4112
  /**
4098
4113
  * Disallow negated expression in equality check.
4099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negation-in-equality-check.md
4114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
4100
4115
  */
4101
4116
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
4102
4117
  /**
4103
4118
  * Disallow nested ternary expressions.
4104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nested-ternary.md
4119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
4105
4120
  */
4106
4121
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
4107
4122
  /**
4108
4123
  * Disallow `new Array()`.
4109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-array.md
4124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
4110
4125
  */
4111
4126
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
4112
4127
  /**
4113
4128
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-buffer.md
4129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
4115
4130
  */
4116
4131
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
4117
4132
  /**
4118
4133
  * Disallow non-function values with function-style verb prefixes.
4119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-non-function-verb-prefix.md
4134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
4120
4135
  */
4121
4136
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
4122
4137
  /**
4123
4138
  * Disallow non-standard properties on built-in objects.
4124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nonstandard-builtin-properties.md
4139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
4125
4140
  */
4126
4141
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
4127
4142
  /**
4128
4143
  * Disallow the use of the `null` literal.
4129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-null.md
4144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
4130
4145
  */
4131
4146
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
4132
4147
  /**
4133
4148
  * Disallow the use of objects as default parameters.
4134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-as-default-parameter.md
4149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
4135
4150
  */
4136
4151
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
4137
4152
  /**
4138
4153
  * Disallow `Object` methods with `Map` or `Set`.
4139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-object-methods-with-collections.md
4154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
4140
4155
  */
4141
4156
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
4142
4157
  /**
4143
4158
  * Disallow optional chaining on undeclared variables.
4144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
4159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
4145
4160
  */
4146
4161
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
4147
4162
  /**
4148
4163
  * Disallow `process.exit()`.
4149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-process-exit.md
4164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
4150
4165
  */
4151
4166
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
4152
4167
  /**
4153
4168
  * Disallow comparisons made redundant by an equality check in the same logical AND.
4154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-redundant-comparison.md
4169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
4155
4170
  */
4156
4171
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
4157
4172
  /**
4158
4173
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
4159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-return-array-push.md
4174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
4160
4175
  */
4161
4176
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
4162
4177
  /**
4163
4178
  * Disallow selector syntax in DOM names.
4164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-selector-as-dom-name.md
4179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
4165
4180
  */
4166
4181
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
4167
4182
  /**
4168
4183
  * Disallow passing single-element arrays to `Promise` methods.
4169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-single-promise-in-promise-methods.md
4184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
4170
4185
  */
4171
4186
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4172
4187
  /**
4173
4188
  * Disallow classes that only have static members.
4174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-static-only-class.md
4189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
4175
4190
  */
4176
4191
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4177
4192
  /**
4178
4193
  * Prefer comparing values directly over subtracting and comparing to `0`.
4179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-subtraction-comparison.md
4194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
4180
4195
  */
4181
4196
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
4182
4197
  /**
4183
4198
  * Disallow `then` property.
4184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-thenable.md
4199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
4185
4200
  */
4186
4201
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4187
4202
  /**
4188
4203
  * Disallow assigning `this` to a variable.
4189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-assignment.md
4204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
4190
4205
  */
4191
4206
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4192
4207
  /**
4193
4208
  * Disallow `this` outside of classes.
4194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-this-outside-of-class.md
4209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
4195
4210
  */
4196
4211
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
4197
4212
  /**
4198
4213
  * Disallow assigning to top-level variables from inside functions.
4199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-top-level-assignment-in-function.md
4214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
4200
4215
  */
4201
4216
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
4202
4217
  /**
4203
4218
  * Disallow top-level side effects in exported modules.
4204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-top-level-side-effects.md
4219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
4205
4220
  */
4206
4221
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
4207
4222
  /**
4208
4223
  * Disallow comparing `undefined` using `typeof`.
4209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-typeof-undefined.md
4224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
4210
4225
  */
4211
4226
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4212
4227
  /**
4213
4228
  * Disallow referencing methods without calling them.
4214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-uncalled-method.md
4229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
4215
4230
  */
4216
4231
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
4217
4232
  /**
4218
4233
  * Require class members to be declared.
4219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-undeclared-class-members.md
4234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
4220
4235
  */
4221
4236
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
4222
4237
  /**
4223
4238
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4225
4240
  */
4226
4241
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
4227
4242
  /**
4228
4243
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-array-splice-count.md
4244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
4230
4245
  */
4231
4246
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
4232
4247
  /**
4233
4248
  * Disallow awaiting non-promise values.
4234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-await.md
4249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
4235
4250
  */
4236
4251
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
4237
4252
  /**
4238
4253
  * Disallow unnecessary comparisons against boolean literals.
4239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-boolean-comparison.md
4254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
4240
4255
  */
4241
4256
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
4242
4257
  /**
4243
4258
  * Disallow unnecessary `globalThis` references.
4244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-global-this.md
4259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
4245
4260
  */
4246
4261
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
4247
4262
  /**
4248
4263
  * Disallow unnecessary nested ternary expressions.
4249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-nested-ternary.md
4264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
4250
4265
  */
4251
4266
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
4252
4267
  /**
4253
4268
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-polyfills.md
4269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
4255
4270
  */
4256
4271
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4257
4272
  /**
4258
4273
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-slice-end.md
4274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
4260
4275
  */
4261
4276
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
4262
4277
  /**
4263
4278
  * Disallow `Array#splice()` when simpler alternatives exist.
4264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-splice.md
4279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
4265
4280
  */
4266
4281
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
4267
4282
  /**
4268
4283
  * Disallow unreadable array destructuring.
4269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-array-destructuring.md
4284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
4270
4285
  */
4271
4286
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
4272
4287
  /**
4273
4288
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
4274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-for-of-expression.md
4289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
4275
4290
  */
4276
4291
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
4277
4292
  /**
4278
4293
  * Disallow unreadable IIFEs.
4279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-iife.md
4294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
4280
4295
  */
4281
4296
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
4282
4297
  /**
4283
4298
  * Disallow unreadable `new` expressions.
4284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-new-expression.md
4299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
4285
4300
  */
4286
4301
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
4287
4302
  /**
4288
4303
  * Disallow unreadable object destructuring.
4289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-object-destructuring.md
4304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
4290
4305
  */
4291
4306
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
4292
4307
  /**
4293
4308
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
4294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-buffer-conversion.md
4309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
4295
4310
  */
4296
4311
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
4297
4312
  /**
4298
4313
  * Disallow unsafe DOM HTML APIs.
4299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-dom-html.md
4314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
4300
4315
  */
4301
4316
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
4302
4317
  /**
4303
4318
  * Disallow unsafe values as property keys.
4304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-property-key.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
4305
4320
  */
4306
4321
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
4307
4322
  /**
4308
4323
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
4309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unsafe-string-replacement.md
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
4310
4325
  */
4311
4326
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
4312
4327
  /**
4313
4328
  * Disallow ignoring the return value of selected array methods.
4314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-array-method-return.md
4329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
4315
4330
  */
4316
4331
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
4317
4332
  /**
4318
4333
  * Disallow unused object properties.
4319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-properties.md
4334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
4320
4335
  */
4321
4336
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
4322
4337
  /**
4323
4338
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
4324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-boolean-cast.md
4339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
4325
4340
  */
4326
4341
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
4327
4342
  /**
4328
4343
  * Disallow useless type coercions of values that are already of the target type.
4329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-coercion.md
4344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
4330
4345
  */
4331
4346
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
4332
4347
  /**
4333
4348
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
4334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-collection-argument.md
4349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
4335
4350
  */
4336
4351
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
4337
4352
  /**
4338
4353
  * Disallow useless compound assignments such as `x += 0`.
4339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-compound-assignment.md
4354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
4340
4355
  */
4341
4356
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
4342
4357
  /**
4343
4358
  * Disallow useless concatenation of literals.
4344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-concat.md
4359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
4345
4360
  */
4346
4361
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
4347
4362
  /**
4348
4363
  * Disallow useless `continue` statements.
4349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-continue.md
4364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
4350
4365
  */
4351
4366
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
4352
4367
  /**
4353
4368
  * Disallow unnecessary existence checks before deletion.
4354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-delete-check.md
4369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
4355
4370
  */
4356
4371
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
4357
4372
  /**
4358
4373
  * Disallow `else` after a statement that exits.
4359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-else.md
4374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
4360
4375
  */
4361
4376
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
4362
4377
  /**
4363
4378
  * Disallow unnecessary `Error.captureStackTrace(…)`.
4364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4365
4380
  */
4366
4381
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
4367
4382
  /**
4368
4383
  * Disallow useless fallback when spreading in object literals.
4369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-fallback-in-spread.md
4384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
4370
4385
  */
4371
4386
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
4372
4387
  /**
4373
4388
  * Disallow unnecessary `.toArray()` on iterators.
4374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-iterator-to-array.md
4389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
4375
4390
  */
4376
4391
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
4377
4392
  /**
4378
4393
  * Disallow useless array length check.
4379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-length-check.md
4394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
4380
4395
  */
4381
4396
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
4382
4397
  /**
4383
4398
  * Disallow unnecessary operands in logical expressions involving boolean literals.
4384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-logical-operand.md
4399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
4385
4400
  */
4386
4401
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
4387
4402
  /**
4388
4403
  * Disallow useless overrides of class methods.
4389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-override.md
4404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
4390
4405
  */
4391
4406
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
4392
4407
  /**
4393
4408
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-promise-resolve-reject.md
4409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
4395
4410
  */
4396
4411
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
4397
4412
  /**
4398
4413
  * Disallow simple recursive function calls that can be replaced with a loop.
4399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-recursion.md
4414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
4400
4415
  */
4401
4416
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
4402
4417
  /**
4403
4418
  * Disallow unnecessary spread.
4404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-spread.md
4419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
4405
4420
  */
4406
4421
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
4407
4422
  /**
4408
4423
  * Disallow useless case in switch statements.
4409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-switch-case.md
4424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
4410
4425
  */
4411
4426
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
4412
4427
  /**
4413
4428
  * Disallow useless template literal expressions.
4414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-template-literals.md
4429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
4415
4430
  */
4416
4431
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
4417
4432
  /**
4418
4433
  * Disallow useless `undefined`.
4419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-undefined.md
4434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
4420
4435
  */
4421
4436
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4422
4437
  /**
4423
4438
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
4424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-xor-as-exponentiation.md
4439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
4425
4440
  */
4426
4441
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
4427
4442
  /**
4428
4443
  * Disallow number literals with zero fractions or dangling dots.
4429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-zero-fractions.md
4444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
4430
4445
  */
4431
4446
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
4432
4447
  /**
4433
4448
  * Enforce proper case for numeric literals.
4434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/number-literal-case.md
4449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
4435
4450
  */
4436
4451
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4437
4452
  /**
4438
4453
  * Enforce the style of numeric separators by correctly grouping digits.
4439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/numeric-separators-style.md
4454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
4440
4455
  */
4441
4456
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4442
4457
  /**
4443
4458
  * Require assignment operator shorthand where possible.
4444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/operator-assignment.md
4459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
4445
4460
  */
4446
4461
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
4462
+ /**
4463
+ * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
4464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
4465
+ */
4466
+ 'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
4447
4467
  /**
4448
4468
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener.md
4469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
4450
4470
  */
4451
4471
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4452
4472
  /**
4453
4473
  * Prefer an options object over a boolean in `.addEventListener()`.
4454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-add-event-listener-options.md
4474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
4455
4475
  */
4456
4476
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
4477
+ /**
4478
+ * Prefer `AggregateError` when throwing collected errors.
4479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
4480
+ */
4481
+ 'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
4457
4482
  /**
4458
4483
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-find.md
4484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
4460
4485
  */
4461
4486
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
4462
4487
  /**
4463
4488
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat.md
4489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
4465
4490
  */
4466
4491
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4467
4492
  /**
4468
4493
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
4469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-flat-map.md
4494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
4470
4495
  */
4471
4496
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
4472
4497
  /**
4473
4498
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
4474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-from-async.md
4499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
4475
4500
  */
4476
4501
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
4477
4502
  /**
4478
4503
  * Prefer using the `Array.from()` mapping function argument.
4479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-from-map.md
4504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
4480
4505
  */
4481
4506
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
4482
4507
  /**
4483
4508
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-index-of.md
4509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
4485
4510
  */
4486
4511
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
4487
4512
  /**
4488
4513
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
4489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-iterable-methods.md
4514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
4490
4515
  */
4491
4516
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
4492
4517
  /**
4493
4518
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
4494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-last-methods.md
4519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
4495
4520
  */
4496
4521
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
4497
4522
  /**
4498
4523
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
4499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-slice.md
4524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
4500
4525
  */
4501
4526
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
4502
4527
  /**
4503
4528
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-array-some.md
4529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
4505
4530
  */
4506
4531
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
4507
4532
  /**
4508
4533
  * Prefer `.at()` method for index access and `String#charAt()`.
4509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-at.md
4534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
4510
4535
  */
4511
4536
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
4512
4537
  /**
4513
4538
  * Prefer `await` over promise chaining.
4514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-await.md
4539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
4515
4540
  */
4516
4541
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
4517
4542
  /**
4518
4543
  * Prefer `BigInt` literals over the constructor.
4519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-bigint-literals.md
4544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
4520
4545
  */
4521
4546
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
4522
4547
  /**
4523
4548
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-blob-reading-methods.md
4549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
4525
4550
  */
4526
4551
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
4527
4552
  /**
4528
4553
  * Prefer directly returning boolean expressions over `if` statements.
4529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-boolean-return.md
4554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
4530
4555
  */
4531
4556
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
4532
4557
  /**
4533
4558
  * Prefer class field declarations over `this` assignments in constructors.
4534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-class-fields.md
4559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
4535
4560
  */
4536
4561
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
4537
4562
  /**
4538
4563
  * Prefer using `Element#classList.toggle()` to toggle class names.
4539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-classlist-toggle.md
4564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
4540
4565
  */
4541
4566
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
4542
4567
  /**
4543
4568
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-code-point.md
4569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
4545
4570
  */
4546
4571
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
4547
4572
  /**
4548
4573
  * Prefer early continues over whole-loop conditional wrapping.
4549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-continue.md
4574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
4550
4575
  */
4551
4576
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
4552
4577
  /**
4553
4578
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-date-now.md
4579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
4555
4580
  */
4556
4581
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
4557
4582
  /**
4558
4583
  * Prefer default parameters over reassignment.
4559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-default-parameters.md
4584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
4560
4585
  */
4561
4586
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
4562
4587
  /**
4563
4588
  * Prefer direct iteration over default iterator method calls.
4564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-direct-iteration.md
4589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
4565
4590
  */
4566
4591
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
4567
4592
  /**
4568
4593
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
4569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dispose.md
4594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
4570
4595
  */
4571
4596
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
4572
4597
  /**
4573
4598
  * Prefer `Element#append()` over `Node#appendChild()`.
4574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-append.md
4599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
4575
4600
  */
4576
4601
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
4577
4602
  /**
4578
4603
  * Renamed to `unicorn/dom-node-dataset`.
4579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
4604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
4580
4605
  * @deprecated
4581
4606
  */
4582
4607
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
4583
4608
  /**
4584
4609
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
4585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-html-methods.md
4610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
4586
4611
  */
4587
4612
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
4588
4613
  /**
4589
4614
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-remove.md
4615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
4591
4616
  */
4592
4617
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
4618
+ /**
4619
+ * Prefer `.replaceChildren()` when emptying DOM children.
4620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
4621
+ */
4622
+ 'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
4593
4623
  /**
4594
4624
  * Prefer `.textContent` over `.innerText`.
4595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-dom-node-text-content.md
4625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
4596
4626
  */
4597
4627
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
4598
4628
  /**
4599
4629
  * Prefer early returns over full-function conditional wrapping.
4600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-early-return.md
4630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
4601
4631
  */
4602
4632
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
4603
4633
  /**
4604
4634
  * Prefer `else if` over adjacent `if` statements with related conditions.
4605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-else-if.md
4635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
4606
4636
  */
4607
4637
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
4638
+ /**
4639
+ * Prefer `Error.isError()` when checking for errors.
4640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
4641
+ */
4642
+ 'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
4608
4643
  /**
4609
4644
  * Prefer `EventTarget` over `EventEmitter`.
4610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-event-target.md
4645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
4611
4646
  */
4612
4647
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
4613
4648
  /**
4614
4649
  * Prefer `export…from` when re-exporting.
4615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-export-from.md
4650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
4616
4651
  */
4617
4652
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
4618
4653
  /**
4619
4654
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
4620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-flat-math-min-max.md
4655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
4621
4656
  */
4622
4657
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
4623
4658
  /**
4624
4659
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
4625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-get-or-insert-computed.md
4660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
4626
4661
  */
4627
4662
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
4628
4663
  /**
4629
4664
  * Prefer global numeric constants over `Number` static properties.
4630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-number-constants.md
4665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
4631
4666
  */
4632
4667
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
4633
4668
  /**
4634
4669
  * Prefer `globalThis` over `window`, `self`, and `global`.
4635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-global-this.md
4670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
4636
4671
  */
4637
4672
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
4638
4673
  /**
4639
4674
  * Prefer `.has()` when checking existence.
4640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-has-check.md
4675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
4641
4676
  */
4642
4677
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
4643
4678
  /**
4644
4679
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
4645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-hoisting-branch-code.md
4680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
4646
4681
  */
4647
4682
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
4648
4683
  /**
4649
4684
  * Prefer HTTPS over HTTP.
4650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-https.md
4685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
4651
4686
  */
4652
4687
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
4653
4688
  /**
4654
4689
  * Prefer identifiers over string literals in import and export specifiers.
4655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
4690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
4656
4691
  */
4657
4692
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
4658
4693
  /**
4659
4694
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-import-meta-properties.md
4695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
4661
4696
  */
4662
4697
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
4663
4698
  /**
4664
4699
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes.md
4700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
4666
4701
  */
4667
4702
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
4668
4703
  /**
4669
4704
  * Prefer `.includes()` over repeated equality comparisons.
4670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
4705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
4671
4706
  */
4672
4707
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
4673
4708
  /**
4674
4709
  * Prefer passing iterables directly to constructors instead of filling empty collections.
4675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterable-in-constructor.md
4710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
4676
4711
  */
4677
4712
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
4678
4713
  /**
4679
4714
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
4680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-concat.md
4715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
4681
4716
  */
4682
4717
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
4683
4718
  /**
4684
4719
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
4685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array.md
4720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
4686
4721
  */
4687
4722
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
4688
4723
  /**
4689
4724
  * Prefer moving `.toArray()` to the end of iterator helper chains.
4690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-iterator-to-array-at-end.md
4725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
4691
4726
  */
4692
4727
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
4693
4728
  /**
4694
4729
  * Renamed to `unicorn/consistent-json-file-read`.
4695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
4730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
4696
4731
  * @deprecated
4697
4732
  */
4698
4733
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
4699
4734
  /**
4700
4735
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
4701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-keyboard-event-key.md
4736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
4702
4737
  */
4703
4738
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
4704
4739
  /**
4705
4740
  * Prefer `location.assign()` over assigning to `location.href`.
4706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-location-assign.md
4741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
4707
4742
  */
4708
4743
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
4709
4744
  /**
4710
4745
  * Prefer using a logical operator over a ternary.
4711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4712
4747
  */
4713
4748
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
4714
4749
  /**
4715
4750
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
4716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-map-from-entries.md
4751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
4717
4752
  */
4718
4753
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
4719
4754
  /**
4720
4755
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
4721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-abs.md
4756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
4722
4757
  */
4723
4758
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
4724
4759
  /**
4725
4760
  * Prefer `Math` constants over their approximate numeric values.
4726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-constants.md
4761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
4727
4762
  */
4728
4763
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
4729
4764
  /**
4730
4765
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-min-max.md
4766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
4732
4767
  */
4733
4768
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
4734
4769
  /**
4735
4770
  * Prefer `Math.trunc()` for truncating numbers.
4736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-math-trunc.md
4771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
4737
4772
  */
4738
4773
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
4739
4774
  /**
4740
4775
  * Prefer moving ternaries into the minimal varying part of an expression.
4741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-minimal-ternary.md
4776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
4742
4777
  */
4743
4778
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
4744
4779
  /**
4745
4780
  * Prefer modern DOM APIs.
4746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-dom-apis.md
4781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
4747
4782
  */
4748
4783
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
4749
4784
  /**
4750
4785
  * Prefer modern `Math` APIs over legacy patterns.
4751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-math-apis.md
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
4752
4787
  */
4753
4788
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
4754
4789
  /**
4755
4790
  * Prefer JavaScript modules (ESM) over CommonJS.
4756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-module.md
4791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
4757
4792
  */
4758
4793
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
4759
4794
  /**
4760
4795
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-native-coercion-functions.md
4796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
4762
4797
  */
4763
4798
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
4764
4799
  /**
4765
4800
  * Prefer negative index over `.length - index` when possible.
4766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-negative-index.md
4801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
4767
4802
  */
4768
4803
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
4769
4804
  /**
4770
4805
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-node-protocol.md
4806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
4772
4807
  */
4773
4808
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
4774
4809
  /**
4775
4810
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
4776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-coercion.md
4811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
4777
4812
  */
4778
4813
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
4779
4814
  /**
4780
4815
  * Prefer `Number.isSafeInteger()` over integer checks.
4781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-is-safe-integer.md
4816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
4782
4817
  */
4783
4818
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
4784
4819
  /**
4785
4820
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
4786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-number-properties.md
4821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
4787
4822
  */
4788
4823
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4789
4824
  /**
4790
4825
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
4791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-define-properties.md
4826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
4792
4827
  */
4793
4828
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
4794
4829
  /**
4795
4830
  * Prefer object destructuring defaults over default object literals with spread.
4796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-destructuring-defaults.md
4831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
4797
4832
  */
4798
4833
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
4799
4834
  /**
4800
4835
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-from-entries.md
4836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
4802
4837
  */
4803
4838
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4804
4839
  /**
4805
4840
  * Prefer the most specific `Object` iterable method.
4806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-object-iterable-methods.md
4841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
4807
4842
  */
4808
4843
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
4844
+ /**
4845
+ * Prefer observer APIs over resize and scroll listeners with layout reads.
4846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
4847
+ */
4848
+ 'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
4809
4849
  /**
4810
4850
  * Prefer omitting the `catch` binding parameter.
4811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-optional-catch-binding.md
4851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
4812
4852
  */
4813
4853
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
4814
4854
  /**
4815
4855
  * Prefer `Path2D` for repeatedly drawn canvas paths.
4816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-path2d.md
4856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
4817
4857
  */
4818
4858
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
4819
4859
  /**
4820
4860
  * Prefer private class fields over the underscore-prefix convention.
4821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-private-class-fields.md
4861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
4822
4862
  */
4823
4863
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
4864
+ /**
4865
+ * Prefer `Promise.try()` over promise-wrapping boilerplate.
4866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
4867
+ */
4868
+ 'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
4824
4869
  /**
4825
4870
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
4826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-promise-with-resolvers.md
4871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
4827
4872
  */
4828
4873
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
4829
4874
  /**
4830
4875
  * Prefer borrowing methods from the prototype instead of the instance.
4831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-prototype-methods.md
4876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
4832
4877
  */
4833
4878
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
4834
4879
  /**
4835
4880
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
4836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-query-selector.md
4881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
4837
4882
  */
4838
4883
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
4839
4884
  /**
4840
4885
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
4841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-queue-microtask.md
4886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
4842
4887
  */
4843
4888
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
4844
4889
  /**
4845
4890
  * Prefer `Reflect.apply()` over `Function#apply()`.
4846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-reflect-apply.md
4891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
4847
4892
  */
4848
4893
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
4849
4894
  /**
4850
4895
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
4851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-regexp-escape.md
4896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
4852
4897
  */
4853
4898
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
4854
4899
  /**
4855
4900
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
4856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-regexp-test.md
4901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
4857
4902
  */
4858
4903
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
4859
4904
  /**
4860
4905
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
4861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-response-static-json.md
4906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
4862
4907
  */
4863
4908
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
4864
4909
  /**
4865
4910
  * Prefer `:scope` when using element query selector methods.
4866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-scoped-selector.md
4911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
4867
4912
  */
4868
4913
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
4869
4914
  /**
4870
4915
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-has.md
4916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
4872
4917
  */
4873
4918
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
4919
+ /**
4920
+ * Prefer `Set` methods for Set operations.
4921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
4922
+ */
4923
+ 'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
4874
4924
  /**
4875
4925
  * Prefer using `Set#size` instead of `Array#length`.
4876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-set-size.md
4926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
4877
4927
  */
4878
4928
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
4879
4929
  /**
4880
4930
  * Prefer arrow function properties over methods with a single return.
4881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-short-arrow-method.md
4931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
4882
4932
  */
4883
4933
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
4884
4934
  /**
4885
4935
  * Prefer simple conditions first in logical expressions.
4886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-condition-first.md
4936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
4887
4937
  */
4888
4938
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
4889
4939
  /**
4890
4940
  * Prefer a simple comparison function for `Array#sort()`.
4891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-simple-sort-comparator.md
4941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
4892
4942
  */
4893
4943
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
4894
4944
  /**
4895
4945
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
4896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-array-predicate.md
4946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
4897
4947
  */
4898
4948
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
4899
4949
  /**
4900
4950
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-call.md
4951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
4902
4952
  */
4903
4953
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
4904
4954
  /**
4905
4955
  * Prefer a single object destructuring declaration per local const source.
4906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-object-destructuring.md
4956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
4907
4957
  */
4908
4958
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
4909
4959
  /**
4910
4960
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
4911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-single-replace.md
4961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
4912
4962
  */
4913
4963
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
4914
4964
  /**
4915
4965
  * Prefer declaring variables in the smallest possible scope.
4916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-smaller-scope.md
4966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
4917
4967
  */
4918
4968
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
4919
4969
  /**
4920
4970
  * Prefer `String#split()` with a limit.
4921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-split-limit.md
4971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
4922
4972
  */
4923
4973
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
4924
4974
  /**
4925
4975
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
4926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-spread.md
4976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
4927
4977
  */
4928
4978
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
4929
4979
  /**
4930
4980
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
4931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-match-all.md
4981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
4932
4982
  */
4933
4983
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
4934
4984
  /**
4935
4985
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
4936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-pad-start-end.md
4986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
4937
4987
  */
4938
4988
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
4939
4989
  /**
4940
4990
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-raw.md
4991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
4942
4992
  */
4943
4993
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
4944
4994
  /**
4945
4995
  * Prefer `String#repeat()` for repeated whitespace.
4946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-repeat.md
4996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
4947
4997
  */
4948
4998
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
4949
4999
  /**
4950
5000
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
4951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-replace-all.md
5001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
4952
5002
  */
4953
5003
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
4954
5004
  /**
4955
5005
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-slice.md
5006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
4957
5007
  */
4958
5008
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
4959
5009
  /**
4960
5010
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
4961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-starts-ends-with.md
5011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
4962
5012
  */
4963
5013
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
4964
5014
  /**
4965
5015
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-string-trim-start-end.md
5016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
4967
5017
  */
4968
5018
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
4969
5019
  /**
4970
5020
  * Prefer using `structuredClone` to create a deep clone.
4971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-structured-clone.md
5021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
4972
5022
  */
4973
5023
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4974
5024
  /**
4975
5025
  * Prefer `switch` over multiple `else-if`.
4976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-switch.md
5026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
4977
5027
  */
4978
5028
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
4979
5029
  /**
4980
5030
  * Prefer `Temporal` over `Date`.
4981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-temporal.md
5031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
4982
5032
  */
4983
5033
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
4984
5034
  /**
4985
5035
  * Prefer ternary expressions over simple `if` statements that return or assign values.
4986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-ternary.md
5036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
4987
5037
  */
4988
5038
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5039
+ /**
5040
+ * Prefer using `Element#toggleAttribute()` to toggle attributes.
5041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
5042
+ */
5043
+ 'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
4989
5044
  /**
4990
5045
  * Prefer top-level await over top-level promises and async function calls.
4991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-top-level-await.md
5046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
4992
5047
  */
4993
5048
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
4994
5049
  /**
4995
5050
  * Enforce throwing `TypeError` in type checking conditions.
4996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-type-error.md
5051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
4997
5052
  */
4998
5053
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
4999
5054
  /**
5000
5055
  * Require type literals to be last in union types.
5001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-type-literal-last.md
5056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
5002
5057
  */
5003
5058
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
5004
5059
  /**
5005
5060
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
5006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-uint8array-base64.md
5061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
5007
5062
  */
5008
5063
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
5009
5064
  /**
5010
5065
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
5011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-unary-minus.md
5066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
5012
5067
  */
5013
5068
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
5014
5069
  /**
5015
5070
  * Prefer Unicode code point escapes over legacy escape sequences.
5016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-unicode-code-point-escapes.md
5071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
5017
5072
  */
5018
5073
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
5019
5074
  /**
5020
5075
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
5021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-url-can-parse.md
5076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
5022
5077
  */
5023
5078
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
5024
5079
  /**
5025
5080
  * Prefer `URL#href` over stringifying a `URL`.
5026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-url-href.md
5081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
5027
5082
  */
5028
5083
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
5084
+ /**
5085
+ * Prefer `URLSearchParams` over manually splitting query strings.
5086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
5087
+ */
5088
+ 'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
5029
5089
  /**
5030
5090
  * Prefer putting the condition in the while statement.
5031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-while-loop-condition.md
5091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
5032
5092
  */
5033
5093
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
5034
5094
  /**
5035
5095
  * Renamed to `unicorn/name-replacements`.
5036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
5096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
5037
5097
  * @deprecated
5038
5098
  */
5039
5099
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
5040
5100
  /**
5041
5101
  * Enforce consistent relative URL style.
5042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/relative-url-style.md
5102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
5043
5103
  */
5044
5104
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5045
5105
  /**
5046
5106
  * Enforce using the separator argument with `Array#join()`.
5047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-join-separator.md
5107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
5048
5108
  */
5049
5109
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5050
5110
  /**
5051
5111
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
5052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-array-sort-compare.md
5112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
5053
5113
  */
5054
5114
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
5055
5115
  /**
5056
5116
  * Require `CSS.escape()` for interpolated values in CSS selectors.
5057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-css-escape.md
5117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
5058
5118
  */
5059
5119
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
5060
5120
  /**
5061
5121
  * Require non-empty module attributes for imports and exports
5062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-attributes.md
5122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
5063
5123
  */
5064
5124
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
5065
5125
  /**
5066
5126
  * Require non-empty specifier list in import and export statements.
5067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-module-specifiers.md
5127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
5068
5128
  */
5069
5129
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5070
5130
  /**
5071
5131
  * Enforce using the digits argument with `Number#toFixed()`.
5072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5073
5133
  */
5074
5134
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5075
5135
  /**
5076
5136
  * Require passive event listeners for high-frequency events.
5077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-passive-events.md
5137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
5078
5138
  */
5079
5139
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
5080
5140
  /**
5081
5141
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-post-message-target-origin.md
5142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
5083
5143
  */
5084
5144
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5085
5145
  /**
5086
5146
  * Require boolean-returning Proxy traps to return booleans.
5087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/require-proxy-trap-boolean-return.md
5147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
5088
5148
  */
5089
5149
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
5090
5150
  /**
5091
5151
  * Enforce better string content.
5092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/string-content.md
5152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
5093
5153
  */
5094
5154
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5095
5155
  /**
5096
5156
  * Enforce consistent brace style for `case` clauses.
5097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-braces.md
5157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
5098
5158
  */
5099
5159
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
5100
5160
  /**
5101
5161
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
5102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/switch-case-break-position.md
5162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
5103
5163
  */
5104
5164
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
5105
5165
  /**
5106
5166
  * Fix whitespace-insensitive template indentation.
5107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/template-indent.md
5167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
5108
5168
  */
5109
5169
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5110
5170
  /**
5111
5171
  * Enforce consistent case for text encoding identifiers.
5112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/text-encoding-identifier-case.md
5172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
5113
5173
  */
5114
5174
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
5115
5175
  /**
5116
5176
  * Require `new` when creating an error.
5117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/throw-new-error.md
5177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
5118
5178
  */
5119
5179
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5120
5180
  /**
5121
5181
  * Limit the complexity of `try` blocks.
5122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/try-complexity.md
5182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
5123
5183
  */
5124
5184
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
5125
5185
  /**
@@ -11591,6 +11651,7 @@ type UnicornConsistentBooleanName = [] | [{
11591
11651
  prefixes?: {
11592
11652
  [k: string]: boolean | undefined;
11593
11653
  };
11654
+ ignore?: unknown[];
11594
11655
  }]; // ----- unicorn/consistent-class-member-order -----
11595
11656
  type UnicornConsistentClassMemberOrder = [] | [{
11596
11657
  order?: [("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method")];
@@ -11833,6 +11894,7 @@ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
11833
11894
  minimumComparisons?: number;
11834
11895
  }]; // ----- unicorn/prefer-minimal-ternary -----
11835
11896
  type UnicornPreferMinimalTernary = [] | [{
11897
+ checkVaryingCallee?: boolean;
11836
11898
  checkComputedMemberAccess?: boolean;
11837
11899
  }]; // ----- unicorn/prefer-number-properties -----
11838
11900
  type UnicornPreferNumberProperties = [] | [{