@moso/eslint-config 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.mts +536 -377
  2. package/dist/index.mjs +32 -80
  3. package/package.json +36 -36
package/dist/index.d.mts CHANGED
@@ -2459,7 +2459,7 @@ interface RuleOptions {
2459
2459
  * Transforms the negation of a disjunction !(A || B) into the equivalent !A && !B according to De Morgan’s law
2460
2460
  * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
2461
2461
  */
2462
- 'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<[]>;
2462
+ 'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<DeMorganNoNegatedDisjunction>;
2463
2463
  /**
2464
2464
  * Disallow dependencies in favor of more performant or secure alternatives
2465
2465
  */
@@ -2607,103 +2607,103 @@ interface RuleOptions {
2607
2607
  'erasable-syntax-only/parameter-properties'?: Linter.RuleEntry<[]>;
2608
2608
  /**
2609
2609
  * Enforce functional parameters.
2610
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/functional-parameters.md
2610
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/functional-parameters.md
2611
2611
  */
2612
2612
  'functional/functional-parameters'?: Linter.RuleEntry<FunctionalFunctionalParameters>;
2613
2613
  /**
2614
2614
  * Enforce treating data as immutable.
2615
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/immutable-data.md
2615
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/immutable-data.md
2616
2616
  */
2617
2617
  'functional/immutable-data'?: Linter.RuleEntry<FunctionalImmutableData>;
2618
2618
  /**
2619
2619
  * Disallow inheritance in classes.
2620
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-class-inheritance.md
2620
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-class-inheritance.md
2621
2621
  */
2622
2622
  'functional/no-class-inheritance'?: Linter.RuleEntry<FunctionalNoClassInheritance>;
2623
2623
  /**
2624
2624
  * Disallow classes.
2625
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-classes.md
2625
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-classes.md
2626
2626
  */
2627
2627
  'functional/no-classes'?: Linter.RuleEntry<FunctionalNoClasses>;
2628
2628
  /**
2629
2629
  * Disallow conditional statements.
2630
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-conditional-statements.md
2630
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-conditional-statements.md
2631
2631
  */
2632
2632
  'functional/no-conditional-statements'?: Linter.RuleEntry<FunctionalNoConditionalStatements>;
2633
2633
  /**
2634
2634
  * Disallow expression statements.
2635
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-expression-statements.md
2635
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-expression-statements.md
2636
2636
  */
2637
2637
  'functional/no-expression-statements'?: Linter.RuleEntry<FunctionalNoExpressionStatements>;
2638
2638
  /**
2639
2639
  * Disallow mutable variables.
2640
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-let.md
2640
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-let.md
2641
2641
  */
2642
2642
  'functional/no-let'?: Linter.RuleEntry<FunctionalNoLet>;
2643
2643
  /**
2644
2644
  * Disallow imperative loops.
2645
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-loop-statements.md
2645
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-loop-statements.md
2646
2646
  */
2647
2647
  'functional/no-loop-statements'?: Linter.RuleEntry<[]>;
2648
2648
  /**
2649
2649
  * Restrict types so that only members of the same kind are allowed in them.
2650
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-mixed-types.md
2650
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-mixed-types.md
2651
2651
  */
2652
2652
  'functional/no-mixed-types'?: Linter.RuleEntry<FunctionalNoMixedTypes>;
2653
2653
  /**
2654
2654
  * Disallow rejecting promises.
2655
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-promise-reject.md
2655
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-promise-reject.md
2656
2656
  */
2657
2657
  'functional/no-promise-reject'?: Linter.RuleEntry<[]>;
2658
2658
  /**
2659
2659
  * Disallow functions that don't return anything.
2660
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-return-void.md
2660
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-return-void.md
2661
2661
  */
2662
2662
  'functional/no-return-void'?: Linter.RuleEntry<FunctionalNoReturnVoid>;
2663
2663
  /**
2664
2664
  * Disallow this access.
2665
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-this-expressions.md
2665
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-this-expressions.md
2666
2666
  */
2667
2667
  'functional/no-this-expressions'?: Linter.RuleEntry<[]>;
2668
2668
  /**
2669
2669
  * Disallow throwing exceptions.
2670
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-throw-statements.md
2670
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-throw-statements.md
2671
2671
  */
2672
2672
  'functional/no-throw-statements'?: Linter.RuleEntry<FunctionalNoThrowStatements>;
2673
2673
  /**
2674
2674
  * Disallow try-catch[-finally] and try-finally patterns.
2675
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/no-try-statements.md
2675
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/no-try-statements.md
2676
2676
  */
2677
2677
  'functional/no-try-statements'?: Linter.RuleEntry<FunctionalNoTryStatements>;
2678
2678
  /**
2679
2679
  * Require function parameters to be typed as certain immutability
2680
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/prefer-immutable-types.md
2680
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/prefer-immutable-types.md
2681
2681
  */
2682
2682
  'functional/prefer-immutable-types'?: Linter.RuleEntry<FunctionalPreferImmutableTypes>;
2683
2683
  /**
2684
2684
  * Prefer property signatures over method signatures.
2685
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/prefer-property-signatures.md
2685
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/prefer-property-signatures.md
2686
2686
  */
2687
2687
  'functional/prefer-property-signatures'?: Linter.RuleEntry<FunctionalPreferPropertySignatures>;
2688
2688
  /**
2689
2689
  * Prefer readonly types over mutable types.
2690
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/prefer-readonly-type.md
2690
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/prefer-readonly-type.md
2691
2691
  * @deprecated
2692
2692
  */
2693
2693
  'functional/prefer-readonly-type'?: Linter.RuleEntry<FunctionalPreferReadonlyType>;
2694
2694
  /**
2695
2695
  * Replaces `x => f(x)` with just `f`.
2696
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/prefer-tacit.md
2696
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/prefer-tacit.md
2697
2697
  */
2698
2698
  'functional/prefer-tacit'?: Linter.RuleEntry<FunctionalPreferTacit>;
2699
2699
  /**
2700
2700
  * Require consistently using either `readonly` keywords or `Readonly<T>`
2701
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/readonly-type.md
2701
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/readonly-type.md
2702
2702
  */
2703
2703
  'functional/readonly-type'?: Linter.RuleEntry<FunctionalReadonlyType>;
2704
2704
  /**
2705
2705
  * Enforce the immutability of types based on patterns.
2706
- * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.0/docs/rules/type-declaration-immutability.md
2706
+ * @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v10.0.1/docs/rules/type-declaration-immutability.md
2707
2707
  */
2708
2708
  'functional/type-declaration-immutability'?: Linter.RuleEntry<FunctionalTypeDeclarationImmutability>;
2709
2709
  /**
@@ -3105,6 +3105,11 @@ interface RuleOptions {
3105
3105
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
3106
3106
  */
3107
3107
  'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
3108
+ /**
3109
+ * Disallows (or requires descriptions for) `@ts-<directive>` comments, mirroring `@typescript-eslint/ban-ts-comment`.
3110
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-ban-ts-comment.md#repos-sticky-header
3111
+ */
3112
+ 'jsdoc/ts-ban-ts-comment'?: Linter.RuleEntry<JsdocTsBanTsComment>;
3108
3113
  /**
3109
3114
  * Prefers either function properties or method signatures
3110
3115
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
@@ -4784,1740 +4789,1841 @@ interface RuleOptions {
4784
4789
  'toml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
4785
4790
  /**
4786
4791
  * Prefer better DOM traversal APIs.
4787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
4792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
4788
4793
  */
4789
4794
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
4790
4795
  /**
4791
4796
  * Removed. Prefer `eslint-plugin-regexp`
4792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4793
4798
  * @deprecated
4794
4799
  */
4795
4800
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
4796
4801
  /**
4797
4802
  * Enforce a specific parameter name in catch clauses.
4798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
4803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
4799
4804
  */
4800
4805
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
4801
4806
  /**
4802
4807
  * Enforce consistent class references in static methods.
4803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
4808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
4804
4809
  */
4805
4810
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
4806
4811
  /**
4807
4812
  * Enforce better comment content.
4808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
4813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
4809
4814
  */
4810
4815
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
4811
4816
  /**
4812
4817
  * Enforce a consistent return style for multiline arrow function bodies.
4813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
4818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
4814
4819
  */
4815
4820
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
4816
4821
  /**
4817
4822
  * Enforce consistent assertion style with `node:assert`.
4818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
4823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
4819
4824
  */
4820
4825
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
4821
4826
  /**
4822
4827
  * Enforce consistent naming for boolean names.
4823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
4828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
4824
4829
  */
4825
4830
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
4826
4831
  /**
4827
4832
  * Enforce consistent class member order.
4828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
4833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
4829
4834
  */
4830
4835
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
4831
4836
  /**
4832
4837
  * Enforce consistent spelling of compound words in identifiers.
4833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
4838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
4834
4839
  */
4835
4840
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
4836
4841
  /**
4837
4842
  * Enforce consistent conditional object spread style.
4838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
4843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
4839
4844
  */
4840
4845
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
4841
4846
  /**
4842
4847
  * Prefer passing `Date` directly to the constructor when cloning.
4843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
4848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
4844
4849
  */
4845
4850
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
4846
4851
  /**
4847
4852
  * Use destructured variables over properties.
4848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
4853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
4849
4854
  */
4850
4855
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
4851
4856
  /**
4852
4857
  * Prefer consistent types when spreading a ternary in an array literal.
4853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
4858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
4854
4859
  */
4855
4860
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
4856
4861
  /**
4857
4862
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
4863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
4859
4864
  */
4860
4865
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
4861
4866
  /**
4862
4867
  * Enforce consistent decorator position on exported classes.
4863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
4868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
4864
4869
  */
4865
4870
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
4866
4871
  /**
4867
4872
  * Move function definitions to the highest possible scope.
4868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
4873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
4869
4874
  */
4870
4875
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4871
4876
  /**
4872
4877
  * Enforce function syntax by role.
4873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
4878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
4874
4879
  */
4875
4880
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
4876
4881
  /**
4877
4882
  * Enforce consistent JSON file reads before `JSON.parse()`.
4878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
4883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
4879
4884
  */
4880
4885
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
4881
4886
  /**
4882
4887
  * Enforce consistent optional chaining for same-base member access.
4883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
4888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
4884
4889
  */
4885
4890
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
4886
4891
  /**
4887
4892
  * Enforce consistent style for escaping `${` in template literals.
4888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
4893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
4889
4894
  */
4890
4895
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
4891
4896
  /**
4892
4897
  * Enforce consistent labels on tuple type elements.
4893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
4898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
4894
4899
  */
4895
4900
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
4896
4901
  /**
4897
4902
  * Enforce correct `Error` subclassing.
4898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
4903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
4899
4904
  */
4900
4905
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
4901
4906
  /**
4902
4907
  * Enforce consistent default export declarations.
4903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
4908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
4904
4909
  */
4905
4910
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
4906
4911
  /**
4907
4912
  * Enforce consistent style for DOM element dataset access.
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
4913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
4909
4914
  */
4910
4915
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
4911
4916
  /**
4912
4917
  * Enforce no spaces between braces.
4913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
4918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
4914
4919
  */
4915
4920
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
4916
4921
  /**
4917
4922
  * Enforce passing a `message` value when creating a built-in error.
4918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
4923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
4919
4924
  */
4920
4925
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
4921
4926
  /**
4922
4927
  * Require escape sequences to use uppercase or lowercase values.
4923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
4924
4929
  */
4925
4930
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
4926
4931
  /**
4927
4932
  * Add expiration conditions to TODO comments.
4928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
4933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
4929
4934
  */
4930
4935
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4931
4936
  /**
4932
4937
  * Enforce explicitly comparing the `length` or `size` property of a value.
4933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
4938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
4934
4939
  */
4935
4940
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4936
4941
  /**
4937
4942
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
4938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
4943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
4939
4944
  */
4940
4945
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
4941
4946
  /**
4942
4947
  * Enforce a case style for filenames and directory names.
4943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
4948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
4944
4949
  */
4945
4950
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
4946
4951
  /**
4947
4952
  * Require identifiers to match a specified regular expression.
4948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
4953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
4949
4954
  */
4950
4955
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
4951
4956
  /**
4952
4957
  * Enforce specific import styles per module.
4953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
4958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
4954
4959
  */
4955
4960
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
4956
4961
  /**
4957
4962
  * Prevent usage of variables from outside the scope of isolated functions.
4958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
4963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
4959
4964
  */
4960
4965
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4961
4966
  /**
4962
4967
  * Enforce a consistent style for optional loop sources.
4963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
4968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
4964
4969
  */
4965
4970
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
4966
4971
  /**
4967
4972
  * Require or disallow logical assignment operator shorthand
4968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
4973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
4969
4974
  */
4970
4975
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
4971
4976
  /**
4972
4977
  * Limit the depth of nested calls.
4973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
4978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
4974
4979
  */
4975
4980
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
4976
4981
  /**
4977
4982
  * Enforce replacements for variable, property, and filenames.
4978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
4983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
4979
4984
  */
4980
4985
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
4981
4986
  /**
4982
4987
  * Enforce correct use of `new` for builtin constructors.
4983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
4988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
4984
4989
  */
4985
4990
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
4986
4991
  /**
4987
4992
  * Enforce specifying rules to disable in `eslint-disable` comments.
4988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
4993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
4989
4994
  */
4990
4995
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
4991
4996
  /**
4992
4997
  * Disallow recursive access to `this` within getters and setters.
4993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
4998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
4994
4999
  */
4995
5000
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
4996
5001
  /**
4997
5002
  * Disallow bitwise operators where a logical operator was likely intended.
4998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
5003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
4999
5004
  */
5000
5005
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
5001
5006
  /**
5002
5007
  * Disallow anonymous functions and classes as the default export.
5003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
5008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
5004
5009
  */
5005
5010
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5006
5011
  /**
5007
5012
  * Prevent passing a function reference directly to iterator methods.
5008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
5013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
5009
5014
  */
5010
5015
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
5011
5016
  /**
5012
5017
  * Disallow array accumulation with `Array#concat()` in loops.
5013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
5018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
5014
5019
  */
5015
5020
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
5016
5021
  /**
5017
5022
  * Disallow using reference values as `Array#fill()` values.
5018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
5023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
5019
5024
  */
5020
5025
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
5021
5026
  /**
5022
5027
  * Disallow `.fill()` after `Array.from({length: …})`.
5023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
5028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
5024
5029
  */
5025
5030
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
5026
5031
  /**
5027
5032
  * Disallow front-of-array mutation.
5028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
5033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
5029
5034
  */
5030
5035
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
5031
5036
  /**
5032
5037
  * Disallow using the `this` argument in array methods.
5033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
5038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
5034
5039
  */
5035
5040
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5036
5041
  /**
5037
5042
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5039
5044
  * @deprecated
5040
5045
  */
5041
5046
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5042
5047
  /**
5043
5048
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
5049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
5045
5050
  */
5046
5051
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5047
5052
  /**
5048
5053
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
5050
5055
  */
5051
5056
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5052
5057
  /**
5053
5058
  * Prefer `Array#toSorted()` over `Array#sort()`.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
5055
5060
  */
5056
5061
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5057
5062
  /**
5058
5063
  * Disallow sorting arrays to get the minimum or maximum value.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
5060
5065
  */
5061
5066
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
5062
5067
  /**
5063
5068
  * Prefer `Array#toSpliced()` over `Array#splice()`.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
5065
5070
  */
5066
5071
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
5067
5072
  /**
5068
5073
  * Disallow asterisk prefixes in documentation comments.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
5070
5075
  */
5071
5076
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
5077
+ /**
5078
+ * Disallow asynchronous callbacks in synchronous iterator helpers.
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
5080
+ */
5081
+ 'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
5072
5082
  /**
5073
5083
  * Disallow async functions as `Promise#finally()` callbacks.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
5075
5085
  */
5076
5086
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
5077
5087
  /**
5078
5088
  * Disallow member access from await expression.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
5080
5090
  */
5081
5091
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5082
5092
  /**
5083
5093
  * Disallow using `await` in `Promise` method parameters.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
5085
5095
  */
5086
5096
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5087
5097
  /**
5088
5098
  * Disallow barrel files.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
5090
5100
  */
5091
5101
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
5092
5102
  /**
5093
5103
  * Disallow unnecessary `Blob` to `File` conversion.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
5104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
5095
5105
  */
5096
5106
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
5097
5107
  /**
5098
5108
  * Disallow boolean-returning sort comparators.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
5100
5110
  */
5101
5111
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
5102
5112
  /**
5103
- * Disallow `break` and `continue` in nested loops and switches inside loops.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
5113
+ * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
5105
5115
  */
5106
- 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
5116
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
5107
5117
  /**
5108
5118
  * Prefer drawing canvases directly instead of converting them to images.
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
5110
5120
  */
5111
5121
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
5112
5122
  /**
5113
5123
  * Disallow chained comparisons such as `a < b < c`.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
5115
5125
  */
5116
5126
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
5117
5127
  /**
5118
5128
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
5120
5130
  */
5121
5131
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
5122
5132
  /**
5123
5133
  * Disallow dynamic object property existence checks.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
5125
5135
  */
5126
5136
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
5127
5137
  /**
5128
5138
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
5130
5140
  */
5131
5141
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
5132
5142
  /**
5133
5143
  * Disallow confusing uses of `Array#with()`.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
5135
5145
  */
5136
5146
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
5137
5147
  /**
5138
5148
  * Do not use leading/trailing space between `console.log` parameters.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
5140
5150
  */
5141
5151
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5142
5152
  /**
5143
5153
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
5144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
5145
5155
  */
5146
5156
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
5147
5157
  /**
5148
5158
  * Disallow declarations before conditional early exits when they are only used after the exit.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
5150
5160
  */
5151
5161
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
5162
+ /**
5163
+ * Disallow deprecated CSS features.
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
5165
+ */
5166
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
5152
5167
  /**
5153
5168
  * Do not use `document.cookie` directly.
5154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
5155
5170
  */
5156
5171
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5157
5172
  /**
5158
5173
  * Disallow two comparisons of the same operands that can be combined into one.
5159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
5174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
5160
5175
  */
5161
5176
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
5177
+ /**
5178
+ * Disallow duplicate CSS selectors.
5179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
5180
+ */
5181
+ 'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
5182
+ /**
5183
+ * Disallow duplicate font family names.
5184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
5185
+ */
5186
+ 'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
5162
5187
  /**
5163
5188
  * Disallow duplicate adjacent branches in if chains.
5164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
5165
5190
  */
5166
5191
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
5167
5192
  /**
5168
5193
  * Disallow adjacent duplicate operands in logical expressions.
5169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
5194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
5170
5195
  */
5171
5196
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
5172
5197
  /**
5173
5198
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
5175
5200
  */
5176
5201
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
5177
5202
  /**
5178
5203
  * Disallow duplicate values in `Set` constructor array literals.
5179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
5204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
5180
5205
  */
5181
5206
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
5182
5207
  /**
5183
5208
  * Disallow empty files.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
5185
5210
  */
5186
5211
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
5187
5212
  /**
5188
5213
  * Disallow assigning to built-in error properties.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
5190
5215
  */
5191
5216
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
5192
5217
  /**
5193
5218
  * Disallow exports in scripts.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
5195
5220
  */
5196
5221
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
5197
5222
  /**
5198
5223
  * Prefer `for…of` over the `forEach` method.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
5200
5225
  */
5201
5226
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
5202
5227
  /**
5203
5228
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
5205
5230
  */
5206
5231
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5207
5232
  /**
5208
5233
  * Disallow assigning properties on the global object.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
5210
5235
  */
5211
5236
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
5212
5237
  /**
5213
5238
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
5239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
5215
5240
  * @deprecated
5216
5241
  */
5217
5242
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5218
5243
  /**
5219
5244
  * Disallow immediate mutation after variable assignment.
5220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
5245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
5221
5246
  */
5222
- 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5247
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
5223
5248
  /**
5224
5249
  * Disallow impossible comparisons against `.length` or `.size`.
5225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
5250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
5226
5251
  */
5227
5252
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
5228
5253
  /**
5229
5254
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
5230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
5255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
5231
5256
  */
5232
5257
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
5233
5258
  /**
5234
5259
  * Disallow incorrect template literal interpolation syntax.
5235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
5260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
5236
5261
  */
5237
5262
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
5238
5263
  /**
5239
5264
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5241
5266
  * @deprecated
5242
5267
  */
5243
5268
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5244
5269
  /**
5245
5270
  * Disallow `instanceof` with built-in objects
5246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
5271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
5247
5272
  */
5248
5273
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5249
5274
  /**
5250
5275
  * Disallow calling functions and constructors with an invalid number of arguments.
5251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
5276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
5252
5277
  */
5253
5278
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
5254
5279
  /**
5255
5280
  * Disallow comparing a single character from a string to a multi-character string.
5256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
5281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
5257
5282
  */
5258
5283
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
5259
5284
  /**
5260
5285
  * Disallow invalid options in `fetch()` and `new Request()`.
5261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
5286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
5262
5287
  */
5263
5288
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5264
5289
  /**
5265
5290
  * Disallow invalid `accept` values on file inputs.
5266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
5291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
5267
5292
  */
5268
5293
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
5294
+ /**
5295
+ * Disallow unknown media features and invalid values for known media features.
5296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
5297
+ */
5298
+ 'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
5269
5299
  /**
5270
5300
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
5301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
5272
5302
  */
5273
5303
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5274
5304
  /**
5275
5305
  * Disallow invalid implementations of well-known symbol methods.
5276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
5306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
5277
5307
  */
5278
5308
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
5279
5309
  /**
5280
5310
  * Disallow identifiers starting with `new` or `class`.
5281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
5311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
5282
5312
  */
5283
5313
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5284
5314
  /**
5285
5315
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
5286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
5316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
5287
5317
  */
5288
5318
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
5289
5319
  /**
5290
5320
  * Disallow event-control method calls after the synchronous event dispatch has finished.
5291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
5321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
5292
5322
  */
5293
5323
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
5294
5324
  /**
5295
5325
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5297
5327
  * @deprecated
5298
5328
  */
5299
5329
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5300
5330
  /**
5301
5331
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
5332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
5303
5333
  */
5304
5334
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5305
5335
  /**
5306
5336
  * Disallow mutating a loop iterable during iteration.
5307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
5337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
5308
5338
  */
5309
5339
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
5310
5340
  /**
5311
5341
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
5342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
5313
5343
  */
5314
5344
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5315
5345
  /**
5316
5346
  * Disallow manually wrapped comments.
5317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
5347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
5318
5348
  */
5319
5349
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
5320
5350
  /**
5321
5351
  * Disallow checking a Map key before accessing a different key.
5322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
5352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
5323
5353
  */
5324
5354
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
5325
5355
  /**
5326
5356
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
5327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
5357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
5328
5358
  */
5329
5359
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
5330
5360
  /**
5331
5361
  * Disallow references to missing local resources.
5332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
5362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
5333
5363
  */
5334
5364
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
5335
5365
  /**
5336
5366
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
5337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
5367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
5338
5368
  */
5339
5369
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
5340
5370
  /**
5341
5371
  * Disallow named usage of default import and export.
5342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
5372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
5343
5373
  */
5344
5374
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5345
5375
  /**
5346
5376
  * Disallow negated array predicate calls.
5347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
5377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
5348
5378
  */
5349
5379
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
5350
5380
  /**
5351
5381
  * Disallow negated comparisons.
5352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
5382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
5353
5383
  */
5354
5384
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
5355
5385
  /**
5356
5386
  * Disallow negated conditions.
5357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
5387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
5358
5388
  */
5359
5389
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5360
5390
  /**
5361
5391
  * Disallow negated expression in equality check.
5362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
5392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
5363
5393
  */
5364
5394
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5365
5395
  /**
5366
5396
  * Disallow nested ternary expressions.
5367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
5397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
5368
5398
  */
5369
5399
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5400
+ /**
5401
+ * Disallow nesting under selector lists with mixed specificity.
5402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
5403
+ */
5404
+ 'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
5370
5405
  /**
5371
5406
  * Disallow `new Array()`.
5372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
5407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
5373
5408
  */
5374
5409
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5375
5410
  /**
5376
5411
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
5412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
5378
5413
  */
5379
5414
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5380
5415
  /**
5381
5416
  * Disallow non-function values with function-style verb prefixes.
5382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
5417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
5383
5418
  */
5384
5419
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
5385
5420
  /**
5386
5421
  * Disallow non-standard properties on built-in objects.
5387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
5422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
5388
5423
  */
5389
5424
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
5390
5425
  /**
5391
5426
  * Disallow the use of the `null` literal.
5392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
5427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
5393
5428
  */
5394
5429
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5395
5430
  /**
5396
5431
  * Disallow the use of objects as default parameters.
5397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
5432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
5398
5433
  */
5399
5434
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5400
5435
  /**
5401
5436
  * Disallow `Object` methods with `Map` or `Set`.
5402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
5437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
5403
5438
  */
5404
5439
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
5405
5440
  /**
5406
5441
  * Disallow optional chaining on undeclared variables.
5407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5408
5443
  */
5409
5444
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
5410
5445
  /**
5411
5446
  * Disallow `process.exit()`.
5412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
5447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
5413
5448
  */
5414
5449
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5415
5450
  /**
5416
5451
  * Disallow comparisons made redundant by an equality check in the same logical AND.
5417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
5452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
5418
5453
  */
5419
5454
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
5455
+ /**
5456
+ * Disallow nested style rules that do not modify the parent selector.
5457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
5458
+ */
5459
+ 'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
5420
5460
  /**
5421
5461
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
5422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
5462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
5423
5463
  */
5424
5464
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
5425
5465
  /**
5426
5466
  * Disallow selector syntax in DOM names.
5427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
5467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
5428
5468
  */
5429
5469
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
5430
5470
  /**
5431
5471
  * Disallow shorthand properties that override related longhand properties.
5432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
5472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
5433
5473
  */
5434
5474
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
5435
5475
  /**
5436
5476
  * Disallow passing single-element arrays to `Promise` methods.
5437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
5477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
5438
5478
  */
5439
5479
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5440
5480
  /**
5441
5481
  * Disallow classes that only have static members.
5442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
5482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
5443
5483
  */
5444
5484
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5445
5485
  /**
5446
5486
  * Prefer comparing values directly over subtracting and comparing to `0`.
5447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
5487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
5448
5488
  */
5449
5489
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
5450
5490
  /**
5451
5491
  * Disallow `then` property.
5452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
5492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
5453
5493
  */
5454
5494
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5455
5495
  /**
5456
5496
  * Disallow assigning `this` to a variable.
5457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
5497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
5458
5498
  */
5459
5499
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5460
5500
  /**
5461
5501
  * Disallow `this` outside of classes.
5462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
5502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
5463
5503
  */
5464
5504
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
5465
5505
  /**
5466
5506
  * Disallow assigning to top-level variables from inside functions.
5467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
5507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
5468
5508
  */
5469
5509
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
5470
5510
  /**
5471
5511
  * Disallow top-level side effects in exported modules.
5472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
5512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
5473
5513
  */
5474
5514
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
5475
5515
  /**
5476
5516
  * Disallow `all` as a transition property.
5477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
5517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
5478
5518
  */
5479
5519
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
5480
5520
  /**
5481
5521
  * Disallow comparing `undefined` using `typeof`.
5482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
5522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
5483
5523
  */
5484
5524
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5485
5525
  /**
5486
5526
  * Disallow referencing methods without calling them.
5487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
5527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
5488
5528
  */
5489
5529
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
5490
5530
  /**
5491
5531
  * Require class members to be declared.
5492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
5532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
5493
5533
  */
5494
5534
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
5535
+ /**
5536
+ * Disallow unknown and noncanonical CSS annotations.
5537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
5538
+ */
5539
+ 'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
5540
+ /**
5541
+ * Disallow unknown pseudo-class and pseudo-element selectors.
5542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
5543
+ */
5544
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
5495
5545
  /**
5496
5546
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5498
5548
  */
5499
5549
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5500
5550
  /**
5501
5551
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
5502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
5552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
5503
5553
  */
5504
5554
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
5505
5555
  /**
5506
5556
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
5557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
5508
5558
  */
5509
5559
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5510
5560
  /**
5511
5561
  * Disallow awaiting non-promise values.
5512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
5562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
5513
5563
  */
5514
5564
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5515
5565
  /**
5516
5566
  * Disallow unnecessary comparisons against boolean literals.
5517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5518
5568
  */
5519
5569
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
5520
5570
  /**
5521
5571
  * Disallow unnecessary options in `fetch()` and `new Request()`.
5522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
5572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
5523
5573
  */
5524
5574
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
5525
5575
  /**
5526
5576
  * Disallow unnecessary `globalThis` references.
5527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
5577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
5528
5578
  */
5529
5579
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
5530
5580
  /**
5531
5581
  * Disallow unnecessary nested ternary expressions.
5532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
5582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
5533
5583
  */
5534
5584
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
5535
5585
  /**
5536
5586
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
5587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
5538
5588
  */
5539
5589
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5540
5590
  /**
5541
5591
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
5592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
5543
5593
  */
5544
5594
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5545
5595
  /**
5546
5596
  * Disallow `Array#splice()` when simpler alternatives exist.
5547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
5597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
5548
5598
  */
5549
5599
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
5550
5600
  /**
5551
5601
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
5552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
5602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
5553
5603
  */
5554
5604
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
5555
5605
  /**
5556
5606
  * Disallow unreadable array destructuring.
5557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
5607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
5558
5608
  */
5559
5609
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
5560
5610
  /**
5561
5611
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
5562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
5612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
5563
5613
  */
5564
5614
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
5565
5615
  /**
5566
5616
  * Disallow unreadable IIFEs.
5567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
5617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
5568
5618
  */
5569
5619
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5570
5620
  /**
5571
5621
  * Disallow unreadable `new` expressions.
5572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
5622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
5573
5623
  */
5574
5624
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
5575
5625
  /**
5576
5626
  * Disallow unreadable object destructuring.
5577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
5627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
5578
5628
  */
5579
5629
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
5580
5630
  /**
5581
5631
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
5582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
5632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
5583
5633
  */
5584
5634
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
5585
5635
  /**
5586
5636
  * Disallow unsafe DOM HTML APIs.
5587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
5637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
5588
5638
  */
5589
5639
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
5590
5640
  /**
5591
5641
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
5592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5593
5643
  */
5594
5644
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
5595
5645
  /**
5596
5646
  * Disallow unsafe values as property keys.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
5647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
5598
5648
  */
5599
5649
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
5600
5650
  /**
5601
5651
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5603
5653
  */
5604
5654
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
5605
5655
  /**
5606
5656
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
5657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
5608
5658
  */
5609
5659
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
5610
5660
  /**
5611
- * Disallow ignoring the return value of selected array methods.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
5661
+ * Disallow unscoped CSS nesting selectors.
5662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
5663
+ */
5664
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
5665
+ /**
5666
+ * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
5667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
5668
+ * @deprecated
5613
5669
  */
5614
5670
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
5671
+ /**
5672
+ * Disallow ignoring the return value of selected built-in methods.
5673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
5674
+ */
5675
+ 'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
5676
+ /**
5677
+ * Disallow discarding lazy iterator helpers.
5678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
5679
+ */
5680
+ 'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
5615
5681
  /**
5616
5682
  * Disallow unused object properties.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
5683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
5618
5684
  */
5619
5685
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5620
5686
  /**
5621
5687
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
5688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
5623
5689
  */
5624
5690
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
5625
5691
  /**
5626
5692
  * Disallow useless type coercions of values that are already of the target type.
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
5693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
5628
5694
  */
5629
5695
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
5630
5696
  /**
5631
5697
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
5698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
5633
5699
  */
5634
5700
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5635
5701
  /**
5636
5702
  * Disallow useless compound assignments such as `x += 0`.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
5703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
5638
5704
  */
5639
5705
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
5640
5706
  /**
5641
5707
  * Disallow useless concatenation of literals.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
5708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
5643
5709
  */
5644
5710
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
5645
5711
  /**
5646
5712
  * Disallow useless `continue` statements.
5647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
5713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
5648
5714
  */
5649
5715
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
5650
5716
  /**
5651
5717
  * Disallow unnecessary existence checks before deletion.
5652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
5718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
5653
5719
  */
5654
5720
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
5655
5721
  /**
5656
5722
  * Disallow `else` after a statement that exits.
5657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
5723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
5658
5724
  */
5659
5725
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
5660
5726
  /**
5661
5727
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5663
5729
  */
5664
5730
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5665
5731
  /**
5666
5732
  * Disallow useless fallback when spreading in object literals.
5667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
5733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
5668
5734
  */
5669
5735
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5670
5736
  /**
5671
5737
  * Disallow unnecessary `.toArray()` on iterators.
5672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
5738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
5673
5739
  */
5674
5740
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
5675
5741
  /**
5676
5742
  * Disallow useless array length check.
5677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
5743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
5678
5744
  */
5679
5745
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5680
5746
  /**
5681
5747
  * Disallow unnecessary operands in logical expressions involving boolean literals.
5682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
5748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
5683
5749
  */
5684
5750
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
5685
5751
  /**
5686
5752
  * Disallow useless overrides of class methods.
5687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
5753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
5688
5754
  */
5689
5755
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
5690
5756
  /**
5691
5757
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
5758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
5693
5759
  */
5694
5760
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5695
5761
  /**
5696
5762
  * Disallow redundant re-exports.
5697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
5763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
5698
5764
  */
5699
5765
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
5700
5766
  /**
5701
5767
  * Disallow simple recursive function calls that can be replaced with a loop.
5702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
5768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
5703
5769
  */
5704
5770
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
5771
+ /**
5772
+ * Disallow unnecessary `Set` construction around `Set` methods.
5773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
5774
+ */
5775
+ 'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
5705
5776
  /**
5706
5777
  * Disallow unnecessary spread.
5707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
5778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
5708
5779
  */
5709
5780
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5710
5781
  /**
5711
5782
  * Disallow useless case in switch statements.
5712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
5783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
5713
5784
  */
5714
5785
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5715
5786
  /**
5716
5787
  * Disallow useless template literal expressions.
5717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
5788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
5718
5789
  */
5719
5790
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
5720
5791
  /**
5721
5792
  * Disallow useless `undefined`.
5722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
5793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
5723
5794
  */
5724
5795
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5796
+ /**
5797
+ * Disallow returning or exporting resources declared with `using`, including through capturing functions.
5798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
5799
+ */
5800
+ 'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
5725
5801
  /**
5726
5802
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
5727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
5803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
5728
5804
  */
5729
5805
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
5730
5806
  /**
5731
5807
  * Disallow number literals with zero fractions or dangling dots.
5732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
5808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
5733
5809
  */
5734
5810
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5735
5811
  /**
5736
5812
  * Enforce proper case for numeric literals.
5737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
5813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
5738
5814
  */
5739
5815
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5740
5816
  /**
5741
5817
  * Enforce the style of numeric separators by correctly grouping digits.
5742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
5818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
5743
5819
  */
5744
5820
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5745
5821
  /**
5746
5822
  * Require assignment operator shorthand where possible.
5747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
5823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
5748
5824
  */
5749
5825
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
5750
5826
  /**
5751
5827
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
5752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
5828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
5753
5829
  */
5754
5830
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
5755
5831
  /**
5756
5832
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
5757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
5833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
5758
5834
  */
5759
5835
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
5760
5836
  /**
5761
5837
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
5838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
5763
5839
  */
5764
5840
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5765
5841
  /**
5766
5842
  * Prefer an options object over a boolean in `.addEventListener()`.
5767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
5843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
5768
5844
  */
5769
5845
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
5770
5846
  /**
5771
5847
  * Prefer `AggregateError` when throwing collected errors.
5772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
5848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
5773
5849
  */
5774
5850
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
5775
5851
  /**
5776
5852
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
5853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
5778
5854
  */
5779
5855
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5780
5856
  /**
5781
5857
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
5858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
5783
5859
  */
5784
5860
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5785
5861
  /**
5786
5862
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
5787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
5863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
5788
5864
  */
5789
5865
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5790
5866
  /**
5791
- * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
5792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
5867
+ * Prefer `Array.fromAsync()` over array accumulation loops.
5868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
5793
5869
  */
5794
5870
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
5795
5871
  /**
5796
5872
  * Prefer using the `Array.from()` mapping function argument.
5797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
5873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
5798
5874
  */
5799
5875
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
5800
5876
  /**
5801
5877
  * Prefer `Array.from({length}, …)` when creating range arrays.
5802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
5878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
5803
5879
  */
5804
5880
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
5805
5881
  /**
5806
5882
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
5883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
5808
5884
  */
5809
5885
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5810
5886
  /**
5811
5887
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
5812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
5888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
5813
5889
  */
5814
5890
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
5815
5891
  /**
5816
5892
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
5817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
5893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
5818
5894
  */
5819
5895
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
5820
5896
  /**
5821
5897
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
5822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
5898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
5823
5899
  */
5824
5900
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
5825
5901
  /**
5826
5902
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
5903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
5828
5904
  */
5829
5905
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5830
5906
  /**
5831
5907
  * Prefer `.at()` method for index access and `String#charAt()`.
5832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
5908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
5833
5909
  */
5834
5910
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5835
5911
  /**
5836
5912
  * Prefer `await` over promise chaining.
5837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
5913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
5838
5914
  */
5839
5915
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
5840
5916
  /**
5841
5917
  * Prefer `BigInt` literals over the constructor.
5842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
5918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
5843
5919
  */
5844
5920
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5845
5921
  /**
5846
5922
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
5923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
5848
5924
  */
5849
5925
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5850
5926
  /**
5851
5927
  * Prefer block statements over IIFEs used only for scoping.
5852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
5928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
5853
5929
  */
5854
5930
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
5855
5931
  /**
5856
5932
  * Prefer directly returning boolean expressions over `if` statements.
5857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
5933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
5858
5934
  */
5859
5935
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
5860
5936
  /**
5861
5937
  * Prefer class field declarations over `this` assignments in constructors.
5862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
5938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
5863
5939
  */
5864
5940
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5865
5941
  /**
5866
5942
  * Prefer using `Element#classList.toggle()` to toggle class names.
5867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
5943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
5868
5944
  */
5869
5945
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5870
5946
  /**
5871
5947
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
5948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
5873
5949
  */
5874
5950
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5875
5951
  /**
5876
- * Prefer early continues over whole-loop conditional wrapping.
5877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
5952
+ * Prefer combining consecutive guards with identical exit statements.
5953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
5954
+ */
5955
+ 'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
5956
+ /**
5957
+ * Prefer early continues over conditionals wrapping the remainder of the loop body.
5958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
5878
5959
  */
5879
5960
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
5880
5961
  /**
5881
5962
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
5963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
5883
5964
  */
5884
5965
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5885
5966
  /**
5886
5967
  * Prefer default parameters over reassignment.
5887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
5968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
5888
5969
  */
5889
5970
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5890
5971
  /**
5891
5972
  * Prefer direct iteration over default iterator method calls.
5892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
5973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
5893
5974
  */
5894
5975
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
5895
5976
  /**
5896
5977
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
5897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
5978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
5898
5979
  */
5899
5980
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
5900
5981
  /**
5901
5982
  * Prefer `Element#append()` over `Node#appendChild()`.
5902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
5983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
5903
5984
  */
5904
5985
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5905
5986
  /**
5906
5987
  * Renamed to `unicorn/dom-node-dataset`.
5907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5908
5989
  * @deprecated
5909
5990
  */
5910
5991
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5911
5992
  /**
5912
5993
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
5913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
5994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
5914
5995
  */
5915
5996
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
5916
5997
  /**
5917
5998
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
5999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
5919
6000
  */
5920
6001
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5921
6002
  /**
5922
- * Prefer `.replaceChildren()` when emptying DOM children.
5923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
6003
+ * Prefer `.replaceChildren()` when replacing DOM children.
6004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
5924
6005
  */
5925
6006
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
5926
6007
  /**
5927
6008
  * Prefer `.textContent` over `.innerText`.
5928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
6009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
5929
6010
  */
5930
6011
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5931
6012
  /**
5932
- * Prefer early returns over full-function conditional wrapping.
5933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
6013
+ * Prefer early returns over conditionals wrapping the remainder of the function body.
6014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
5934
6015
  */
5935
6016
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
5936
6017
  /**
5937
6018
  * Prefer `else if` over adjacent `if` statements with related conditions.
5938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
6019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
5939
6020
  */
5940
6021
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
5941
6022
  /**
5942
6023
  * Prefer `Error.isError()` when checking for errors.
5943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
6024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
5944
6025
  */
5945
6026
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
5946
6027
  /**
5947
6028
  * Prefer `EventTarget` over `EventEmitter`.
5948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
6029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
5949
6030
  */
5950
6031
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5951
6032
  /**
5952
6033
  * Prefer explicit viewport units.
5953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
6034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
5954
6035
  */
5955
6036
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
5956
6037
  /**
5957
6038
  * Prefer `export…from` when re-exporting.
5958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
6039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
5959
6040
  */
5960
6041
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5961
6042
  /**
5962
6043
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
5963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
6044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
5964
6045
  */
5965
6046
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
5966
6047
  /**
5967
6048
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
5968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
6049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
5969
6050
  */
5970
6051
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
5971
6052
  /**
5972
6053
  * Prefer global numeric constants over `Number` static properties.
5973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
6054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
5974
6055
  */
5975
6056
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
5976
6057
  /**
5977
6058
  * Prefer `globalThis` over `window`, `self`, and `global`.
5978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
6059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
5979
6060
  */
5980
6061
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5981
6062
  /**
5982
- * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
5983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
6063
+ * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
6064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
5984
6065
  */
5985
6066
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
5986
6067
  /**
5987
6068
  * Prefer `.has()` when checking existence.
5988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
6069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
5989
6070
  */
5990
6071
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
5991
6072
  /**
5992
6073
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
5993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
6074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
5994
6075
  */
5995
6076
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
5996
6077
  /**
5997
6078
  * Prefer HTTPS over HTTP.
5998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
6079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
5999
6080
  */
6000
6081
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
6001
6082
  /**
6002
6083
  * Prefer identifiers over string literals in import and export specifiers.
6003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
6084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
6004
6085
  */
6005
6086
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
6006
6087
  /**
6007
6088
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
6089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
6009
6090
  */
6010
6091
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6011
6092
  /**
6012
6093
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
6094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
6014
6095
  */
6015
6096
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6016
6097
  /**
6017
6098
  * Prefer `.includes()` over repeated equality comparisons.
6018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
6099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
6019
6100
  */
6020
6101
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
6021
6102
  /**
6022
6103
  * Prefer passing iterables directly to constructors instead of filling empty collections.
6023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
6104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
6024
6105
  */
6025
6106
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
6026
6107
  /**
6027
6108
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
6028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
6109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
6029
6110
  */
6030
6111
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
6031
6112
  /**
6032
6113
  * Prefer iterator helpers over temporary arrays from iterators.
6033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
6114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
6034
6115
  */
6035
6116
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
6036
6117
  /**
6037
6118
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
6038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
6119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
6039
6120
  */
6040
6121
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
6041
6122
  /**
6042
6123
  * Prefer moving `.toArray()` to the end of iterator helper chains.
6043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
6124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
6044
6125
  */
6045
6126
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
6127
+ /**
6128
+ * Prefer `Iterator.zip()` over parallel-array indexing.
6129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
6130
+ */
6131
+ 'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
6132
+ /**
6133
+ * Prefer JSON imports over reading and parsing JSON files.
6134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
6135
+ */
6136
+ 'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
6046
6137
  /**
6047
6138
  * Renamed to `unicorn/consistent-json-file-read`.
6048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
6139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
6049
6140
  * @deprecated
6050
6141
  */
6051
6142
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6052
6143
  /**
6053
6144
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
6054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
6145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
6055
6146
  */
6056
6147
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6057
6148
  /**
6058
6149
  * Prefer `location.assign()` over assigning to `location.href`.
6059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
6150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
6060
6151
  */
6061
6152
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
6062
6153
  /**
6063
6154
  * Prefer using a logical operator over a ternary.
6064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6065
6156
  */
6066
6157
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6067
6158
  /**
6068
6159
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
6069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
6160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
6070
6161
  */
6071
6162
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
6072
6163
  /**
6073
6164
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
6074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
6165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
6075
6166
  */
6076
6167
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
6077
6168
  /**
6078
6169
  * Prefer `Math` constants over their approximate numeric values.
6079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
6170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
6080
6171
  */
6081
6172
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
6082
6173
  /**
6083
6174
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
6175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
6085
6176
  */
6086
6177
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6087
6178
  /**
6088
6179
  * Prefer `Math.trunc()` for truncating numbers.
6089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
6180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
6090
6181
  */
6091
6182
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6183
+ /**
6184
+ * Prefer modern media feature range syntax.
6185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
6186
+ */
6187
+ 'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
6092
6188
  /**
6093
6189
  * Prefer moving ternaries into the minimal varying part of an expression.
6094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
6190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
6095
6191
  */
6096
6192
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
6097
6193
  /**
6098
6194
  * Prefer modern DOM APIs.
6099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
6195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
6100
6196
  */
6101
6197
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6102
6198
  /**
6103
6199
  * Prefer modern `Math` APIs over legacy patterns.
6104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
6200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
6105
6201
  */
6106
6202
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6107
6203
  /**
6108
6204
  * Prefer JavaScript modules (ESM) over CommonJS.
6109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
6205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
6110
6206
  */
6111
6207
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6112
6208
  /**
6113
6209
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
6210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
6115
6211
  */
6116
6212
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6117
6213
  /**
6118
6214
  * Prefer negative index over `.length - index` when possible.
6119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
6215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
6120
6216
  */
6121
6217
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6122
6218
  /**
6123
6219
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
6220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
6125
6221
  */
6126
6222
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6127
6223
  /**
6128
6224
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
6129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
6225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
6130
6226
  */
6131
6227
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
6132
6228
  /**
6133
6229
  * Prefer `Number.isSafeInteger()` over integer checks.
6134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
6230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
6135
6231
  */
6136
6232
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
6137
6233
  /**
6138
6234
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
6139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
6235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
6140
6236
  */
6141
6237
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6142
6238
  /**
6143
6239
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
6144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
6240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
6145
6241
  */
6146
6242
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
6147
6243
  /**
6148
6244
  * Prefer object destructuring defaults over default object literals with spread.
6149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
6245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
6150
6246
  */
6151
6247
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
6152
6248
  /**
6153
6249
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
6250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
6155
6251
  */
6156
6252
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6157
6253
  /**
6158
6254
  * Prefer the most specific `Object` iterable method.
6159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
6255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
6160
6256
  */
6161
6257
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
6162
6258
  /**
6163
6259
  * Prefer observer APIs over resize and scroll listeners with layout reads.
6164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
6260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
6165
6261
  */
6166
6262
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
6167
6263
  /**
6168
6264
  * Prefer omitting the `catch` binding parameter.
6169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
6265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
6170
6266
  */
6171
6267
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6172
6268
  /**
6173
6269
  * Prefer `Path2D` for repeatedly drawn canvas paths.
6174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
6270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
6175
6271
  */
6176
6272
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
6177
6273
  /**
6178
6274
  * Prefer private class fields over the underscore-prefix convention.
6179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
6275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
6180
6276
  */
6181
6277
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
6182
6278
  /**
6183
6279
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
6184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
6280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
6185
6281
  */
6186
6282
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
6187
6283
  /**
6188
6284
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
6189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
6285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
6190
6286
  */
6191
6287
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
6192
6288
  /**
6193
6289
  * Prefer borrowing methods from the prototype instead of the instance.
6194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
6290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
6195
6291
  */
6196
6292
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6197
6293
  /**
6198
6294
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
6199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
6295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
6200
6296
  */
6201
6297
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
6202
6298
  /**
6203
6299
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
6204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
6300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
6205
6301
  */
6206
6302
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
6207
6303
  /**
6208
6304
  * Prefer `Reflect.apply()` over `Function#apply()`.
6209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
6305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
6210
6306
  */
6211
6307
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6212
6308
  /**
6213
6309
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
6214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
6310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
6215
6311
  */
6216
6312
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
6217
6313
  /**
6218
6314
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
6219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
6315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
6220
6316
  */
6221
6317
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6222
6318
  /**
6223
6319
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
6320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
6225
6321
  */
6226
6322
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6227
6323
  /**
6228
6324
  * Prefer `:scope` when using element query selector methods.
6229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
6325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
6230
6326
  */
6231
6327
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
6232
6328
  /**
6233
6329
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
6330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
6235
6331
  */
6236
6332
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
6237
6333
  /**
6238
6334
  * Prefer `Set` methods for Set operations.
6239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
6335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
6240
6336
  */
6241
6337
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
6242
6338
  /**
6243
6339
  * Prefer using `Set#size` instead of `Array#length`.
6244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
6340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
6245
6341
  */
6246
6342
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6247
6343
  /**
6248
6344
  * Prefer arrow function properties over methods with a single return.
6249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
6345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
6250
6346
  */
6251
6347
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
6252
6348
  /**
6253
6349
  * Prefer simple conditions first in logical expressions.
6254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
6350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
6255
6351
  */
6256
6352
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
6257
6353
  /**
6258
6354
  * Prefer a simple comparison function for `Array#sort()`.
6259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
6355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
6260
6356
  */
6261
6357
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
6262
6358
  /**
6263
6359
  * Prefer simplified conditions.
6264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
6360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
6265
6361
  */
6266
6362
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
6267
6363
  /**
6268
6364
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
6269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
6365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
6270
6366
  */
6271
6367
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
6272
6368
  /**
6273
6369
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
6370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
6275
6371
  */
6276
6372
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6277
6373
  /**
6278
6374
  * Prefer a single object destructuring declaration per local const source.
6279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
6375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
6280
6376
  */
6281
6377
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
6282
6378
  /**
6283
6379
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
6284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
6380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
6285
6381
  */
6286
6382
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
6287
6383
  /**
6288
6384
  * Prefer declaring variables in the smallest possible scope.
6289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
6385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
6290
6386
  */
6291
6387
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
6292
6388
  /**
6293
6389
  * Prefer `String#split()` with a limit.
6294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
6390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
6295
6391
  */
6296
6392
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
6297
6393
  /**
6298
6394
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
6299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
6395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
6300
6396
  */
6301
6397
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6302
6398
  /**
6303
6399
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
6304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
6400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
6305
6401
  */
6306
6402
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
6307
6403
  /**
6308
6404
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
6309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
6405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
6310
6406
  */
6311
6407
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
6312
6408
  /**
6313
6409
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
6410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
6315
6411
  */
6316
6412
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6317
6413
  /**
6318
6414
  * Prefer `String#repeat()` for repeated whitespace.
6319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
6415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
6320
6416
  */
6321
6417
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
6322
6418
  /**
6323
6419
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
6324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
6420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
6325
6421
  */
6326
6422
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6327
6423
  /**
6328
6424
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
6425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
6330
6426
  */
6331
6427
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6332
6428
  /**
6333
6429
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
6334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
6430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
6335
6431
  */
6336
6432
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6337
6433
  /**
6338
6434
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
6435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
6340
6436
  */
6341
6437
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6342
6438
  /**
6343
6439
  * Prefer using `structuredClone` to create a deep clone.
6344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
6440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
6345
6441
  */
6346
6442
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6347
6443
  /**
6348
6444
  * Prefer `switch` over multiple `else-if`.
6349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
6445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
6350
6446
  */
6351
6447
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6352
6448
  /**
6353
6449
  * Prefer `Temporal` over `Date`.
6354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
6450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
6355
6451
  */
6356
6452
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
6453
+ /**
6454
+ * Prefer direct Temporal conversion methods.
6455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
6456
+ */
6457
+ 'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
6357
6458
  /**
6358
6459
  * Prefer ternary expressions over simple `if` statements that return or assign values.
6359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
6460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
6360
6461
  */
6361
6462
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6362
6463
  /**
6363
6464
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
6364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
6465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
6365
6466
  */
6366
6467
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
6367
6468
  /**
6368
6469
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
6369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
6470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
6370
6471
  */
6371
6472
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
6372
6473
  /**
6373
6474
  * Prefer top-level await over top-level promises and async function calls.
6374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
6475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
6375
6476
  */
6376
6477
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6377
6478
  /**
6378
6479
  * Enforce throwing `TypeError` in type checking conditions.
6379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
6480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
6380
6481
  */
6381
6482
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6382
6483
  /**
6383
6484
  * Require type literals to be last in union types.
6384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
6485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
6385
6486
  */
6386
6487
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
6387
6488
  /**
6388
- * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
6389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
6489
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
6490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
6390
6491
  */
6391
6492
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
6493
+ /**
6494
+ * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
6495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
6496
+ */
6497
+ 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
6392
6498
  /**
6393
6499
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
6394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
6395
6501
  */
6396
6502
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
6397
6503
  /**
6398
6504
  * Prefer Unicode code point escapes over legacy escape sequences.
6399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
6400
6506
  */
6401
6507
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
6402
6508
  /**
6403
6509
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
6404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
6405
6511
  */
6406
6512
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
6407
6513
  /**
6408
6514
  * Prefer `URL#href` over stringifying a `URL`.
6409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
6410
6516
  */
6411
6517
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
6412
6518
  /**
6413
6519
  * Prefer `URLSearchParams` over manually splitting query strings.
6414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
6415
6521
  */
6416
6522
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
6417
6523
  /**
6418
6524
  * Prefer putting the condition in the while statement.
6419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
6420
6526
  */
6421
6527
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
6422
6528
  /**
6423
6529
  * Renamed to `unicorn/name-replacements`.
6424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6425
6531
  * @deprecated
6426
6532
  */
6427
6533
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
6428
6534
  /**
6429
6535
  * Enforce consistent relative URL style.
6430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
6536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
6431
6537
  */
6432
6538
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6433
6539
  /**
6434
6540
  * Enforce using the separator argument with `Array#join()`.
6435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
6541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
6436
6542
  */
6437
6543
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6438
6544
  /**
6439
6545
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
6440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
6546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
6441
6547
  */
6442
6548
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
6443
6549
  /**
6444
6550
  * Require `CSS.escape()` for interpolated values in CSS selectors.
6445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
6551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
6446
6552
  */
6447
6553
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
6448
6554
  /**
6449
6555
  * Require configured YAML frontmatter fields.
6450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
6556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
6451
6557
  */
6452
6558
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
6453
6559
  /**
6454
6560
  * Require non-empty module attributes for imports and exports
6455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
6561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
6456
6562
  */
6457
6563
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6458
6564
  /**
6459
6565
  * Require non-empty specifier list in import and export statements.
6460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
6566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
6461
6567
  */
6462
6568
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6463
6569
  /**
6464
6570
  * Enforce using the digits argument with `Number#toFixed()`.
6465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6466
6572
  */
6467
6573
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6468
6574
  /**
6469
6575
  * Require passive event listeners for high-frequency events.
6470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
6576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
6471
6577
  */
6472
6578
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
6473
6579
  /**
6474
6580
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
6581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
6476
6582
  */
6477
6583
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6478
6584
  /**
6479
6585
  * Require boolean-returning Proxy traps to return booleans.
6480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
6586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
6481
6587
  */
6482
6588
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
6483
6589
  /**
6484
6590
  * Enforce a consistent style for single-line block comments.
6485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
6591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
6486
6592
  */
6487
6593
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
6488
6594
  /**
6489
6595
  * Enforce better string content.
6490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
6596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
6491
6597
  */
6492
6598
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6493
6599
  /**
6494
6600
  * Enforce consistent brace style for `case` clauses.
6495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
6601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
6496
6602
  */
6497
6603
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6498
6604
  /**
6499
6605
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
6606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
6501
6607
  */
6502
6608
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6503
6609
  /**
6504
6610
  * Fix whitespace-insensitive template indentation.
6505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
6611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
6506
6612
  */
6507
6613
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6508
6614
  /**
6509
6615
  * Enforce consistent case for text encoding identifiers.
6510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
6616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
6511
6617
  */
6512
6618
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6513
6619
  /**
6514
6620
  * Require `new` when creating an error.
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
6621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
6516
6622
  */
6517
6623
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6518
6624
  /**
6519
6625
  * Limit the complexity of `try` blocks.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
6626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
6521
6627
  */
6522
6628
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
6523
6629
  /**
@@ -10996,6 +11102,10 @@ type BaselineJsUseBaseline = [] | [{
10996
11102
  ignore?: string[];
10997
11103
  });
10998
11104
  }];
11105
+ // ----- de-morgan/no-negated-disjunction -----
11106
+ type DeMorganNoNegatedDisjunction = [] | [{
11107
+ enforceForMixedOperators?: boolean;
11108
+ }];
10999
11109
  // ----- e18e/ban-dependencies -----
11000
11110
  type E18EBanDependencies = [] | [{
11001
11111
  presets?: string[];
@@ -11948,6 +12058,22 @@ type JsdocTextEscaping = [] | [{
11948
12058
  escapeHTML?: boolean;
11949
12059
  escapeMarkdown?: boolean;
11950
12060
  }];
12061
+ // ----- jsdoc/ts-ban-ts-comment -----
12062
+ type JsdocTsBanTsComment = [] | [{
12063
+ minimumDescriptionLength?: number;
12064
+ "ts-check"?: (boolean | "allow-with-description" | {
12065
+ descriptionFormat?: string;
12066
+ });
12067
+ "ts-expect-error"?: (boolean | "allow-with-description" | {
12068
+ descriptionFormat?: string;
12069
+ });
12070
+ "ts-ignore"?: (boolean | "allow-with-description" | {
12071
+ descriptionFormat?: string;
12072
+ });
12073
+ "ts-nocheck"?: (boolean | "allow-with-description" | {
12074
+ descriptionFormat?: string;
12075
+ });
12076
+ }];
11951
12077
  // ----- jsdoc/ts-method-signature-style -----
11952
12078
  type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
11953
12079
  enableFixer?: boolean;
@@ -15677,6 +15803,7 @@ type ReactRefreshOnlyExportComponents = [] | [{
15677
15803
  extraHOCs?: string[];
15678
15804
  allowExportNames?: string[];
15679
15805
  allowConstantExport?: boolean;
15806
+ allowCompoundComponents?: boolean;
15680
15807
  checkJS?: boolean;
15681
15808
  }];
15682
15809
  // ----- regexp/hexadecimal-escape -----
@@ -19004,6 +19131,9 @@ type UnicornFilenameCase = [] | [({
19004
19131
  })[];
19005
19132
  multipleFileExtensions?: boolean;
19006
19133
  checkDirectories?: boolean;
19134
+ directoryRoots?: (string | {
19135
+ [k: string]: unknown | undefined;
19136
+ })[];
19007
19137
  } | {
19008
19138
  cases?: {
19009
19139
  camelCase?: boolean;
@@ -19017,6 +19147,9 @@ type UnicornFilenameCase = [] | [({
19017
19147
  })[];
19018
19148
  multipleFileExtensions?: boolean;
19019
19149
  checkDirectories?: boolean;
19150
+ directoryRoots?: (string | {
19151
+ [k: string]: unknown | undefined;
19152
+ })[];
19020
19153
  })];
19021
19154
  // ----- unicorn/id-match -----
19022
19155
  type UnicornIdMatch = [] | [string] | [string, {
@@ -19103,10 +19236,22 @@ type UnicornNoArrayReverse = [] | [{
19103
19236
  type UnicornNoArraySort = [] | [{
19104
19237
  allowExpressionStatement?: boolean;
19105
19238
  }];
19239
+ // ----- unicorn/no-break-in-nested-loop -----
19240
+ type UnicornNoBreakInNestedLoop = [] | [{
19241
+ checkContinue?: boolean;
19242
+ }];
19243
+ // ----- unicorn/no-deprecated-css-features -----
19244
+ type UnicornNoDeprecatedCssFeatures = [] | [{
19245
+ allow?: string[];
19246
+ }];
19106
19247
  // ----- unicorn/no-empty-file -----
19107
19248
  type UnicornNoEmptyFile = [] | [{
19108
19249
  allowComments?: boolean;
19109
19250
  }];
19251
+ // ----- unicorn/no-immediate-mutation -----
19252
+ type UnicornNoImmediateMutation = [] | [{
19253
+ checkConditionals?: boolean;
19254
+ }];
19110
19255
  // ----- unicorn/no-instanceof-builtins -----
19111
19256
  type UnicornNoInstanceofBuiltins = [] | [{
19112
19257
  useErrorIsError?: boolean;
@@ -19147,6 +19292,10 @@ type UnicornNoNull = [] | [{
19147
19292
  type UnicornNoTypeofUndefined = [] | [{
19148
19293
  checkGlobalVariables?: boolean;
19149
19294
  }];
19295
+ // ----- unicorn/no-unknown-pseudo-selectors -----
19296
+ type UnicornNoUnknownPseudoSelectors = [] | [{
19297
+ allow?: string[];
19298
+ }];
19150
19299
  // ----- unicorn/no-unnecessary-polyfills -----
19151
19300
  type UnicornNoUnnecessaryPolyfills = [] | [{
19152
19301
  targets?: (string | string[] | {
@@ -19157,6 +19306,10 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
19157
19306
  type UnicornNoUnreadableArrayDestructuring = [] | [{
19158
19307
  maximumIgnoredElements?: number;
19159
19308
  }];
19309
+ // ----- unicorn/no-unscoped-css-nesting-selector -----
19310
+ type UnicornNoUnscopedCssNestingSelector = [] | [{
19311
+ scopingRootAtRules?: string[];
19312
+ }];
19160
19313
  // ----- unicorn/no-useless-undefined -----
19161
19314
  type UnicornNoUselessUndefined = [] | [{
19162
19315
  checkArguments?: boolean;
@@ -19210,9 +19363,14 @@ type UnicornPreferAt = [] | [{
19210
19363
  getLastElementFunctions?: string[];
19211
19364
  checkAllIndexAccess?: boolean;
19212
19365
  }];
19366
+ // ----- unicorn/prefer-combined-guards -----
19367
+ type UnicornPreferCombinedGuards = [] | [{
19368
+ checkCompoundConditions?: boolean;
19369
+ }];
19213
19370
  // ----- unicorn/prefer-continue -----
19214
19371
  type UnicornPreferContinue = [] | [{
19215
19372
  maximumStatements?: number;
19373
+ checkShortBodies?: boolean;
19216
19374
  }];
19217
19375
  // ----- unicorn/prefer-dom-node-html-methods -----
19218
19376
  type UnicornPreferDomNodeHtmlMethods = [] | [{
@@ -19222,6 +19380,7 @@ type UnicornPreferDomNodeHtmlMethods = [] | [{
19222
19380
  // ----- unicorn/prefer-early-return -----
19223
19381
  type UnicornPreferEarlyReturn = [] | [{
19224
19382
  maximumStatements?: number;
19383
+ checkShortBodies?: boolean;
19225
19384
  }];
19226
19385
  // ----- unicorn/prefer-explicit-viewport-units -----
19227
19386
  type UnicornPreferExplicitViewportUnits = [] | [{