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