@moso/eslint-config 3.0.2 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -4638,1670 +4638,1715 @@ interface RuleOptions {
4638
4638
  'toml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
4639
4639
  /**
4640
4640
  * Prefer better DOM traversal APIs.
4641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/better-dom-traversing.md
4641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
4642
4642
  */
4643
4643
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
4644
4644
  /**
4645
4645
  * Removed. Prefer `eslint-plugin-regexp`
4646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#better-regex
4646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4647
4647
  * @deprecated
4648
4648
  */
4649
4649
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
4650
4650
  /**
4651
4651
  * Enforce a specific parameter name in catch clauses.
4652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/catch-error-name.md
4652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
4653
4653
  */
4654
4654
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
4655
4655
  /**
4656
4656
  * Enforce consistent class references in static methods.
4657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/class-reference-in-static-methods.md
4657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
4658
4658
  */
4659
4659
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
4660
4660
  /**
4661
4661
  * Enforce better comment content.
4662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/comment-content.md
4662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
4663
4663
  */
4664
4664
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
4665
4665
  /**
4666
4666
  * Enforce consistent assertion style with `node:assert`.
4667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-assert.md
4667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
4668
4668
  */
4669
4669
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
4670
4670
  /**
4671
4671
  * Enforce consistent naming for boolean names.
4672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-boolean-name.md
4672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
4673
4673
  */
4674
4674
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
4675
4675
  /**
4676
4676
  * Enforce consistent class member order.
4677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-class-member-order.md
4677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
4678
4678
  */
4679
4679
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
4680
4680
  /**
4681
4681
  * Enforce consistent spelling of compound words in identifiers.
4682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-compound-words.md
4682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
4683
4683
  */
4684
4684
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
4685
4685
  /**
4686
4686
  * Enforce consistent conditional object spread style.
4687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-conditional-object-spread.md
4687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
4688
4688
  */
4689
4689
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
4690
4690
  /**
4691
4691
  * Prefer passing `Date` directly to the constructor when cloning.
4692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-date-clone.md
4692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
4693
4693
  */
4694
4694
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
4695
4695
  /**
4696
4696
  * Use destructured variables over properties.
4697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-destructuring.md
4697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
4698
4698
  */
4699
4699
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
4700
4700
  /**
4701
4701
  * Prefer consistent types when spreading a ternary in an array literal.
4702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-empty-array-spread.md
4702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
4703
4703
  */
4704
4704
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
4705
4705
  /**
4706
4706
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-existence-index-check.md
4707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
4708
4708
  */
4709
4709
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
4710
4710
  /**
4711
4711
  * Enforce consistent decorator position on exported classes.
4712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-export-decorator-position.md
4712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
4713
4713
  */
4714
4714
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
4715
4715
  /**
4716
4716
  * Move function definitions to the highest possible scope.
4717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-scoping.md
4717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
4718
4718
  */
4719
4719
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4720
4720
  /**
4721
4721
  * Enforce function syntax by role.
4722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-style.md
4722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
4723
4723
  */
4724
4724
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
4725
4725
  /**
4726
4726
  * Enforce consistent JSON file reads before `JSON.parse()`.
4727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-json-file-read.md
4727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
4728
4728
  */
4729
4729
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
4730
4730
  /**
4731
4731
  * Enforce consistent optional chaining for same-base member access.
4732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-optional-chaining.md
4732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
4733
4733
  */
4734
4734
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
4735
4735
  /**
4736
4736
  * Enforce consistent style for escaping `${` in template literals.
4737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-template-literal-escape.md
4737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
4738
4738
  */
4739
4739
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
4740
4740
  /**
4741
4741
  * Enforce consistent labels on tuple type elements.
4742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-tuple-labels.md
4742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
4743
4743
  */
4744
4744
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
4745
4745
  /**
4746
4746
  * Enforce correct `Error` subclassing.
4747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/custom-error-definition.md
4747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
4748
4748
  */
4749
4749
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
4750
4750
  /**
4751
4751
  * Enforce consistent default export declarations.
4752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/default-export-style.md
4752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
4753
4753
  */
4754
4754
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
4755
4755
  /**
4756
4756
  * Enforce consistent style for DOM element dataset access.
4757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/dom-node-dataset.md
4757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
4758
4758
  */
4759
4759
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
4760
4760
  /**
4761
4761
  * Enforce no spaces between braces.
4762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/empty-brace-spaces.md
4762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
4763
4763
  */
4764
4764
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
4765
4765
  /**
4766
4766
  * Enforce passing a `message` value when creating a built-in error.
4767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/error-message.md
4767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
4768
4768
  */
4769
4769
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
4770
4770
  /**
4771
4771
  * Require escape sequences to use uppercase or lowercase values.
4772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/escape-case.md
4772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
4773
4773
  */
4774
4774
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
4775
4775
  /**
4776
4776
  * Add expiration conditions to TODO comments.
4777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/expiring-todo-comments.md
4777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
4778
4778
  */
4779
4779
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4780
4780
  /**
4781
4781
  * Enforce explicitly comparing the `length` or `size` property of a value.
4782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-length-check.md
4782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
4783
4783
  */
4784
4784
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4785
4785
  /**
4786
4786
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
4787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-timer-delay.md
4787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
4788
4788
  */
4789
4789
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
4790
4790
  /**
4791
4791
  * Enforce a case style for filenames and directory names.
4792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/filename-case.md
4792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
4793
4793
  */
4794
4794
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
4795
4795
  /**
4796
4796
  * Require identifiers to match a specified regular expression.
4797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/id-match.md
4797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
4798
4798
  */
4799
4799
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
4800
4800
  /**
4801
4801
  * Enforce specific import styles per module.
4802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/import-style.md
4802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
4803
4803
  */
4804
4804
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
4805
4805
  /**
4806
4806
  * Prevent usage of variables from outside the scope of isolated functions.
4807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/isolated-functions.md
4807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
4808
4808
  */
4809
4809
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4810
4810
  /**
4811
4811
  * Require or disallow logical assignment operator shorthand
4812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/logical-assignment-operators.md
4812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
4813
4813
  */
4814
4814
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
4815
4815
  /**
4816
4816
  * Limit the depth of nested calls.
4817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/max-nested-calls.md
4817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
4818
4818
  */
4819
4819
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
4820
4820
  /**
4821
4821
  * Enforce replacements for variable, property, and filenames.
4822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/name-replacements.md
4822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
4823
4823
  */
4824
4824
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
4825
4825
  /**
4826
4826
  * Enforce correct use of `new` for builtin constructors.
4827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/new-for-builtins.md
4827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
4828
4828
  */
4829
4829
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
4830
4830
  /**
4831
4831
  * Enforce specifying rules to disable in `eslint-disable` comments.
4832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-abusive-eslint-disable.md
4832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
4833
4833
  */
4834
4834
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
4835
4835
  /**
4836
4836
  * Disallow recursive access to `this` within getters and setters.
4837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accessor-recursion.md
4837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
4838
4838
  */
4839
4839
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
4840
4840
  /**
4841
4841
  * Disallow bitwise operators where a logical operator was likely intended.
4842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accidental-bitwise-operator.md
4842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
4843
4843
  */
4844
4844
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
4845
4845
  /**
4846
4846
  * Disallow anonymous functions and classes as the default export.
4847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-anonymous-default-export.md
4847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
4848
4848
  */
4849
4849
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
4850
4850
  /**
4851
4851
  * Prevent passing a function reference directly to iterator methods.
4852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-callback-reference.md
4852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
4853
4853
  */
4854
4854
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
4855
4855
  /**
4856
4856
  * Disallow array accumulation with `Array#concat()` in loops.
4857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-concat-in-loop.md
4857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
4858
4858
  */
4859
4859
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
4860
4860
  /**
4861
4861
  * Disallow using reference values as `Array#fill()` values.
4862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-fill-with-reference-type.md
4862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
4863
4863
  */
4864
4864
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
4865
4865
  /**
4866
4866
  * Disallow `.fill()` after `Array.from({length: …})`.
4867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-from-fill.md
4867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
4868
4868
  */
4869
4869
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
4870
4870
  /**
4871
4871
  * Disallow front-of-array mutation.
4872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-front-mutation.md
4872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
4873
4873
  */
4874
4874
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
4875
4875
  /**
4876
4876
  * Disallow using the `this` argument in array methods.
4877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-method-this-argument.md
4877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
4878
4878
  */
4879
4879
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
4880
4880
  /**
4881
4881
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4883
4883
  * @deprecated
4884
4884
  */
4885
4885
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
4886
4886
  /**
4887
4887
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reduce.md
4888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
4889
4889
  */
4890
4890
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
4891
4891
  /**
4892
4892
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reverse.md
4893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
4894
4894
  */
4895
4895
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
4896
4896
  /**
4897
4897
  * Prefer `Array#toSorted()` over `Array#sort()`.
4898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort.md
4898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
4899
4899
  */
4900
4900
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
4901
4901
  /**
4902
4902
  * Disallow sorting arrays to get the minimum or maximum value.
4903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort-for-min-max.md
4903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
4904
4904
  */
4905
4905
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
4906
4906
  /**
4907
4907
  * Prefer `Array#toSpliced()` over `Array#splice()`.
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-splice.md
4908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
4909
4909
  */
4910
4910
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
4911
4911
  /**
4912
4912
  * Disallow asterisk prefixes in documentation comments.
4913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
4913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
4914
4914
  */
4915
4915
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
4916
4916
  /**
4917
4917
  * Disallow async functions as `Promise#finally()` callbacks.
4918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-async-promise-finally.md
4918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
4919
4919
  */
4920
4920
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
4921
4921
  /**
4922
4922
  * Disallow member access from await expression.
4923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-expression-member.md
4923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
4924
4924
  */
4925
4925
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
4926
4926
  /**
4927
4927
  * Disallow using `await` in `Promise` method parameters.
4928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-in-promise-methods.md
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
4929
4929
  */
4930
4930
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
4931
4931
  /**
4932
4932
  * Disallow unnecessary `Blob` to `File` conversion.
4933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-blob-to-file.md
4933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
4934
4934
  */
4935
4935
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
4936
4936
  /**
4937
4937
  * Disallow boolean-returning sort comparators.
4938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-boolean-sort-comparator.md
4938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
4939
4939
  */
4940
4940
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
4941
4941
  /**
4942
4942
  * Disallow `break` and `continue` in nested loops and switches inside loops.
4943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-break-in-nested-loop.md
4943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
4944
4944
  */
4945
4945
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
4946
4946
  /**
4947
4947
  * Prefer drawing canvases directly instead of converting them to images.
4948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-canvas-to-image.md
4948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
4949
4949
  */
4950
4950
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
4951
4951
  /**
4952
4952
  * Disallow chained comparisons such as `a < b < c`.
4953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-chained-comparison.md
4953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
4954
4954
  */
4955
4955
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
4956
4956
  /**
4957
4957
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
4958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-collection-bracket-access.md
4958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
4959
4959
  */
4960
4960
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
4961
4961
  /**
4962
4962
  * Disallow dynamic object property existence checks.
4963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-computed-property-existence-check.md
4963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
4964
4964
  */
4965
4965
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
4966
4966
  /**
4967
4967
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
4968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-splice.md
4968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
4969
4969
  */
4970
4970
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
4971
4971
  /**
4972
4972
  * Disallow confusing uses of `Array#with()`.
4973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-with.md
4973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
4974
4974
  */
4975
4975
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
4976
4976
  /**
4977
4977
  * Do not use leading/trailing space between `console.log` parameters.
4978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-console-spaces.md
4978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
4979
4979
  */
4980
4980
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
4981
4981
  /**
4982
4982
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
4983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-constant-zero-expression.md
4983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
4984
4984
  */
4985
4985
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
4986
4986
  /**
4987
4987
  * Disallow declarations before conditional early exits when they are only used after the exit.
4988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-declarations-before-early-exit.md
4988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
4989
4989
  */
4990
4990
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
4991
4991
  /**
4992
4992
  * Do not use `document.cookie` directly.
4993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-document-cookie.md
4993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
4994
4994
  */
4995
4995
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
4996
4996
  /**
4997
4997
  * Disallow two comparisons of the same operands that can be combined into one.
4998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-double-comparison.md
4998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
4999
4999
  */
5000
5000
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
5001
5001
  /**
5002
5002
  * Disallow duplicate adjacent branches in if chains.
5003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-if-branches.md
5003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
5004
5004
  */
5005
5005
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
5006
5006
  /**
5007
5007
  * Disallow adjacent duplicate operands in logical expressions.
5008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-logical-operands.md
5008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
5009
5009
  */
5010
5010
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
5011
5011
  /**
5012
5012
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
5013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-loops.md
5013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
5014
5014
  */
5015
5015
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
5016
5016
  /**
5017
5017
  * Disallow duplicate values in `Set` constructor array literals.
5018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-set-values.md
5018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
5019
5019
  */
5020
5020
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
5021
5021
  /**
5022
5022
  * Disallow empty files.
5023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-empty-file.md
5023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
5024
5024
  */
5025
5025
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
5026
5026
  /**
5027
5027
  * Disallow assigning to built-in error properties.
5028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-error-property-assignment.md
5028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
5029
5029
  */
5030
5030
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
5031
5031
  /**
5032
5032
  * Disallow exports in scripts.
5033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-exports-in-scripts.md
5033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
5034
5034
  */
5035
5035
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
5036
5036
  /**
5037
5037
  * Prefer `for…of` over the `forEach` method.
5038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-each.md
5038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
5039
5039
  */
5040
5040
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
5041
5041
  /**
5042
5042
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-loop.md
5043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
5044
5044
  */
5045
5045
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5046
5046
  /**
5047
5047
  * Disallow assigning properties on the global object.
5048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-global-object-property-assignment.md
5048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
5049
5049
  */
5050
5050
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
5051
5051
  /**
5052
5052
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
5053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
5053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
5054
5054
  * @deprecated
5055
5055
  */
5056
5056
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5057
5057
  /**
5058
5058
  * Disallow immediate mutation after variable assignment.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-immediate-mutation.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
5060
5060
  */
5061
5061
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5062
5062
  /**
5063
5063
  * Disallow impossible comparisons against `.length` or `.size`.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-impossible-length-comparison.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
5065
5065
  */
5066
5066
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
5067
5067
  /**
5068
5068
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-query-selector.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
5070
5070
  */
5071
5071
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
5072
5072
  /**
5073
5073
  * Disallow incorrect template literal interpolation syntax.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-template-string-interpolation.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
5075
5075
  */
5076
5076
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
5077
5077
  /**
5078
5078
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5080
5080
  * @deprecated
5081
5081
  */
5082
5082
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5083
5083
  /**
5084
5084
  * Disallow `instanceof` with built-in objects
5085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-instanceof-builtins.md
5085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
5086
5086
  */
5087
5087
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5088
5088
  /**
5089
5089
  * Disallow calling functions and constructors with an invalid number of arguments.
5090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-argument-count.md
5090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
5091
5091
  */
5092
5092
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
5093
5093
  /**
5094
5094
  * Disallow comparing a single character from a string to a multi-character string.
5095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-character-comparison.md
5095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
5096
5096
  */
5097
5097
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
5098
5098
  /**
5099
5099
  * Disallow invalid options in `fetch()` and `new Request()`.
5100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-fetch-options.md
5100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
5101
5101
  */
5102
5102
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5103
5103
  /**
5104
5104
  * Disallow invalid `accept` values on file inputs.
5105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-file-input-accept.md
5105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
5106
5106
  */
5107
5107
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
5108
5108
  /**
5109
5109
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-remove-event-listener.md
5110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
5111
5111
  */
5112
5112
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5113
5113
  /**
5114
5114
  * Disallow invalid implementations of well-known symbol methods.
5115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-well-known-symbol-methods.md
5115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
5116
5116
  */
5117
5117
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
5118
5118
  /**
5119
5119
  * Disallow identifiers starting with `new` or `class`.
5120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-keyword-prefix.md
5120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
5121
5121
  */
5122
5122
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5123
5123
  /**
5124
5124
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
5125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-current-target-access.md
5125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
5126
5126
  */
5127
5127
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
5128
5128
  /**
5129
5129
  * Disallow event-control method calls after the synchronous event dispatch has finished.
5130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-event-control.md
5130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
5131
5131
  */
5132
5132
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
5133
5133
  /**
5134
5134
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5136
5136
  * @deprecated
5137
5137
  */
5138
5138
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5139
5139
  /**
5140
5140
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-lonely-if.md
5141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
5142
5142
  */
5143
5143
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5144
5144
  /**
5145
5145
  * Disallow mutating a loop iterable during iteration.
5146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-loop-iterable-mutation.md
5146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
5147
5147
  */
5148
5148
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
5149
5149
  /**
5150
5150
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-magic-array-flat-depth.md
5151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
5152
5152
  */
5153
5153
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5154
5154
  /**
5155
5155
  * Disallow manually wrapped comments.
5156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-manually-wrapped-comments.md
5156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
5157
5157
  */
5158
5158
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
5159
5159
  /**
5160
5160
  * Disallow checking a Map key before accessing a different key.
5161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-mismatched-map-key.md
5161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
5162
5162
  */
5163
5163
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
5164
5164
  /**
5165
5165
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
5166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-misrefactored-assignment.md
5166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
5167
5167
  */
5168
5168
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
5169
+ /**
5170
+ * Disallow references to missing local resources.
5171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
5172
+ */
5173
+ 'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
5174
+ /**
5175
+ * Disallow calling Promise executor resolver functions more than once on the same execution path.
5176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
5177
+ */
5178
+ 'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
5169
5179
  /**
5170
5180
  * Disallow named usage of default import and export.
5171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-named-default.md
5181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
5172
5182
  */
5173
5183
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5174
5184
  /**
5175
5185
  * Disallow negated array predicate calls.
5176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-array-predicate.md
5186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
5177
5187
  */
5178
5188
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
5179
5189
  /**
5180
5190
  * Disallow negated comparisons.
5181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-comparison.md
5191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
5182
5192
  */
5183
5193
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
5184
5194
  /**
5185
5195
  * Disallow negated conditions.
5186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-condition.md
5196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
5187
5197
  */
5188
5198
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5189
5199
  /**
5190
5200
  * Disallow negated expression in equality check.
5191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negation-in-equality-check.md
5201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
5192
5202
  */
5193
5203
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5194
5204
  /**
5195
5205
  * Disallow nested ternary expressions.
5196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nested-ternary.md
5206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
5197
5207
  */
5198
5208
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5199
5209
  /**
5200
5210
  * Disallow `new Array()`.
5201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-array.md
5211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
5202
5212
  */
5203
5213
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5204
5214
  /**
5205
5215
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-buffer.md
5216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
5207
5217
  */
5208
5218
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5209
5219
  /**
5210
5220
  * Disallow non-function values with function-style verb prefixes.
5211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-non-function-verb-prefix.md
5221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
5212
5222
  */
5213
5223
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
5214
5224
  /**
5215
5225
  * Disallow non-standard properties on built-in objects.
5216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nonstandard-builtin-properties.md
5226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
5217
5227
  */
5218
5228
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
5219
5229
  /**
5220
5230
  * Disallow the use of the `null` literal.
5221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-null.md
5231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
5222
5232
  */
5223
5233
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5224
5234
  /**
5225
5235
  * Disallow the use of objects as default parameters.
5226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-as-default-parameter.md
5236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
5227
5237
  */
5228
5238
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5229
5239
  /**
5230
5240
  * Disallow `Object` methods with `Map` or `Set`.
5231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-methods-with-collections.md
5241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
5232
5242
  */
5233
5243
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
5234
5244
  /**
5235
5245
  * Disallow optional chaining on undeclared variables.
5236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5237
5247
  */
5238
5248
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
5239
5249
  /**
5240
5250
  * Disallow `process.exit()`.
5241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-process-exit.md
5251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
5242
5252
  */
5243
5253
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5244
5254
  /**
5245
5255
  * Disallow comparisons made redundant by an equality check in the same logical AND.
5246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-redundant-comparison.md
5256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
5247
5257
  */
5248
5258
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
5249
5259
  /**
5250
5260
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
5251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-return-array-push.md
5261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
5252
5262
  */
5253
5263
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
5254
5264
  /**
5255
5265
  * Disallow selector syntax in DOM names.
5256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-selector-as-dom-name.md
5266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
5257
5267
  */
5258
5268
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
5269
+ /**
5270
+ * Disallow shorthand properties that override related longhand properties.
5271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
5272
+ */
5273
+ 'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
5259
5274
  /**
5260
5275
  * Disallow passing single-element arrays to `Promise` methods.
5261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-single-promise-in-promise-methods.md
5276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
5262
5277
  */
5263
5278
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5264
5279
  /**
5265
5280
  * Disallow classes that only have static members.
5266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-static-only-class.md
5281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
5267
5282
  */
5268
5283
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5269
5284
  /**
5270
5285
  * Prefer comparing values directly over subtracting and comparing to `0`.
5271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-subtraction-comparison.md
5286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
5272
5287
  */
5273
5288
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
5274
5289
  /**
5275
5290
  * Disallow `then` property.
5276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-thenable.md
5291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
5277
5292
  */
5278
5293
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5279
5294
  /**
5280
5295
  * Disallow assigning `this` to a variable.
5281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-assignment.md
5296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
5282
5297
  */
5283
5298
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5284
5299
  /**
5285
5300
  * Disallow `this` outside of classes.
5286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-outside-of-class.md
5301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
5287
5302
  */
5288
5303
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
5289
5304
  /**
5290
5305
  * Disallow assigning to top-level variables from inside functions.
5291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-assignment-in-function.md
5306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
5292
5307
  */
5293
5308
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
5294
5309
  /**
5295
5310
  * Disallow top-level side effects in exported modules.
5296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-side-effects.md
5311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
5297
5312
  */
5298
5313
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
5314
+ /**
5315
+ * Disallow `all` as a transition property.
5316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
5317
+ */
5318
+ 'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
5299
5319
  /**
5300
5320
  * Disallow comparing `undefined` using `typeof`.
5301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-typeof-undefined.md
5321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
5302
5322
  */
5303
5323
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5304
5324
  /**
5305
5325
  * Disallow referencing methods without calling them.
5306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-uncalled-method.md
5326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
5307
5327
  */
5308
5328
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
5309
5329
  /**
5310
5330
  * Require class members to be declared.
5311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-undeclared-class-members.md
5331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
5312
5332
  */
5313
5333
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
5314
5334
  /**
5315
5335
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-depth.md
5336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5317
5337
  */
5318
5338
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5319
5339
  /**
5320
5340
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
5321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-map.md
5341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
5322
5342
  */
5323
5343
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
5324
5344
  /**
5325
5345
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-splice-count.md
5346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
5327
5347
  */
5328
5348
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5329
5349
  /**
5330
5350
  * Disallow awaiting non-promise values.
5331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-await.md
5351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
5332
5352
  */
5333
5353
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5334
5354
  /**
5335
5355
  * Disallow unnecessary comparisons against boolean literals.
5336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-boolean-comparison.md
5356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5337
5357
  */
5338
5358
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
5339
5359
  /**
5340
5360
  * Disallow unnecessary options in `fetch()` and `new Request()`.
5341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-fetch-options.md
5361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
5342
5362
  */
5343
5363
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
5344
5364
  /**
5345
5365
  * Disallow unnecessary `globalThis` references.
5346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-global-this.md
5366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
5347
5367
  */
5348
5368
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
5349
5369
  /**
5350
5370
  * Disallow unnecessary nested ternary expressions.
5351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-nested-ternary.md
5371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
5352
5372
  */
5353
5373
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
5354
5374
  /**
5355
5375
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-polyfills.md
5376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
5357
5377
  */
5358
5378
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5359
5379
  /**
5360
5380
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-slice-end.md
5381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
5362
5382
  */
5363
5383
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5364
5384
  /**
5365
5385
  * Disallow `Array#splice()` when simpler alternatives exist.
5366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-splice.md
5386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
5367
5387
  */
5368
5388
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
5389
+ /**
5390
+ * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
5391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
5392
+ */
5393
+ 'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
5369
5394
  /**
5370
5395
  * Disallow unreadable array destructuring.
5371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-array-destructuring.md
5396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
5372
5397
  */
5373
5398
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
5374
5399
  /**
5375
5400
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
5376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-for-of-expression.md
5401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
5377
5402
  */
5378
5403
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
5379
5404
  /**
5380
5405
  * Disallow unreadable IIFEs.
5381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-iife.md
5406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
5382
5407
  */
5383
5408
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5384
5409
  /**
5385
5410
  * Disallow unreadable `new` expressions.
5386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-new-expression.md
5411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
5387
5412
  */
5388
5413
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
5389
5414
  /**
5390
5415
  * Disallow unreadable object destructuring.
5391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-object-destructuring.md
5416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
5392
5417
  */
5393
5418
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
5394
5419
  /**
5395
5420
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
5396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-buffer-conversion.md
5421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
5397
5422
  */
5398
5423
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
5399
5424
  /**
5400
5425
  * Disallow unsafe DOM HTML APIs.
5401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-dom-html.md
5426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
5402
5427
  */
5403
5428
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
5404
5429
  /**
5405
5430
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
5406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-promise-all-settled-values.md
5431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5407
5432
  */
5408
5433
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
5409
5434
  /**
5410
5435
  * Disallow unsafe values as property keys.
5411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-property-key.md
5436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
5412
5437
  */
5413
5438
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
5414
5439
  /**
5415
5440
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
5416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-string-replacement.md
5441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
5417
5442
  */
5418
5443
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
5419
5444
  /**
5420
5445
  * Disallow ignoring the return value of selected array methods.
5421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-array-method-return.md
5446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
5422
5447
  */
5423
5448
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
5424
5449
  /**
5425
5450
  * Disallow unused object properties.
5426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-properties.md
5451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
5427
5452
  */
5428
5453
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5429
5454
  /**
5430
5455
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
5431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-boolean-cast.md
5456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
5432
5457
  */
5433
5458
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
5434
5459
  /**
5435
5460
  * Disallow useless type coercions of values that are already of the target type.
5436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-coercion.md
5461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
5437
5462
  */
5438
5463
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
5439
5464
  /**
5440
5465
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-collection-argument.md
5466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
5442
5467
  */
5443
5468
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5444
5469
  /**
5445
5470
  * Disallow useless compound assignments such as `x += 0`.
5446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-compound-assignment.md
5471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
5447
5472
  */
5448
5473
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
5449
5474
  /**
5450
5475
  * Disallow useless concatenation of literals.
5451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-concat.md
5476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
5452
5477
  */
5453
5478
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
5454
5479
  /**
5455
5480
  * Disallow useless `continue` statements.
5456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-continue.md
5481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
5457
5482
  */
5458
5483
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
5459
5484
  /**
5460
5485
  * Disallow unnecessary existence checks before deletion.
5461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-delete-check.md
5486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
5462
5487
  */
5463
5488
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
5464
5489
  /**
5465
5490
  * Disallow `else` after a statement that exits.
5466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-else.md
5491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
5467
5492
  */
5468
5493
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
5469
5494
  /**
5470
5495
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-error-capture-stack-trace.md
5496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5472
5497
  */
5473
5498
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5474
5499
  /**
5475
5500
  * Disallow useless fallback when spreading in object literals.
5476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-fallback-in-spread.md
5501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
5477
5502
  */
5478
5503
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5479
5504
  /**
5480
5505
  * Disallow unnecessary `.toArray()` on iterators.
5481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-iterator-to-array.md
5506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
5482
5507
  */
5483
5508
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
5484
5509
  /**
5485
5510
  * Disallow useless array length check.
5486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-length-check.md
5511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
5487
5512
  */
5488
5513
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5489
5514
  /**
5490
5515
  * Disallow unnecessary operands in logical expressions involving boolean literals.
5491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-logical-operand.md
5516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
5492
5517
  */
5493
5518
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
5494
5519
  /**
5495
5520
  * Disallow useless overrides of class methods.
5496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-override.md
5521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
5497
5522
  */
5498
5523
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
5499
5524
  /**
5500
5525
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-promise-resolve-reject.md
5526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
5502
5527
  */
5503
5528
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5529
+ /**
5530
+ * Disallow redundant re-exports.
5531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
5532
+ */
5533
+ 'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
5504
5534
  /**
5505
5535
  * Disallow simple recursive function calls that can be replaced with a loop.
5506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-recursion.md
5536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
5507
5537
  */
5508
5538
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
5509
5539
  /**
5510
5540
  * Disallow unnecessary spread.
5511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-spread.md
5541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
5512
5542
  */
5513
5543
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5514
5544
  /**
5515
5545
  * Disallow useless case in switch statements.
5516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-switch-case.md
5546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
5517
5547
  */
5518
5548
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5519
5549
  /**
5520
5550
  * Disallow useless template literal expressions.
5521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-template-literals.md
5551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
5522
5552
  */
5523
5553
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
5524
5554
  /**
5525
5555
  * Disallow useless `undefined`.
5526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-undefined.md
5556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
5527
5557
  */
5528
5558
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5529
5559
  /**
5530
5560
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
5531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-xor-as-exponentiation.md
5561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
5532
5562
  */
5533
5563
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
5534
5564
  /**
5535
5565
  * Disallow number literals with zero fractions or dangling dots.
5536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-zero-fractions.md
5566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
5537
5567
  */
5538
5568
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5539
5569
  /**
5540
5570
  * Enforce proper case for numeric literals.
5541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/number-literal-case.md
5571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
5542
5572
  */
5543
5573
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5544
5574
  /**
5545
5575
  * Enforce the style of numeric separators by correctly grouping digits.
5546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/numeric-separators-style.md
5576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
5547
5577
  */
5548
5578
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5549
5579
  /**
5550
5580
  * Require assignment operator shorthand where possible.
5551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/operator-assignment.md
5581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
5552
5582
  */
5553
5583
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
5554
5584
  /**
5555
5585
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
5556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-any.md
5586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
5557
5587
  */
5558
5588
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
5559
5589
  /**
5560
5590
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
5561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-timeout.md
5591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
5562
5592
  */
5563
5593
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
5564
5594
  /**
5565
5595
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener.md
5596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
5567
5597
  */
5568
5598
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5569
5599
  /**
5570
5600
  * Prefer an options object over a boolean in `.addEventListener()`.
5571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener-options.md
5601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
5572
5602
  */
5573
5603
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
5574
5604
  /**
5575
5605
  * Prefer `AggregateError` when throwing collected errors.
5576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-aggregate-error.md
5606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
5577
5607
  */
5578
5608
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
5579
5609
  /**
5580
5610
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-find.md
5611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
5582
5612
  */
5583
5613
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5584
5614
  /**
5585
5615
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat.md
5616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
5587
5617
  */
5588
5618
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5589
5619
  /**
5590
5620
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
5591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat-map.md
5621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
5592
5622
  */
5593
5623
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5594
5624
  /**
5595
5625
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
5596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-async.md
5626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
5597
5627
  */
5598
5628
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
5599
5629
  /**
5600
5630
  * Prefer using the `Array.from()` mapping function argument.
5601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-map.md
5631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
5602
5632
  */
5603
5633
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
5604
5634
  /**
5605
5635
  * Prefer `Array.from({length}, …)` when creating range arrays.
5606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-range.md
5636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
5607
5637
  */
5608
5638
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
5609
5639
  /**
5610
5640
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-index-of.md
5641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
5612
5642
  */
5613
5643
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5614
5644
  /**
5615
5645
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
5616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-iterable-methods.md
5646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
5617
5647
  */
5618
5648
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
5619
5649
  /**
5620
5650
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
5621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-last-methods.md
5651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
5622
5652
  */
5623
5653
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
5624
5654
  /**
5625
5655
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
5626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-slice.md
5656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
5627
5657
  */
5628
5658
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
5629
5659
  /**
5630
5660
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-some.md
5661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
5632
5662
  */
5633
5663
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5634
5664
  /**
5635
5665
  * Prefer `.at()` method for index access and `String#charAt()`.
5636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-at.md
5666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
5637
5667
  */
5638
5668
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5639
5669
  /**
5640
5670
  * Prefer `await` over promise chaining.
5641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-await.md
5671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
5642
5672
  */
5643
5673
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
5644
5674
  /**
5645
5675
  * Prefer `BigInt` literals over the constructor.
5646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-bigint-literals.md
5676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
5647
5677
  */
5648
5678
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5649
5679
  /**
5650
5680
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-blob-reading-methods.md
5681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
5652
5682
  */
5653
5683
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5654
5684
  /**
5655
5685
  * Prefer block statements over IIFEs used only for scoping.
5656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-block-statement-over-iife.md
5686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
5657
5687
  */
5658
5688
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
5659
5689
  /**
5660
5690
  * Prefer directly returning boolean expressions over `if` statements.
5661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-boolean-return.md
5691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
5662
5692
  */
5663
5693
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
5664
5694
  /**
5665
5695
  * Prefer class field declarations over `this` assignments in constructors.
5666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-class-fields.md
5696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
5667
5697
  */
5668
5698
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5669
5699
  /**
5670
5700
  * Prefer using `Element#classList.toggle()` to toggle class names.
5671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-classlist-toggle.md
5701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
5672
5702
  */
5673
5703
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5674
5704
  /**
5675
5705
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-code-point.md
5706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
5677
5707
  */
5678
5708
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5679
5709
  /**
5680
5710
  * Prefer early continues over whole-loop conditional wrapping.
5681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-continue.md
5711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
5682
5712
  */
5683
5713
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
5684
5714
  /**
5685
5715
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-date-now.md
5716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
5687
5717
  */
5688
5718
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5689
5719
  /**
5690
5720
  * Prefer default parameters over reassignment.
5691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-default-parameters.md
5721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
5692
5722
  */
5693
5723
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5694
5724
  /**
5695
5725
  * Prefer direct iteration over default iterator method calls.
5696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-direct-iteration.md
5726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
5697
5727
  */
5698
5728
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
5699
5729
  /**
5700
5730
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
5701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dispose.md
5731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
5702
5732
  */
5703
5733
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
5704
5734
  /**
5705
5735
  * Prefer `Element#append()` over `Node#appendChild()`.
5706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-append.md
5736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
5707
5737
  */
5708
5738
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5709
5739
  /**
5710
5740
  * Renamed to `unicorn/dom-node-dataset`.
5711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5712
5742
  * @deprecated
5713
5743
  */
5714
5744
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5715
5745
  /**
5716
5746
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
5717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-html-methods.md
5747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
5718
5748
  */
5719
- 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
5749
+ 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
5720
5750
  /**
5721
5751
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-remove.md
5752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
5723
5753
  */
5724
5754
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5725
5755
  /**
5726
5756
  * Prefer `.replaceChildren()` when emptying DOM children.
5727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-replace-children.md
5757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
5728
5758
  */
5729
5759
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
5730
5760
  /**
5731
5761
  * Prefer `.textContent` over `.innerText`.
5732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-text-content.md
5762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
5733
5763
  */
5734
5764
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5735
5765
  /**
5736
5766
  * Prefer early returns over full-function conditional wrapping.
5737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-early-return.md
5767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
5738
5768
  */
5739
5769
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
5740
5770
  /**
5741
5771
  * Prefer `else if` over adjacent `if` statements with related conditions.
5742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-else-if.md
5772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
5743
5773
  */
5744
5774
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
5745
5775
  /**
5746
5776
  * Prefer `Error.isError()` when checking for errors.
5747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-error-is-error.md
5777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
5748
5778
  */
5749
5779
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
5750
5780
  /**
5751
5781
  * Prefer `EventTarget` over `EventEmitter`.
5752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-event-target.md
5782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
5753
5783
  */
5754
5784
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5785
+ /**
5786
+ * Prefer explicit viewport units.
5787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
5788
+ */
5789
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
5755
5790
  /**
5756
5791
  * Prefer `export…from` when re-exporting.
5757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-export-from.md
5792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
5758
5793
  */
5759
5794
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5760
5795
  /**
5761
5796
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
5762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-flat-math-min-max.md
5797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
5763
5798
  */
5764
5799
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
5765
5800
  /**
5766
5801
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
5767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-get-or-insert-computed.md
5802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
5768
5803
  */
5769
5804
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
5770
5805
  /**
5771
5806
  * Prefer global numeric constants over `Number` static properties.
5772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-number-constants.md
5807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
5773
5808
  */
5774
5809
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
5775
5810
  /**
5776
5811
  * Prefer `globalThis` over `window`, `self`, and `global`.
5777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-this.md
5812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
5778
5813
  */
5779
5814
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5780
5815
  /**
5781
5816
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
5782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-group-by.md
5817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
5783
5818
  */
5784
5819
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
5785
5820
  /**
5786
5821
  * Prefer `.has()` when checking existence.
5787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-has-check.md
5822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
5788
5823
  */
5789
5824
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
5790
5825
  /**
5791
5826
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
5792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-hoisting-branch-code.md
5827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
5793
5828
  */
5794
5829
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
5795
5830
  /**
5796
5831
  * Prefer HTTPS over HTTP.
5797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-https.md
5832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
5798
5833
  */
5799
5834
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
5800
5835
  /**
5801
5836
  * Prefer identifiers over string literals in import and export specifiers.
5802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-identifier-import-export-specifiers.md
5837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
5803
5838
  */
5804
5839
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
5805
5840
  /**
5806
5841
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-import-meta-properties.md
5842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
5808
5843
  */
5809
5844
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5810
5845
  /**
5811
5846
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes.md
5847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
5813
5848
  */
5814
5849
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5815
5850
  /**
5816
5851
  * Prefer `.includes()` over repeated equality comparisons.
5817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes-over-repeated-comparisons.md
5852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
5818
5853
  */
5819
5854
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
5820
5855
  /**
5821
5856
  * Prefer passing iterables directly to constructors instead of filling empty collections.
5822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterable-in-constructor.md
5857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
5823
5858
  */
5824
5859
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
5825
5860
  /**
5826
5861
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
5827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-concat.md
5862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
5828
5863
  */
5829
5864
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
5830
5865
  /**
5831
5866
  * Prefer iterator helpers over temporary arrays from iterators.
5832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-helpers.md
5867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
5833
5868
  */
5834
5869
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
5835
5870
  /**
5836
5871
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
5837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array.md
5872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
5838
5873
  */
5839
5874
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
5840
5875
  /**
5841
5876
  * Prefer moving `.toArray()` to the end of iterator helper chains.
5842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array-at-end.md
5877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
5843
5878
  */
5844
5879
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
5845
5880
  /**
5846
5881
  * Renamed to `unicorn/consistent-json-file-read`.
5847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
5882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
5848
5883
  * @deprecated
5849
5884
  */
5850
5885
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5851
5886
  /**
5852
5887
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
5853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-keyboard-event-key.md
5888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
5854
5889
  */
5855
5890
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5856
5891
  /**
5857
5892
  * Prefer `location.assign()` over assigning to `location.href`.
5858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-location-assign.md
5893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
5859
5894
  */
5860
5895
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
5861
5896
  /**
5862
5897
  * Prefer using a logical operator over a ternary.
5863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-logical-operator-over-ternary.md
5898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5864
5899
  */
5865
5900
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5866
5901
  /**
5867
5902
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
5868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-map-from-entries.md
5903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
5869
5904
  */
5870
5905
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
5871
5906
  /**
5872
5907
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
5873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-abs.md
5908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
5874
5909
  */
5875
5910
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
5876
5911
  /**
5877
5912
  * Prefer `Math` constants over their approximate numeric values.
5878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-constants.md
5913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
5879
5914
  */
5880
5915
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
5881
5916
  /**
5882
5917
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-min-max.md
5918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
5884
5919
  */
5885
5920
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5886
5921
  /**
5887
5922
  * Prefer `Math.trunc()` for truncating numbers.
5888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-trunc.md
5923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
5889
5924
  */
5890
5925
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5891
5926
  /**
5892
5927
  * Prefer moving ternaries into the minimal varying part of an expression.
5893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-minimal-ternary.md
5928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
5894
5929
  */
5895
5930
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
5896
5931
  /**
5897
5932
  * Prefer modern DOM APIs.
5898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-dom-apis.md
5933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
5899
5934
  */
5900
5935
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5901
5936
  /**
5902
5937
  * Prefer modern `Math` APIs over legacy patterns.
5903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-math-apis.md
5938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
5904
5939
  */
5905
5940
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5906
5941
  /**
5907
5942
  * Prefer JavaScript modules (ESM) over CommonJS.
5908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-module.md
5943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
5909
5944
  */
5910
5945
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5911
5946
  /**
5912
5947
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-native-coercion-functions.md
5948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
5914
5949
  */
5915
5950
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5916
5951
  /**
5917
5952
  * Prefer negative index over `.length - index` when possible.
5918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-negative-index.md
5953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
5919
5954
  */
5920
5955
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5921
5956
  /**
5922
5957
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-node-protocol.md
5958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
5924
5959
  */
5925
5960
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5926
5961
  /**
5927
5962
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
5928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-coercion.md
5963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
5929
5964
  */
5930
5965
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
5931
5966
  /**
5932
5967
  * Prefer `Number.isSafeInteger()` over integer checks.
5933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-is-safe-integer.md
5968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
5934
5969
  */
5935
5970
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
5936
5971
  /**
5937
5972
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
5938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-properties.md
5973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
5939
5974
  */
5940
5975
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5941
5976
  /**
5942
5977
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
5943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-define-properties.md
5978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
5944
5979
  */
5945
5980
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
5946
5981
  /**
5947
5982
  * Prefer object destructuring defaults over default object literals with spread.
5948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-destructuring-defaults.md
5983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
5949
5984
  */
5950
5985
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
5951
5986
  /**
5952
5987
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-from-entries.md
5988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
5954
5989
  */
5955
5990
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5956
5991
  /**
5957
5992
  * Prefer the most specific `Object` iterable method.
5958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-iterable-methods.md
5993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
5959
5994
  */
5960
5995
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
5961
5996
  /**
5962
5997
  * Prefer observer APIs over resize and scroll listeners with layout reads.
5963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-observer-apis.md
5998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
5964
5999
  */
5965
6000
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
5966
6001
  /**
5967
6002
  * Prefer omitting the `catch` binding parameter.
5968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-optional-catch-binding.md
6003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
5969
6004
  */
5970
6005
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5971
6006
  /**
5972
6007
  * Prefer `Path2D` for repeatedly drawn canvas paths.
5973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-path2d.md
6008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
5974
6009
  */
5975
6010
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
5976
6011
  /**
5977
6012
  * Prefer private class fields over the underscore-prefix convention.
5978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-private-class-fields.md
6013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
5979
6014
  */
5980
6015
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
5981
6016
  /**
5982
6017
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
5983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-try.md
6018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
5984
6019
  */
5985
6020
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
5986
6021
  /**
5987
6022
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
5988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-with-resolvers.md
6023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
5989
6024
  */
5990
6025
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
5991
6026
  /**
5992
6027
  * Prefer borrowing methods from the prototype instead of the instance.
5993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-prototype-methods.md
6028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
5994
6029
  */
5995
6030
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5996
6031
  /**
5997
6032
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
5998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-query-selector.md
6033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
5999
6034
  */
6000
6035
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
6001
6036
  /**
6002
6037
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
6003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-queue-microtask.md
6038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
6004
6039
  */
6005
6040
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
6006
6041
  /**
6007
6042
  * Prefer `Reflect.apply()` over `Function#apply()`.
6008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-reflect-apply.md
6043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
6009
6044
  */
6010
6045
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6011
6046
  /**
6012
6047
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
6013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-escape.md
6048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
6014
6049
  */
6015
6050
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
6016
6051
  /**
6017
6052
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
6018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-test.md
6053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
6019
6054
  */
6020
6055
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6021
6056
  /**
6022
6057
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-response-static-json.md
6058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
6024
6059
  */
6025
6060
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6026
6061
  /**
6027
6062
  * Prefer `:scope` when using element query selector methods.
6028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-scoped-selector.md
6063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
6029
6064
  */
6030
6065
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
6031
6066
  /**
6032
6067
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-has.md
6068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
6034
6069
  */
6035
6070
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
6036
6071
  /**
6037
6072
  * Prefer `Set` methods for Set operations.
6038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-methods.md
6073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
6039
6074
  */
6040
6075
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
6041
6076
  /**
6042
6077
  * Prefer using `Set#size` instead of `Array#length`.
6043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-size.md
6078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
6044
6079
  */
6045
6080
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6046
6081
  /**
6047
6082
  * Prefer arrow function properties over methods with a single return.
6048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-short-arrow-method.md
6083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
6049
6084
  */
6050
- 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
6085
+ 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
6051
6086
  /**
6052
6087
  * Prefer simple conditions first in logical expressions.
6053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-condition-first.md
6088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
6054
6089
  */
6055
6090
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
6056
6091
  /**
6057
6092
  * Prefer a simple comparison function for `Array#sort()`.
6058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-sort-comparator.md
6093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
6059
6094
  */
6060
6095
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
6061
6096
  /**
6062
6097
  * Prefer simplified conditions.
6063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simplified-conditions.md
6098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
6064
6099
  */
6065
6100
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
6066
6101
  /**
6067
6102
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
6068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-array-predicate.md
6103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
6069
6104
  */
6070
6105
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
6071
6106
  /**
6072
6107
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-call.md
6108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
6074
6109
  */
6075
6110
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6076
6111
  /**
6077
6112
  * Prefer a single object destructuring declaration per local const source.
6078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-object-destructuring.md
6113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
6079
6114
  */
6080
6115
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
6081
6116
  /**
6082
6117
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
6083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-replace.md
6118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
6084
6119
  */
6085
6120
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
6086
6121
  /**
6087
6122
  * Prefer declaring variables in the smallest possible scope.
6088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-smaller-scope.md
6123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
6089
6124
  */
6090
6125
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
6091
6126
  /**
6092
6127
  * Prefer `String#split()` with a limit.
6093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-split-limit.md
6128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
6094
6129
  */
6095
6130
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
6096
6131
  /**
6097
6132
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
6098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-spread.md
6133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
6099
6134
  */
6100
6135
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6101
6136
  /**
6102
6137
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
6103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-match-all.md
6138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
6104
6139
  */
6105
6140
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
6106
6141
  /**
6107
6142
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
6108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-pad-start-end.md
6143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
6109
6144
  */
6110
6145
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
6111
6146
  /**
6112
6147
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-raw.md
6148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
6114
6149
  */
6115
6150
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6116
6151
  /**
6117
6152
  * Prefer `String#repeat()` for repeated whitespace.
6118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-repeat.md
6153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
6119
6154
  */
6120
6155
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
6121
6156
  /**
6122
6157
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
6123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-replace-all.md
6158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
6124
6159
  */
6125
6160
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6126
6161
  /**
6127
6162
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-slice.md
6163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
6129
6164
  */
6130
6165
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6131
6166
  /**
6132
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
6133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-starts-ends-with.md
6167
+ * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
6168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
6134
6169
  */
6135
6170
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6136
6171
  /**
6137
6172
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-trim-start-end.md
6173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
6139
6174
  */
6140
6175
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6141
6176
  /**
6142
6177
  * Prefer using `structuredClone` to create a deep clone.
6143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-structured-clone.md
6178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
6144
6179
  */
6145
6180
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6146
6181
  /**
6147
6182
  * Prefer `switch` over multiple `else-if`.
6148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-switch.md
6183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
6149
6184
  */
6150
6185
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6151
6186
  /**
6152
6187
  * Prefer `Temporal` over `Date`.
6153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-temporal.md
6188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
6154
6189
  */
6155
6190
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
6156
6191
  /**
6157
6192
  * Prefer ternary expressions over simple `if` statements that return or assign values.
6158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-ternary.md
6193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
6159
6194
  */
6160
6195
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6196
+ /**
6197
+ * Prefer `.then().catch()` over `.then(…, …)` for error handling.
6198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
6199
+ */
6200
+ 'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
6161
6201
  /**
6162
6202
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
6163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-toggle-attribute.md
6203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
6164
6204
  */
6165
6205
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
6166
6206
  /**
6167
6207
  * Prefer top-level await over top-level promises and async function calls.
6168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-top-level-await.md
6208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
6169
6209
  */
6170
6210
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6171
6211
  /**
6172
6212
  * Enforce throwing `TypeError` in type checking conditions.
6173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-error.md
6213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
6174
6214
  */
6175
6215
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6176
6216
  /**
6177
6217
  * Require type literals to be last in union types.
6178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-literal-last.md
6218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
6179
6219
  */
6180
6220
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
6181
6221
  /**
6182
6222
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
6183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-uint8array-base64.md
6223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
6184
6224
  */
6185
6225
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
6186
6226
  /**
6187
6227
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
6188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unary-minus.md
6228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
6189
6229
  */
6190
6230
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
6191
6231
  /**
6192
6232
  * Prefer Unicode code point escapes over legacy escape sequences.
6193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unicode-code-point-escapes.md
6233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
6194
6234
  */
6195
6235
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
6196
6236
  /**
6197
6237
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
6198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-can-parse.md
6238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
6199
6239
  */
6200
6240
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
6201
6241
  /**
6202
6242
  * Prefer `URL#href` over stringifying a `URL`.
6203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-href.md
6243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
6204
6244
  */
6205
6245
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
6206
6246
  /**
6207
6247
  * Prefer `URLSearchParams` over manually splitting query strings.
6208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-search-parameters.md
6248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
6209
6249
  */
6210
6250
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
6211
6251
  /**
6212
6252
  * Prefer putting the condition in the while statement.
6213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-while-loop-condition.md
6253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
6214
6254
  */
6215
6255
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
6216
6256
  /**
6217
6257
  * Renamed to `unicorn/name-replacements`.
6218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6219
6259
  * @deprecated
6220
6260
  */
6221
6261
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
6222
6262
  /**
6223
6263
  * Enforce consistent relative URL style.
6224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/relative-url-style.md
6264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
6225
6265
  */
6226
6266
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6227
6267
  /**
6228
6268
  * Enforce using the separator argument with `Array#join()`.
6229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-join-separator.md
6269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
6230
6270
  */
6231
6271
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6232
6272
  /**
6233
6273
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
6234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-sort-compare.md
6274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
6235
6275
  */
6236
6276
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
6237
6277
  /**
6238
6278
  * Require `CSS.escape()` for interpolated values in CSS selectors.
6239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-css-escape.md
6279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
6240
6280
  */
6241
6281
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
6282
+ /**
6283
+ * Require configured YAML frontmatter fields.
6284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
6285
+ */
6286
+ 'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
6242
6287
  /**
6243
6288
  * Require non-empty module attributes for imports and exports
6244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-attributes.md
6289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
6245
6290
  */
6246
6291
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6247
6292
  /**
6248
6293
  * Require non-empty specifier list in import and export statements.
6249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-specifiers.md
6294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
6250
6295
  */
6251
6296
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6252
6297
  /**
6253
6298
  * Enforce using the digits argument with `Number#toFixed()`.
6254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-number-to-fixed-digits-argument.md
6299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6255
6300
  */
6256
6301
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6257
6302
  /**
6258
6303
  * Require passive event listeners for high-frequency events.
6259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-passive-events.md
6304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
6260
6305
  */
6261
6306
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
6262
6307
  /**
6263
6308
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-post-message-target-origin.md
6309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
6265
6310
  */
6266
6311
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6267
6312
  /**
6268
6313
  * Require boolean-returning Proxy traps to return booleans.
6269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-proxy-trap-boolean-return.md
6314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
6270
6315
  */
6271
6316
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
6272
6317
  /**
6273
6318
  * Enforce better string content.
6274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/string-content.md
6319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
6275
6320
  */
6276
6321
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6277
6322
  /**
6278
6323
  * Enforce consistent brace style for `case` clauses.
6279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-braces.md
6324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
6280
6325
  */
6281
6326
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6282
6327
  /**
6283
6328
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-break-position.md
6329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
6285
6330
  */
6286
6331
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6287
6332
  /**
6288
6333
  * Fix whitespace-insensitive template indentation.
6289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/template-indent.md
6334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
6290
6335
  */
6291
6336
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6292
6337
  /**
6293
6338
  * Enforce consistent case for text encoding identifiers.
6294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/text-encoding-identifier-case.md
6339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
6295
6340
  */
6296
6341
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6297
6342
  /**
6298
6343
  * Require `new` when creating an error.
6299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/throw-new-error.md
6344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
6300
6345
  */
6301
6346
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6302
6347
  /**
6303
6348
  * Limit the complexity of `try` blocks.
6304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/try-complexity.md
6349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
6305
6350
  */
6306
6351
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
6307
6352
  /**
@@ -15935,10 +15980,19 @@ type UnicornPreferAt = [] | [{
15935
15980
  type UnicornPreferContinue = [] | [{
15936
15981
  maximumStatements?: number;
15937
15982
  }];
15983
+ // ----- unicorn/prefer-dom-node-html-methods -----
15984
+ type UnicornPreferDomNodeHtmlMethods = [] | [{
15985
+ checkGetHTML?: boolean;
15986
+ checkSetHTML?: boolean;
15987
+ }];
15938
15988
  // ----- unicorn/prefer-early-return -----
15939
15989
  type UnicornPreferEarlyReturn = [] | [{
15940
15990
  maximumStatements?: number;
15941
15991
  }];
15992
+ // ----- unicorn/prefer-explicit-viewport-units -----
15993
+ type UnicornPreferExplicitViewportUnits = [] | [{
15994
+ unit?: ("dvh" | "svh" | "lvh");
15995
+ }];
15942
15996
  // ----- unicorn/prefer-export-from -----
15943
15997
  type UnicornPreferExportFrom = [] | [{
15944
15998
  checkUsedVariables?: boolean;
@@ -15949,7 +16003,7 @@ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
15949
16003
  }];
15950
16004
  // ----- unicorn/prefer-minimal-ternary -----
15951
16005
  type UnicornPreferMinimalTernary = [] | [{
15952
- checkVaryingCallee?: boolean;
16006
+ checkVaryingBase?: boolean;
15953
16007
  checkComputedMemberAccess?: boolean;
15954
16008
  }];
15955
16009
  // ----- unicorn/prefer-number-properties -----
@@ -15974,6 +16028,8 @@ type UnicornPreferQueueMicrotask = [] | [{
15974
16028
  type UnicornPreferSetHas = [] | [{
15975
16029
  minimumItems?: number;
15976
16030
  }];
16031
+ // ----- unicorn/prefer-short-arrow-method -----
16032
+ type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
15977
16033
  // ----- unicorn/prefer-single-call -----
15978
16034
  type UnicornPreferSingleCall = [] | [{
15979
16035
  ignore?: unknown[];
@@ -16005,6 +16061,10 @@ type UnicornRelativeUrlStyle = [] | [("never" | "always")];
16005
16061
  type UnicornRequireCssEscape = [] | [{
16006
16062
  checkAllSelectors?: boolean;
16007
16063
  }];
16064
+ // ----- unicorn/require-frontmatter-fields -----
16065
+ type UnicornRequireFrontmatterFields = [] | [{
16066
+ fields?: string[];
16067
+ }];
16008
16068
  // ----- unicorn/string-content -----
16009
16069
  type UnicornStringContent = [] | [{
16010
16070
  patterns?: {