@lichthagel/eslint-config 1.0.38 → 1.0.40

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
@@ -1891,7 +1891,7 @@ interface RuleOptions {
1891
1891
  * Disallow expressions where the operation doesn't affect the value
1892
1892
  * @see https://eslint.org/docs/latest/rules/no-constant-binary-expression
1893
1893
  */
1894
- 'no-constant-binary-expression'?: Linter.RuleEntry<[]>;
1894
+ 'no-constant-binary-expression'?: Linter.RuleEntry<NoConstantBinaryExpression>;
1895
1895
  /**
1896
1896
  * Disallow constant expressions in conditions
1897
1897
  * @see https://eslint.org/docs/latest/rules/no-constant-condition
@@ -3183,6 +3183,11 @@ interface RuleOptions {
3183
3183
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-add-event-listener/
3184
3184
  */
3185
3185
  'svelte/no-add-event-listener'?: Linter.RuleEntry<[]>;
3186
+ /**
3187
+ * disallow the use of `{@const}` in favor of `{const ...}` declaration tags
3188
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-const-tags/
3189
+ */
3190
+ 'svelte/no-at-const-tags'?: Linter.RuleEntry<[]>;
3186
3191
  /**
3187
3192
  * disallow the use of `{@debug}`
3188
3193
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/
@@ -3492,7 +3497,7 @@ interface RuleOptions {
3492
3497
  */
3493
3498
  'svelte/valid-each-key'?: Linter.RuleEntry<[]>;
3494
3499
  /**
3495
- * disallow props other than data or errors in SvelteKit page components.
3500
+ * disallow invalid props in SvelteKit route components.
3496
3501
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/
3497
3502
  */
3498
3503
  'svelte/valid-prop-names-in-kit-pages'?: Linter.RuleEntry<[]>;
@@ -3566,1560 +3571,1670 @@ interface RuleOptions {
3566
3571
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
3567
3572
  /**
3568
3573
  * Prefer better DOM traversal APIs.
3569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/better-dom-traversing.md
3574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/better-dom-traversing.md
3570
3575
  */
3571
3576
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
3572
3577
  /**
3573
3578
  * 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
3579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#better-regex
3575
3580
  * @deprecated
3576
3581
  */
3577
3582
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
3578
3583
  /**
3579
3584
  * 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
3585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/catch-error-name.md
3581
3586
  */
3582
3587
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
3583
3588
  /**
3584
3589
  * 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
3590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/class-reference-in-static-methods.md
3586
3591
  */
3587
3592
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
3588
3593
  /**
3589
3594
  * Enforce better comment content.
3590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/comment-content.md
3595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/comment-content.md
3591
3596
  */
3592
3597
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
3593
3598
  /**
3594
3599
  * 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
3600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-assert.md
3596
3601
  */
3597
3602
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
3598
3603
  /**
3599
3604
  * 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
3605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-boolean-name.md
3601
3606
  */
3602
3607
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
3603
3608
  /**
3604
3609
  * 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
3610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-class-member-order.md
3606
3611
  */
3607
3612
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
3608
3613
  /**
3609
3614
  * 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
3615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-compound-words.md
3611
3616
  */
3612
3617
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
3613
3618
  /**
3614
3619
  * 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
3620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-conditional-object-spread.md
3616
3621
  */
3617
3622
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
3618
3623
  /**
3619
3624
  * 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
3625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-date-clone.md
3621
3626
  */
3622
3627
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
3623
3628
  /**
3624
3629
  * Use destructured variables over properties.
3625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-destructuring.md
3630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-destructuring.md
3626
3631
  */
3627
3632
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
3628
3633
  /**
3629
3634
  * 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
3635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-empty-array-spread.md
3631
3636
  */
3632
3637
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
3633
3638
  /**
3634
3639
  * 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
3640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-existence-index-check.md
3636
3641
  */
3637
3642
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
3638
3643
  /**
3639
3644
  * 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
3645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-export-decorator-position.md
3641
3646
  */
3642
3647
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
3643
3648
  /**
3644
3649
  * 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
3650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-scoping.md
3646
3651
  */
3647
3652
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
3648
3653
  /**
3649
3654
  * Enforce function syntax by role.
3650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/consistent-function-style.md
3655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-function-style.md
3651
3656
  */
3652
3657
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
3653
3658
  /**
3654
3659
  * 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
3660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-json-file-read.md
3656
3661
  */
3657
3662
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
3658
3663
  /**
3659
3664
  * 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
3665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-optional-chaining.md
3661
3666
  */
3662
3667
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
3663
3668
  /**
3664
3669
  * 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
3670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-template-literal-escape.md
3666
3671
  */
3667
3672
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
3673
+ /**
3674
+ * Enforce consistent labels on tuple type elements.
3675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/consistent-tuple-labels.md
3676
+ */
3677
+ 'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
3668
3678
  /**
3669
3679
  * Enforce correct `Error` subclassing.
3670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/custom-error-definition.md
3680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/custom-error-definition.md
3671
3681
  */
3672
3682
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
3673
3683
  /**
3674
3684
  * Enforce consistent default export declarations.
3675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/default-export-style.md
3685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/default-export-style.md
3676
3686
  */
3677
3687
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
3678
3688
  /**
3679
3689
  * 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
3690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/dom-node-dataset.md
3681
3691
  */
3682
3692
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
3683
3693
  /**
3684
3694
  * Enforce no spaces between braces.
3685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/empty-brace-spaces.md
3695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/empty-brace-spaces.md
3686
3696
  */
3687
3697
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
3688
3698
  /**
3689
3699
  * 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
3700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/error-message.md
3691
3701
  */
3692
3702
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
3693
3703
  /**
3694
3704
  * 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
3705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/escape-case.md
3696
3706
  */
3697
3707
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
3698
3708
  /**
3699
3709
  * 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
3710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/expiring-todo-comments.md
3701
3711
  */
3702
3712
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
3703
3713
  /**
3704
3714
  * 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
3715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-length-check.md
3706
3716
  */
3707
3717
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
3708
3718
  /**
3709
3719
  * 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
3720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/explicit-timer-delay.md
3711
3721
  */
3712
3722
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
3713
3723
  /**
3714
3724
  * 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
3725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/filename-case.md
3716
3726
  */
3717
3727
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
3718
3728
  /**
3719
3729
  * 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
3730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/id-match.md
3721
3731
  */
3722
3732
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
3723
3733
  /**
3724
3734
  * Enforce specific import styles per module.
3725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/import-style.md
3735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/import-style.md
3726
3736
  */
3727
3737
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
3728
3738
  /**
3729
3739
  * 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
3740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/isolated-functions.md
3731
3741
  */
3732
3742
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
3733
3743
  /**
3734
3744
  * 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
3745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/logical-assignment-operators.md
3736
3746
  */
3737
3747
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
3738
3748
  /**
3739
3749
  * 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
3750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/max-nested-calls.md
3741
3751
  */
3742
3752
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
3743
3753
  /**
3744
3754
  * 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
3755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/name-replacements.md
3746
3756
  */
3747
3757
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
3748
3758
  /**
3749
3759
  * 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
3760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/new-for-builtins.md
3751
3761
  */
3752
3762
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
3753
3763
  /**
3754
3764
  * 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
3765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-abusive-eslint-disable.md
3756
3766
  */
3757
3767
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
3758
3768
  /**
3759
3769
  * 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
3770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accessor-recursion.md
3761
3771
  */
3762
3772
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
3763
3773
  /**
3764
3774
  * 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
3775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-accidental-bitwise-operator.md
3766
3776
  */
3767
3777
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
3768
3778
  /**
3769
3779
  * 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
3780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-anonymous-default-export.md
3771
3781
  */
3772
3782
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
3773
3783
  /**
3774
3784
  * 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
3785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-callback-reference.md
3776
3786
  */
3777
3787
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
3778
3788
  /**
3779
3789
  * 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
3790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-concat-in-loop.md
3781
3791
  */
3782
3792
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
3783
3793
  /**
3784
3794
  * 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
3795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-fill-with-reference-type.md
3786
3796
  */
3787
3797
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
3788
3798
  /**
3789
3799
  * 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
3800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-from-fill.md
3791
3801
  */
3792
3802
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
3793
3803
  /**
3794
3804
  * 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
3805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-front-mutation.md
3796
3806
  */
3797
3807
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
3798
3808
  /**
3799
3809
  * 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
3810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-method-this-argument.md
3801
3811
  */
3802
3812
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
3803
3813
  /**
3804
3814
  * 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
3815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
3806
3816
  * @deprecated
3807
3817
  */
3808
3818
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
3809
3819
  /**
3810
3820
  * 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
3821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reduce.md
3812
3822
  */
3813
3823
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
3814
3824
  /**
3815
3825
  * 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
3826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-reverse.md
3817
3827
  */
3818
3828
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
3819
3829
  /**
3820
3830
  * 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
3831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort.md
3822
3832
  */
3823
3833
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
3824
3834
  /**
3825
3835
  * 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
3836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-sort-for-min-max.md
3827
3837
  */
3828
3838
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
3829
3839
  /**
3830
3840
  * 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
3841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-array-splice.md
3832
3842
  */
3833
3843
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
3834
3844
  /**
3835
3845
  * 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
3846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
3837
3847
  */
3838
3848
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
3849
+ /**
3850
+ * Disallow async functions as `Promise#finally()` callbacks.
3851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-async-promise-finally.md
3852
+ */
3853
+ 'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
3839
3854
  /**
3840
3855
  * 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
3856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-expression-member.md
3842
3857
  */
3843
3858
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
3844
3859
  /**
3845
3860
  * 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
3861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-await-in-promise-methods.md
3847
3862
  */
3848
3863
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
3849
3864
  /**
3850
3865
  * 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
3866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-blob-to-file.md
3852
3867
  */
3853
3868
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
3854
3869
  /**
3855
3870
  * 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
3871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-boolean-sort-comparator.md
3857
3872
  */
3858
3873
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
3859
3874
  /**
3860
3875
  * 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
3876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-break-in-nested-loop.md
3862
3877
  */
3863
3878
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
3864
3879
  /**
3865
3880
  * 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
3881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-canvas-to-image.md
3867
3882
  */
3868
3883
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
3869
3884
  /**
3870
3885
  * 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
3886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-chained-comparison.md
3872
3887
  */
3873
3888
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
3874
3889
  /**
3875
3890
  * 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
3891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-collection-bracket-access.md
3877
3892
  */
3878
3893
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
3879
3894
  /**
3880
3895
  * 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
3896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-computed-property-existence-check.md
3882
3897
  */
3883
3898
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
3884
3899
  /**
3885
3900
  * 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
3901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-splice.md
3887
3902
  */
3888
3903
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
3889
3904
  /**
3890
3905
  * 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
3906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-confusing-array-with.md
3892
3907
  */
3893
3908
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
3894
3909
  /**
3895
3910
  * 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
3911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-console-spaces.md
3897
3912
  */
3898
3913
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
3899
3914
  /**
3900
3915
  * 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
3916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-constant-zero-expression.md
3902
3917
  */
3903
3918
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
3904
3919
  /**
3905
3920
  * 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
3921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-declarations-before-early-exit.md
3907
3922
  */
3908
3923
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
3909
3924
  /**
3910
3925
  * 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
3926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-document-cookie.md
3912
3927
  */
3913
3928
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
3914
3929
  /**
3915
3930
  * 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
3931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-double-comparison.md
3917
3932
  */
3918
3933
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
3919
3934
  /**
3920
3935
  * 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
3936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-if-branches.md
3922
3937
  */
3923
3938
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
3924
3939
  /**
3925
3940
  * 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
3941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-logical-operands.md
3927
3942
  */
3928
3943
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
3929
3944
  /**
3930
3945
  * 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
3946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-loops.md
3932
3947
  */
3933
3948
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
3934
3949
  /**
3935
3950
  * 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
3951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-duplicate-set-values.md
3937
3952
  */
3938
3953
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
3939
3954
  /**
3940
3955
  * Disallow empty files.
3941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-empty-file.md
3956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-empty-file.md
3942
3957
  */
3943
3958
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
3944
3959
  /**
3945
3960
  * 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
3961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-error-property-assignment.md
3947
3962
  */
3948
3963
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
3949
3964
  /**
3950
3965
  * Disallow exports in scripts.
3951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-exports-in-scripts.md
3966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-exports-in-scripts.md
3952
3967
  */
3953
3968
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
3954
3969
  /**
3955
3970
  * 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
3971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-each.md
3957
3972
  */
3958
3973
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
3959
3974
  /**
3960
3975
  * 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
3976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-for-loop.md
3962
3977
  */
3963
3978
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
3964
3979
  /**
3965
3980
  * 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
3981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-global-object-property-assignment.md
3967
3982
  */
3968
3983
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
3969
3984
  /**
3970
3985
  * 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
3986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
3972
3987
  * @deprecated
3973
3988
  */
3974
3989
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
3975
3990
  /**
3976
3991
  * 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
3992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-immediate-mutation.md
3978
3993
  */
3979
3994
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
3980
3995
  /**
3981
3996
  * 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
3997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-impossible-length-comparison.md
3983
3998
  */
3984
3999
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
3985
4000
  /**
3986
4001
  * 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
4002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-query-selector.md
3988
4003
  */
3989
4004
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
3990
4005
  /**
3991
4006
  * 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
4007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-incorrect-template-string-interpolation.md
3993
4008
  */
3994
4009
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
3995
4010
  /**
3996
4011
  * 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
4012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
3998
4013
  * @deprecated
3999
4014
  */
4000
4015
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
4001
4016
  /**
4002
4017
  * 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
4018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-instanceof-builtins.md
4004
4019
  */
4005
4020
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4006
4021
  /**
4007
4022
  * 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
4023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-argument-count.md
4009
4024
  */
4010
4025
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
4011
4026
  /**
4012
4027
  * 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
4028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-character-comparison.md
4014
4029
  */
4015
4030
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
4016
4031
  /**
4017
4032
  * 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
4033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-fetch-options.md
4019
4034
  */
4020
4035
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
4021
4036
  /**
4022
4037
  * 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
4038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-file-input-accept.md
4024
4039
  */
4025
4040
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
4026
4041
  /**
4027
4042
  * 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
4043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-remove-event-listener.md
4029
4044
  */
4030
4045
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
4046
+ /**
4047
+ * Disallow invalid implementations of well-known symbol methods.
4048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
4049
+ */
4050
+ 'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
4031
4051
  /**
4032
4052
  * 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
4053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-keyword-prefix.md
4034
4054
  */
4035
4055
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4036
4056
  /**
4037
4057
  * 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
4058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-current-target-access.md
4039
4059
  */
4040
4060
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
4061
+ /**
4062
+ * Disallow event-control method calls after the synchronous event dispatch has finished.
4063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-late-event-control.md
4064
+ */
4065
+ 'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
4041
4066
  /**
4042
4067
  * 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
4068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4044
4069
  * @deprecated
4045
4070
  */
4046
4071
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
4047
4072
  /**
4048
4073
  * 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
4074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-lonely-if.md
4050
4075
  */
4051
4076
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
4052
4077
  /**
4053
4078
  * 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
4079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-loop-iterable-mutation.md
4055
4080
  */
4056
4081
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
4057
4082
  /**
4058
4083
  * 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
4084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-magic-array-flat-depth.md
4060
4085
  */
4061
4086
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
4062
4087
  /**
4063
4088
  * Disallow manually wrapped comments.
4064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-manually-wrapped-comments.md
4089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-manually-wrapped-comments.md
4065
4090
  */
4066
4091
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
4067
4092
  /**
4068
4093
  * 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
4094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-mismatched-map-key.md
4070
4095
  */
4071
4096
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
4072
4097
  /**
4073
4098
  * 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
4099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-misrefactored-assignment.md
4075
4100
  */
4076
4101
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
4077
4102
  /**
4078
4103
  * 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
4104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-named-default.md
4080
4105
  */
4081
4106
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
4082
4107
  /**
4083
4108
  * 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
4109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-array-predicate.md
4085
4110
  */
4086
4111
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
4087
4112
  /**
4088
4113
  * Disallow negated comparisons.
4089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-comparison.md
4114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-comparison.md
4090
4115
  */
4091
4116
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
4092
4117
  /**
4093
4118
  * Disallow negated conditions.
4094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-negated-condition.md
4119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negated-condition.md
4095
4120
  */
4096
4121
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
4097
4122
  /**
4098
4123
  * 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
4124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-negation-in-equality-check.md
4100
4125
  */
4101
4126
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
4102
4127
  /**
4103
4128
  * Disallow nested ternary expressions.
4104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-nested-ternary.md
4129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nested-ternary.md
4105
4130
  */
4106
4131
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
4107
4132
  /**
4108
4133
  * Disallow `new Array()`.
4109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-new-array.md
4134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-array.md
4110
4135
  */
4111
4136
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
4112
4137
  /**
4113
4138
  * 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
4139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-new-buffer.md
4115
4140
  */
4116
4141
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
4117
4142
  /**
4118
4143
  * 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
4144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-non-function-verb-prefix.md
4120
4145
  */
4121
4146
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
4122
4147
  /**
4123
4148
  * 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
4149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-nonstandard-builtin-properties.md
4125
4150
  */
4126
4151
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
4127
4152
  /**
4128
4153
  * 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
4154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-null.md
4130
4155
  */
4131
4156
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
4132
4157
  /**
4133
4158
  * 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
4159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-as-default-parameter.md
4135
4160
  */
4136
4161
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
4137
4162
  /**
4138
4163
  * 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
4164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-object-methods-with-collections.md
4140
4165
  */
4141
4166
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
4142
4167
  /**
4143
4168
  * 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
4169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
4145
4170
  */
4146
4171
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
4147
4172
  /**
4148
4173
  * Disallow `process.exit()`.
4149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-process-exit.md
4174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-process-exit.md
4150
4175
  */
4151
4176
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
4152
4177
  /**
4153
4178
  * 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
4179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-redundant-comparison.md
4155
4180
  */
4156
4181
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
4157
4182
  /**
4158
4183
  * 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
4184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-return-array-push.md
4160
4185
  */
4161
4186
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
4162
4187
  /**
4163
4188
  * 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
4189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-selector-as-dom-name.md
4165
4190
  */
4166
4191
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
4167
4192
  /**
4168
4193
  * 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
4194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-single-promise-in-promise-methods.md
4170
4195
  */
4171
4196
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4172
4197
  /**
4173
4198
  * 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
4199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-static-only-class.md
4175
4200
  */
4176
4201
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4177
4202
  /**
4178
4203
  * 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
4204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-subtraction-comparison.md
4180
4205
  */
4181
4206
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
4182
4207
  /**
4183
4208
  * Disallow `then` property.
4184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-thenable.md
4209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-thenable.md
4185
4210
  */
4186
4211
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4187
4212
  /**
4188
4213
  * 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
4214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-assignment.md
4190
4215
  */
4191
4216
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4192
4217
  /**
4193
4218
  * 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
4219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-this-outside-of-class.md
4195
4220
  */
4196
4221
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
4197
4222
  /**
4198
4223
  * 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
4224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-assignment-in-function.md
4200
4225
  */
4201
4226
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
4202
4227
  /**
4203
4228
  * 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
4229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-top-level-side-effects.md
4205
4230
  */
4206
4231
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
4207
4232
  /**
4208
4233
  * Disallow comparing `undefined` using `typeof`.
4209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-typeof-undefined.md
4234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-typeof-undefined.md
4210
4235
  */
4211
4236
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4212
4237
  /**
4213
4238
  * 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
4239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-uncalled-method.md
4215
4240
  */
4216
4241
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
4217
4242
  /**
4218
4243
  * 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
4244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-undeclared-class-members.md
4220
4245
  */
4221
4246
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
4222
4247
  /**
4223
4248
  * 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
4249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4225
4250
  */
4226
4251
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
4252
+ /**
4253
+ * Disallow `Array#flatMap()` callbacks that only wrap a single item.
4254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-flat-map.md
4255
+ */
4256
+ 'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
4227
4257
  /**
4228
4258
  * 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
4259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-array-splice-count.md
4230
4260
  */
4231
4261
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
4232
4262
  /**
4233
4263
  * Disallow awaiting non-promise values.
4234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-await.md
4264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-await.md
4235
4265
  */
4236
4266
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
4237
4267
  /**
4238
4268
  * 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
4269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-boolean-comparison.md
4240
4270
  */
4241
4271
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
4272
+ /**
4273
+ * Disallow unnecessary options in `fetch()` and `new Request()`.
4274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-fetch-options.md
4275
+ */
4276
+ 'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
4242
4277
  /**
4243
4278
  * Disallow unnecessary `globalThis` references.
4244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unnecessary-global-this.md
4279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-global-this.md
4245
4280
  */
4246
4281
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
4247
4282
  /**
4248
4283
  * 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
4284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-nested-ternary.md
4250
4285
  */
4251
4286
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
4252
4287
  /**
4253
4288
  * 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
4289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-polyfills.md
4255
4290
  */
4256
4291
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
4257
4292
  /**
4258
4293
  * 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
4294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-slice-end.md
4260
4295
  */
4261
4296
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
4262
4297
  /**
4263
4298
  * 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
4299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unnecessary-splice.md
4265
4300
  */
4266
4301
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
4267
4302
  /**
4268
4303
  * Disallow unreadable array destructuring.
4269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-array-destructuring.md
4304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-array-destructuring.md
4270
4305
  */
4271
4306
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
4272
4307
  /**
4273
4308
  * 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
4309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-for-of-expression.md
4275
4310
  */
4276
4311
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
4277
4312
  /**
4278
4313
  * Disallow unreadable IIFEs.
4279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-iife.md
4314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-iife.md
4280
4315
  */
4281
4316
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
4282
4317
  /**
4283
4318
  * Disallow unreadable `new` expressions.
4284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-new-expression.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-new-expression.md
4285
4320
  */
4286
4321
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
4287
4322
  /**
4288
4323
  * Disallow unreadable object destructuring.
4289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unreadable-object-destructuring.md
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unreadable-object-destructuring.md
4290
4325
  */
4291
4326
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
4292
4327
  /**
4293
4328
  * 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
4329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-buffer-conversion.md
4295
4330
  */
4296
4331
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
4297
4332
  /**
4298
4333
  * 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
4334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-dom-html.md
4300
4335
  */
4301
4336
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
4337
+ /**
4338
+ * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
4339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
4340
+ */
4341
+ 'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
4302
4342
  /**
4303
4343
  * 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
4344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-property-key.md
4305
4345
  */
4306
4346
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
4307
4347
  /**
4308
4348
  * 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
4349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unsafe-string-replacement.md
4310
4350
  */
4311
4351
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
4312
4352
  /**
4313
4353
  * 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
4354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-array-method-return.md
4315
4355
  */
4316
4356
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
4317
4357
  /**
4318
4358
  * Disallow unused object properties.
4319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-unused-properties.md
4359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-unused-properties.md
4320
4360
  */
4321
4361
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
4322
4362
  /**
4323
4363
  * 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
4364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-boolean-cast.md
4325
4365
  */
4326
4366
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
4327
4367
  /**
4328
4368
  * 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
4369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-coercion.md
4330
4370
  */
4331
4371
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
4332
4372
  /**
4333
4373
  * 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
4374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-collection-argument.md
4335
4375
  */
4336
4376
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
4337
4377
  /**
4338
4378
  * 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
4379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-compound-assignment.md
4340
4380
  */
4341
4381
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
4342
4382
  /**
4343
4383
  * Disallow useless concatenation of literals.
4344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-concat.md
4384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-concat.md
4345
4385
  */
4346
4386
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
4347
4387
  /**
4348
4388
  * Disallow useless `continue` statements.
4349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-continue.md
4389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-continue.md
4350
4390
  */
4351
4391
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
4352
4392
  /**
4353
4393
  * 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
4394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-delete-check.md
4355
4395
  */
4356
4396
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
4357
4397
  /**
4358
4398
  * 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
4399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-else.md
4360
4400
  */
4361
4401
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
4362
4402
  /**
4363
4403
  * 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
4404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4365
4405
  */
4366
4406
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
4367
4407
  /**
4368
4408
  * 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
4409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-fallback-in-spread.md
4370
4410
  */
4371
4411
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
4372
4412
  /**
4373
4413
  * 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
4414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-iterator-to-array.md
4375
4415
  */
4376
4416
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
4377
4417
  /**
4378
4418
  * 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
4419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-length-check.md
4380
4420
  */
4381
4421
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
4382
4422
  /**
4383
4423
  * 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
4424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-logical-operand.md
4385
4425
  */
4386
4426
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
4387
4427
  /**
4388
4428
  * 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
4429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-override.md
4390
4430
  */
4391
4431
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
4392
4432
  /**
4393
4433
  * 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
4434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-promise-resolve-reject.md
4395
4435
  */
4396
4436
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
4397
4437
  /**
4398
4438
  * 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
4439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-recursion.md
4400
4440
  */
4401
4441
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
4402
4442
  /**
4403
4443
  * Disallow unnecessary spread.
4404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-spread.md
4444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-spread.md
4405
4445
  */
4406
4446
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
4407
4447
  /**
4408
4448
  * 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
4449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-switch-case.md
4410
4450
  */
4411
4451
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
4412
4452
  /**
4413
4453
  * 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
4454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-template-literals.md
4415
4455
  */
4416
4456
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
4417
4457
  /**
4418
4458
  * Disallow useless `undefined`.
4419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/no-useless-undefined.md
4459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-useless-undefined.md
4420
4460
  */
4421
4461
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
4422
4462
  /**
4423
4463
  * 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
4464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-xor-as-exponentiation.md
4425
4465
  */
4426
4466
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
4427
4467
  /**
4428
4468
  * 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
4469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/no-zero-fractions.md
4430
4470
  */
4431
4471
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
4432
4472
  /**
4433
4473
  * 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
4474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/number-literal-case.md
4435
4475
  */
4436
4476
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
4437
4477
  /**
4438
4478
  * 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
4479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/numeric-separators-style.md
4440
4480
  */
4441
4481
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
4442
4482
  /**
4443
4483
  * Require assignment operator shorthand where possible.
4444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/operator-assignment.md
4484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/operator-assignment.md
4445
4485
  */
4446
4486
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
4487
+ /**
4488
+ * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
4489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-any.md
4490
+ */
4491
+ 'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
4492
+ /**
4493
+ * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
4494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-abort-signal-timeout.md
4495
+ */
4496
+ 'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
4447
4497
  /**
4448
4498
  * 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
4499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener.md
4450
4500
  */
4451
4501
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
4452
4502
  /**
4453
4503
  * 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
4504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-add-event-listener-options.md
4455
4505
  */
4456
4506
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
4507
+ /**
4508
+ * Prefer `AggregateError` when throwing collected errors.
4509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-aggregate-error.md
4510
+ */
4511
+ 'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
4457
4512
  /**
4458
4513
  * 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
4514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-find.md
4460
4515
  */
4461
4516
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
4462
4517
  /**
4463
4518
  * 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
4519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat.md
4465
4520
  */
4466
4521
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
4467
4522
  /**
4468
4523
  * 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
4524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-flat-map.md
4470
4525
  */
4471
4526
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
4472
4527
  /**
4473
4528
  * 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
4529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-async.md
4475
4530
  */
4476
4531
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
4477
4532
  /**
4478
4533
  * 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
4534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-map.md
4480
4535
  */
4481
4536
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
4537
+ /**
4538
+ * Prefer `Array.from({length}, …)` when creating range arrays.
4539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-from-range.md
4540
+ */
4541
+ 'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
4482
4542
  /**
4483
4543
  * 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
4544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-index-of.md
4485
4545
  */
4486
4546
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
4487
4547
  /**
4488
4548
  * 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
4549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-iterable-methods.md
4490
4550
  */
4491
4551
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
4492
4552
  /**
4493
4553
  * 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
4554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-last-methods.md
4495
4555
  */
4496
4556
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
4497
4557
  /**
4498
4558
  * 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
4559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-slice.md
4500
4560
  */
4501
4561
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
4502
4562
  /**
4503
4563
  * 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
4564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-array-some.md
4505
4565
  */
4506
4566
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
4507
4567
  /**
4508
4568
  * 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
4569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-at.md
4510
4570
  */
4511
4571
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
4512
4572
  /**
4513
4573
  * Prefer `await` over promise chaining.
4514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-await.md
4574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-await.md
4515
4575
  */
4516
4576
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
4517
4577
  /**
4518
4578
  * 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
4579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-bigint-literals.md
4520
4580
  */
4521
4581
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
4522
4582
  /**
4523
4583
  * 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
4584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-blob-reading-methods.md
4525
4585
  */
4526
4586
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
4587
+ /**
4588
+ * Prefer block statements over IIFEs used only for scoping.
4589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-block-statement-over-iife.md
4590
+ */
4591
+ 'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
4527
4592
  /**
4528
4593
  * 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
4594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-boolean-return.md
4530
4595
  */
4531
4596
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
4532
4597
  /**
4533
4598
  * 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
4599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-class-fields.md
4535
4600
  */
4536
4601
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
4537
4602
  /**
4538
4603
  * 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
4604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-classlist-toggle.md
4540
4605
  */
4541
4606
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
4542
4607
  /**
4543
4608
  * 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
4609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-code-point.md
4545
4610
  */
4546
4611
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
4547
4612
  /**
4548
4613
  * 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
4614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-continue.md
4550
4615
  */
4551
4616
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
4552
4617
  /**
4553
4618
  * 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
4619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-date-now.md
4555
4620
  */
4556
4621
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
4557
4622
  /**
4558
4623
  * Prefer default parameters over reassignment.
4559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-default-parameters.md
4624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-default-parameters.md
4560
4625
  */
4561
4626
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
4562
4627
  /**
4563
4628
  * 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
4629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-direct-iteration.md
4565
4630
  */
4566
4631
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
4567
4632
  /**
4568
4633
  * 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
4634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dispose.md
4570
4635
  */
4571
4636
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
4572
4637
  /**
4573
4638
  * 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
4639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-append.md
4575
4640
  */
4576
4641
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
4577
4642
  /**
4578
4643
  * 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
4644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
4580
4645
  * @deprecated
4581
4646
  */
4582
4647
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
4583
4648
  /**
4584
4649
  * 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
4650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-html-methods.md
4586
4651
  */
4587
4652
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
4588
4653
  /**
4589
4654
  * 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
4655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-remove.md
4591
4656
  */
4592
4657
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
4658
+ /**
4659
+ * Prefer `.replaceChildren()` when emptying DOM children.
4660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-replace-children.md
4661
+ */
4662
+ 'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
4593
4663
  /**
4594
4664
  * 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
4665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-dom-node-text-content.md
4596
4666
  */
4597
4667
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
4598
4668
  /**
4599
4669
  * 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
4670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-early-return.md
4601
4671
  */
4602
4672
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
4603
4673
  /**
4604
4674
  * 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
4675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-else-if.md
4606
4676
  */
4607
4677
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
4678
+ /**
4679
+ * Prefer `Error.isError()` when checking for errors.
4680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-error-is-error.md
4681
+ */
4682
+ 'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
4608
4683
  /**
4609
4684
  * Prefer `EventTarget` over `EventEmitter`.
4610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-event-target.md
4685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-event-target.md
4611
4686
  */
4612
4687
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
4613
4688
  /**
4614
4689
  * 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
4690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-export-from.md
4616
4691
  */
4617
4692
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
4618
4693
  /**
4619
4694
  * 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
4695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-flat-math-min-max.md
4621
4696
  */
4622
4697
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
4623
4698
  /**
4624
4699
  * 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
4700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-get-or-insert-computed.md
4626
4701
  */
4627
4702
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
4628
4703
  /**
4629
4704
  * 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
4705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-number-constants.md
4631
4706
  */
4632
4707
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
4633
4708
  /**
4634
4709
  * 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
4710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-global-this.md
4636
4711
  */
4637
4712
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
4713
+ /**
4714
+ * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
4715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-group-by.md
4716
+ */
4717
+ 'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
4638
4718
  /**
4639
4719
  * Prefer `.has()` when checking existence.
4640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-has-check.md
4720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-has-check.md
4641
4721
  */
4642
4722
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
4643
4723
  /**
4644
4724
  * 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
4725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-hoisting-branch-code.md
4646
4726
  */
4647
4727
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
4648
4728
  /**
4649
4729
  * Prefer HTTPS over HTTP.
4650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-https.md
4730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-https.md
4651
4731
  */
4652
4732
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
4653
4733
  /**
4654
4734
  * 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
4735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
4656
4736
  */
4657
4737
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
4658
4738
  /**
4659
4739
  * 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
4740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-import-meta-properties.md
4661
4741
  */
4662
4742
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
4663
4743
  /**
4664
4744
  * 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
4745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes.md
4666
4746
  */
4667
4747
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
4668
4748
  /**
4669
4749
  * 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
4750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
4671
4751
  */
4672
4752
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
4673
4753
  /**
4674
4754
  * 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
4755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterable-in-constructor.md
4676
4756
  */
4677
4757
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
4678
4758
  /**
4679
4759
  * 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
4760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-concat.md
4681
4761
  */
4682
4762
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
4763
+ /**
4764
+ * Prefer iterator helpers over temporary arrays from iterators.
4765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-helpers.md
4766
+ */
4767
+ 'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
4683
4768
  /**
4684
4769
  * 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
4770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array.md
4686
4771
  */
4687
4772
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
4688
4773
  /**
4689
4774
  * 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
4775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-iterator-to-array-at-end.md
4691
4776
  */
4692
4777
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
4693
4778
  /**
4694
4779
  * 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
4780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
4696
4781
  * @deprecated
4697
4782
  */
4698
4783
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
4699
4784
  /**
4700
4785
  * 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
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-keyboard-event-key.md
4702
4787
  */
4703
4788
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
4704
4789
  /**
4705
4790
  * 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
4791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-location-assign.md
4707
4792
  */
4708
4793
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
4709
4794
  /**
4710
4795
  * 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
4796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4712
4797
  */
4713
4798
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
4714
4799
  /**
4715
4800
  * 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
4801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-map-from-entries.md
4717
4802
  */
4718
4803
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
4719
4804
  /**
4720
4805
  * 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
4806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-abs.md
4722
4807
  */
4723
4808
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
4724
4809
  /**
4725
4810
  * 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
4811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-constants.md
4727
4812
  */
4728
4813
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
4729
4814
  /**
4730
4815
  * 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
4816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-min-max.md
4732
4817
  */
4733
4818
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
4734
4819
  /**
4735
4820
  * 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
4821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-math-trunc.md
4737
4822
  */
4738
4823
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
4739
4824
  /**
4740
4825
  * 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
4826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-minimal-ternary.md
4742
4827
  */
4743
4828
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
4744
4829
  /**
4745
4830
  * Prefer modern DOM APIs.
4746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-modern-dom-apis.md
4831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-dom-apis.md
4747
4832
  */
4748
4833
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
4749
4834
  /**
4750
4835
  * 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
4836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-modern-math-apis.md
4752
4837
  */
4753
4838
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
4754
4839
  /**
4755
4840
  * Prefer JavaScript modules (ESM) over CommonJS.
4756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-module.md
4841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-module.md
4757
4842
  */
4758
4843
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
4759
4844
  /**
4760
4845
  * 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
4846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-native-coercion-functions.md
4762
4847
  */
4763
4848
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
4764
4849
  /**
4765
4850
  * 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
4851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-negative-index.md
4767
4852
  */
4768
4853
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
4769
4854
  /**
4770
4855
  * 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
4856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-node-protocol.md
4772
4857
  */
4773
4858
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
4774
4859
  /**
4775
4860
  * 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
4861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-coercion.md
4777
4862
  */
4778
4863
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
4779
4864
  /**
4780
4865
  * 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
4866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-is-safe-integer.md
4782
4867
  */
4783
4868
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
4784
4869
  /**
4785
4870
  * 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
4871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-number-properties.md
4787
4872
  */
4788
4873
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
4789
4874
  /**
4790
4875
  * 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
4876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-define-properties.md
4792
4877
  */
4793
4878
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
4794
4879
  /**
4795
4880
  * 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
4881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-destructuring-defaults.md
4797
4882
  */
4798
4883
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
4799
4884
  /**
4800
4885
  * 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
4886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-from-entries.md
4802
4887
  */
4803
4888
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
4804
4889
  /**
4805
4890
  * 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
4891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-object-iterable-methods.md
4807
4892
  */
4808
4893
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
4894
+ /**
4895
+ * Prefer observer APIs over resize and scroll listeners with layout reads.
4896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-observer-apis.md
4897
+ */
4898
+ 'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
4809
4899
  /**
4810
4900
  * 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
4901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-optional-catch-binding.md
4812
4902
  */
4813
4903
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
4814
4904
  /**
4815
4905
  * 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
4906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-path2d.md
4817
4907
  */
4818
4908
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
4819
4909
  /**
4820
4910
  * 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
4911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-private-class-fields.md
4822
4912
  */
4823
4913
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
4914
+ /**
4915
+ * Prefer `Promise.try()` over promise-wrapping boilerplate.
4916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-try.md
4917
+ */
4918
+ 'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
4824
4919
  /**
4825
4920
  * 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
4921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-promise-with-resolvers.md
4827
4922
  */
4828
4923
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
4829
4924
  /**
4830
4925
  * 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
4926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-prototype-methods.md
4832
4927
  */
4833
4928
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
4834
4929
  /**
4835
4930
  * 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
4931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-query-selector.md
4837
4932
  */
4838
4933
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
4839
4934
  /**
4840
4935
  * 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
4936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-queue-microtask.md
4842
4937
  */
4843
4938
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
4844
4939
  /**
4845
4940
  * 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
4941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-reflect-apply.md
4847
4942
  */
4848
4943
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
4849
4944
  /**
4850
4945
  * 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
4946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-escape.md
4852
4947
  */
4853
4948
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
4854
4949
  /**
4855
4950
  * 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
4951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-regexp-test.md
4857
4952
  */
4858
4953
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
4859
4954
  /**
4860
4955
  * 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
4956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-response-static-json.md
4862
4957
  */
4863
4958
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
4864
4959
  /**
4865
4960
  * 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
4961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-scoped-selector.md
4867
4962
  */
4868
4963
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
4869
4964
  /**
4870
4965
  * 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
4966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-has.md
4872
4967
  */
4873
4968
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
4969
+ /**
4970
+ * Prefer `Set` methods for Set operations.
4971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-methods.md
4972
+ */
4973
+ 'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
4874
4974
  /**
4875
4975
  * 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
4976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-set-size.md
4877
4977
  */
4878
4978
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
4879
4979
  /**
4880
4980
  * 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
4981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-short-arrow-method.md
4882
4982
  */
4883
4983
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
4884
4984
  /**
4885
4985
  * 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
4986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-condition-first.md
4887
4987
  */
4888
4988
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
4889
4989
  /**
4890
4990
  * 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
4991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simple-sort-comparator.md
4892
4992
  */
4893
4993
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
4994
+ /**
4995
+ * Prefer simplified conditions.
4996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-simplified-conditions.md
4997
+ */
4998
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
4894
4999
  /**
4895
5000
  * 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
5001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-array-predicate.md
4897
5002
  */
4898
5003
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
4899
5004
  /**
4900
5005
  * 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
5006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-call.md
4902
5007
  */
4903
5008
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
4904
5009
  /**
4905
5010
  * 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
5011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-object-destructuring.md
4907
5012
  */
4908
5013
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
4909
5014
  /**
4910
5015
  * 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
5016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-single-replace.md
4912
5017
  */
4913
5018
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
4914
5019
  /**
4915
5020
  * 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
5021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-smaller-scope.md
4917
5022
  */
4918
5023
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
4919
5024
  /**
4920
5025
  * 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
5026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-split-limit.md
4922
5027
  */
4923
5028
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
4924
5029
  /**
4925
5030
  * 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
5031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-spread.md
4927
5032
  */
4928
5033
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
4929
5034
  /**
4930
5035
  * 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
5036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-match-all.md
4932
5037
  */
4933
5038
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
4934
5039
  /**
4935
5040
  * 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
5041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-pad-start-end.md
4937
5042
  */
4938
5043
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
4939
5044
  /**
4940
5045
  * 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
5046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-raw.md
4942
5047
  */
4943
5048
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
4944
5049
  /**
4945
5050
  * 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
5051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-repeat.md
4947
5052
  */
4948
5053
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
4949
5054
  /**
4950
5055
  * 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
5056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-replace-all.md
4952
5057
  */
4953
5058
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
4954
5059
  /**
4955
5060
  * 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
5061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-slice.md
4957
5062
  */
4958
5063
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
4959
5064
  /**
4960
5065
  * 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
5066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-starts-ends-with.md
4962
5067
  */
4963
5068
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
4964
5069
  /**
4965
5070
  * 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
5071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-string-trim-start-end.md
4967
5072
  */
4968
5073
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
4969
5074
  /**
4970
5075
  * 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
5076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-structured-clone.md
4972
5077
  */
4973
5078
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
4974
5079
  /**
4975
5080
  * Prefer `switch` over multiple `else-if`.
4976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-switch.md
5081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-switch.md
4977
5082
  */
4978
5083
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
4979
5084
  /**
4980
5085
  * Prefer `Temporal` over `Date`.
4981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/prefer-temporal.md
5086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-temporal.md
4982
5087
  */
4983
5088
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
4984
5089
  /**
4985
5090
  * 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
5091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-ternary.md
4987
5092
  */
4988
5093
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5094
+ /**
5095
+ * Prefer using `Element#toggleAttribute()` to toggle attributes.
5096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-toggle-attribute.md
5097
+ */
5098
+ 'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
4989
5099
  /**
4990
5100
  * 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
5101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-top-level-await.md
4992
5102
  */
4993
5103
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
4994
5104
  /**
4995
5105
  * 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
5106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-error.md
4997
5107
  */
4998
5108
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
4999
5109
  /**
5000
5110
  * 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
5111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-type-literal-last.md
5002
5112
  */
5003
5113
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
5004
5114
  /**
5005
5115
  * 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
5116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-uint8array-base64.md
5007
5117
  */
5008
5118
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
5009
5119
  /**
5010
5120
  * 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
5121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unary-minus.md
5012
5122
  */
5013
5123
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
5014
5124
  /**
5015
5125
  * 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
5126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-unicode-code-point-escapes.md
5017
5127
  */
5018
5128
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
5019
5129
  /**
5020
5130
  * 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
5131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-can-parse.md
5022
5132
  */
5023
5133
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
5024
5134
  /**
5025
5135
  * 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
5136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-href.md
5027
5137
  */
5028
5138
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
5139
+ /**
5140
+ * Prefer `URLSearchParams` over manually splitting query strings.
5141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-url-search-parameters.md
5142
+ */
5143
+ 'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
5029
5144
  /**
5030
5145
  * 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
5146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/prefer-while-loop-condition.md
5032
5147
  */
5033
5148
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
5034
5149
  /**
5035
5150
  * 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
5151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
5037
5152
  * @deprecated
5038
5153
  */
5039
5154
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
5040
5155
  /**
5041
5156
  * Enforce consistent relative URL style.
5042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/relative-url-style.md
5157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/relative-url-style.md
5043
5158
  */
5044
5159
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5045
5160
  /**
5046
5161
  * 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
5162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-join-separator.md
5048
5163
  */
5049
5164
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5050
5165
  /**
5051
5166
  * 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
5167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-array-sort-compare.md
5053
5168
  */
5054
5169
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
5055
5170
  /**
5056
5171
  * 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
5172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-css-escape.md
5058
5173
  */
5059
5174
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
5060
5175
  /**
5061
5176
  * 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
5177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-attributes.md
5063
5178
  */
5064
5179
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
5065
5180
  /**
5066
5181
  * 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
5182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-module-specifiers.md
5068
5183
  */
5069
5184
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5070
5185
  /**
5071
5186
  * 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
5187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5073
5188
  */
5074
5189
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5075
5190
  /**
5076
5191
  * 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
5192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-passive-events.md
5078
5193
  */
5079
5194
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
5080
5195
  /**
5081
5196
  * 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
5197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-post-message-target-origin.md
5083
5198
  */
5084
5199
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5085
5200
  /**
5086
5201
  * 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
5202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/require-proxy-trap-boolean-return.md
5088
5203
  */
5089
5204
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
5090
5205
  /**
5091
5206
  * Enforce better string content.
5092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/string-content.md
5207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/string-content.md
5093
5208
  */
5094
5209
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5095
5210
  /**
5096
5211
  * 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
5212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-braces.md
5098
5213
  */
5099
5214
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
5100
5215
  /**
5101
5216
  * 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
5217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/switch-case-break-position.md
5103
5218
  */
5104
5219
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
5105
5220
  /**
5106
5221
  * Fix whitespace-insensitive template indentation.
5107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/template-indent.md
5222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/template-indent.md
5108
5223
  */
5109
5224
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5110
5225
  /**
5111
5226
  * 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
5227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/text-encoding-identifier-case.md
5113
5228
  */
5114
5229
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
5115
5230
  /**
5116
5231
  * 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
5232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/throw-new-error.md
5118
5233
  */
5119
5234
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5120
5235
  /**
5121
5236
  * Limit the complexity of `try` blocks.
5122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v68.0.0/docs/rules/try-complexity.md
5237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v70.0.0/docs/rules/try-complexity.md
5123
5238
  */
5124
5239
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
5125
5240
  /**
@@ -8218,6 +8333,9 @@ type NoConfusingArrow = [] | [{
8218
8333
  }]; // ----- no-console -----
8219
8334
  type NoConsole = [] | [{
8220
8335
  allow?: [string, ...(string)[]];
8336
+ }]; // ----- no-constant-binary-expression -----
8337
+ type NoConstantBinaryExpression = [] | [{
8338
+ checkRelationalComparisons?: boolean;
8221
8339
  }]; // ----- no-constant-condition -----
8222
8340
  type NoConstantCondition = [] | [{
8223
8341
  checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false);
@@ -11591,6 +11709,7 @@ type UnicornConsistentBooleanName = [] | [{
11591
11709
  prefixes?: {
11592
11710
  [k: string]: boolean | undefined;
11593
11711
  };
11712
+ ignore?: unknown[];
11594
11713
  }]; // ----- unicorn/consistent-class-member-order -----
11595
11714
  type UnicornConsistentClassMemberOrder = [] | [{
11596
11715
  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")];
@@ -11759,6 +11878,7 @@ type UnicornNoNegatedComparison = [] | [{
11759
11878
  }]; // ----- unicorn/no-non-function-verb-prefix -----
11760
11879
  type UnicornNoNonFunctionVerbPrefix = [] | [{
11761
11880
  verbs?: string[];
11881
+ ignore?: unknown[];
11762
11882
  }]; // ----- unicorn/no-null -----
11763
11883
  type UnicornNoNull = [] | [{
11764
11884
  checkArguments?: boolean;
@@ -11833,6 +11953,7 @@ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
11833
11953
  minimumComparisons?: number;
11834
11954
  }]; // ----- unicorn/prefer-minimal-ternary -----
11835
11955
  type UnicornPreferMinimalTernary = [] | [{
11956
+ checkVaryingCallee?: boolean;
11836
11957
  checkComputedMemberAccess?: boolean;
11837
11958
  }]; // ----- unicorn/prefer-number-properties -----
11838
11959
  type UnicornPreferNumberProperties = [] | [{