@lichthagel/eslint-config 1.0.35 → 1.0.37

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