@moso/eslint-config 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.mts +673 -407
  2. package/dist/index.mjs +86 -48
  3. package/package.json +24 -23
package/dist/index.d.mts CHANGED
@@ -1875,6 +1875,11 @@ interface RuleOptions {
1875
1875
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
1876
1876
  */
1877
1877
  '@typescript-eslint/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
1878
+ /**
1879
+ * Disallow assigning non-enum values to enum typed locations
1880
+ * @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
1881
+ */
1882
+ '@typescript-eslint/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
1878
1883
  /**
1879
1884
  * Disallow comparing an enum value with a non-enum value
1880
1885
  * @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
@@ -2790,7 +2795,7 @@ interface RuleOptions {
2790
2795
  * Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
2791
2796
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
2792
2797
  */
2793
- 'jsdoc/check-syntax'?: Linter.RuleEntry<[]>;
2798
+ 'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
2794
2799
  /**
2795
2800
  * Reports invalid block tag names.
2796
2801
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
@@ -4591,6 +4596,81 @@ interface RuleOptions {
4591
4596
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
4592
4597
  */
4593
4598
  'regexp/use-ignore-case'?: Linter.RuleEntry<[]>;
4599
+ /**
4600
+ * Detects trojan source attacks that employ unicode bidi attacks to inject malicious code.
4601
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-bidi-characters.md
4602
+ */
4603
+ 'security/detect-bidi-characters'?: Linter.RuleEntry<[]>;
4604
+ /**
4605
+ * Detects calls to "buffer" with "noAssert" flag set.
4606
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-buffer-noassert.md
4607
+ */
4608
+ 'security/detect-buffer-noassert'?: Linter.RuleEntry<[]>;
4609
+ /**
4610
+ * Detects instances of "child_process" & non-literal "exec()" calls.
4611
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-child-process.md
4612
+ */
4613
+ 'security/detect-child-process'?: Linter.RuleEntry<[]>;
4614
+ /**
4615
+ * Detects "object.escapeMarkup = false", which can be used with some template engines to disable escaping of HTML entities.
4616
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-disable-mustache-escape.md
4617
+ */
4618
+ 'security/detect-disable-mustache-escape'?: Linter.RuleEntry<[]>;
4619
+ /**
4620
+ * Detects "eval(variable)" which can allow an attacker to run arbitrary code inside your process.
4621
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-eval-with-expression.md
4622
+ */
4623
+ 'security/detect-eval-with-expression'?: Linter.RuleEntry<[]>;
4624
+ /**
4625
+ * Detects invisible characters that have no visible glyph and can be used to hide malicious code.
4626
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-invisible-characters.md
4627
+ */
4628
+ 'security/detect-invisible-characters'?: Linter.RuleEntry<[]>;
4629
+ /**
4630
+ * Detects instances of new Buffer(argument) where argument is any non-literal value.
4631
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-new-buffer.md
4632
+ */
4633
+ 'security/detect-new-buffer'?: Linter.RuleEntry<[]>;
4634
+ /**
4635
+ * Detects Express "csrf" middleware setup before "method-override" middleware.
4636
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-no-csrf-before-method-override.md
4637
+ */
4638
+ 'security/detect-no-csrf-before-method-override'?: Linter.RuleEntry<[]>;
4639
+ /**
4640
+ * Detects variable in filename argument of "fs" calls, which might allow an attacker to access anything on your system.
4641
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-non-literal-fs-filename.md
4642
+ */
4643
+ 'security/detect-non-literal-fs-filename'?: Linter.RuleEntry<[]>;
4644
+ /**
4645
+ * Detects "RegExp(variable)", which might allow an attacker to DOS your server with a long-running regular expression.
4646
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-non-literal-regexp.md
4647
+ */
4648
+ 'security/detect-non-literal-regexp'?: Linter.RuleEntry<[]>;
4649
+ /**
4650
+ * Detects "require(variable)", which might allow an attacker to load and run arbitrary code, or access arbitrary files on disk.
4651
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-non-literal-require.md
4652
+ */
4653
+ 'security/detect-non-literal-require'?: Linter.RuleEntry<[]>;
4654
+ /**
4655
+ * Detects "variable[key]" as a left- or right-hand assignment operand.
4656
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-object-injection.md
4657
+ */
4658
+ 'security/detect-object-injection'?: Linter.RuleEntry<[]>;
4659
+ /**
4660
+ * Detects insecure comparisons (`==`, `!=`, `!==` and `===`), which check input sequentially.
4661
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-possible-timing-attacks.md
4662
+ */
4663
+ 'security/detect-possible-timing-attacks'?: Linter.RuleEntry<[]>;
4664
+ /**
4665
+ * Detects if "pseudoRandomBytes()" is in use, which might not give you the randomness you need and expect.
4666
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-pseudoRandomBytes.md
4667
+ */
4668
+ 'security/detect-pseudoRandomBytes'?: Linter.RuleEntry<[]>;
4669
+ /**
4670
+ * Detects potentially unsafe regular expressions, which may take a very long time to run, blocking the event loop.
4671
+ * @see https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-unsafe-regex.md
4672
+ */
4673
+ 'security/detect-unsafe-regex'?: Linter.RuleEntry<[]>;
4594
4674
  /**
4595
4675
  * Enforce canonical class names.
4596
4676
  * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md
@@ -4789,1841 +4869,1992 @@ interface RuleOptions {
4789
4869
  'toml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
4790
4870
  /**
4791
4871
  * Prefer better DOM traversal APIs.
4792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
4872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
4793
4873
  */
4794
4874
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
4795
4875
  /**
4796
4876
  * Removed. Prefer `eslint-plugin-regexp`
4797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4798
4878
  * @deprecated
4799
4879
  */
4800
4880
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
4801
4881
  /**
4802
4882
  * Enforce a specific parameter name in catch clauses.
4803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
4883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
4804
4884
  */
4805
4885
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
4806
4886
  /**
4807
4887
  * Enforce consistent class references in static methods.
4808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
4888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
4809
4889
  */
4810
4890
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
4891
+ /**
4892
+ * Enforce consistent spacing before and after commas in JSON.
4893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
4894
+ */
4895
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
4811
4896
  /**
4812
4897
  * Enforce better comment content.
4813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
4898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
4814
4899
  */
4815
4900
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
4816
4901
  /**
4817
4902
  * Enforce a consistent return style for multiline arrow function bodies.
4818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
4903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
4819
4904
  */
4820
4905
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
4821
4906
  /**
4822
4907
  * Enforce consistent assertion style with `node:assert`.
4823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
4908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
4824
4909
  */
4825
4910
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
4826
4911
  /**
4827
4912
  * Enforce consistent naming for boolean names.
4828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
4913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
4829
4914
  */
4830
4915
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
4831
4916
  /**
4832
4917
  * Enforce consistent class member order.
4833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
4918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
4834
4919
  */
4835
4920
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
4836
4921
  /**
4837
4922
  * Enforce consistent spelling of compound words in identifiers.
4838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
4923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
4839
4924
  */
4840
4925
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
4841
4926
  /**
4842
4927
  * Enforce consistent conditional object spread style.
4843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
4844
4929
  */
4845
4930
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
4846
4931
  /**
4847
4932
  * Prefer passing `Date` directly to the constructor when cloning.
4848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
4933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
4849
4934
  */
4850
4935
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
4851
4936
  /**
4852
4937
  * Use destructured variables over properties.
4853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
4938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
4854
4939
  */
4855
4940
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
4856
4941
  /**
4857
4942
  * Prefer consistent types when spreading a ternary in an array literal.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
4943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
4859
4944
  */
4860
4945
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
4861
4946
  /**
4862
4947
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
4948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
4864
4949
  */
4865
4950
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
4866
4951
  /**
4867
4952
  * Enforce consistent decorator position on exported classes.
4868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
4953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
4869
4954
  */
4870
4955
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
4871
4956
  /**
4872
4957
  * Move function definitions to the highest possible scope.
4873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
4958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
4874
4959
  */
4875
4960
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4876
4961
  /**
4877
4962
  * Enforce function syntax by role.
4878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
4963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
4879
4964
  */
4880
4965
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
4881
4966
  /**
4882
4967
  * Enforce consistent JSON file reads before `JSON.parse()`.
4883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
4968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
4884
4969
  */
4885
4970
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
4886
4971
  /**
4887
4972
  * Enforce consistent optional chaining for same-base member access.
4888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
4973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
4889
4974
  */
4890
4975
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
4891
4976
  /**
4892
4977
  * Enforce consistent style for escaping `${` in template literals.
4893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
4978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
4894
4979
  */
4895
4980
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
4896
4981
  /**
4897
4982
  * Enforce consistent labels on tuple type elements.
4898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
4983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
4899
4984
  */
4900
4985
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
4901
4986
  /**
4902
4987
  * Enforce correct `Error` subclassing.
4903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
4988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
4904
4989
  */
4905
4990
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
4906
4991
  /**
4907
4992
  * Enforce consistent default export declarations.
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
4993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
4909
4994
  */
4910
4995
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
4911
4996
  /**
4912
4997
  * Enforce consistent style for DOM element dataset access.
4913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
4998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
4914
4999
  */
4915
5000
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
4916
5001
  /**
4917
5002
  * Enforce no spaces between braces.
4918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
5003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
4919
5004
  */
4920
5005
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
4921
5006
  /**
4922
5007
  * Enforce passing a `message` value when creating a built-in error.
4923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
5008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
4924
5009
  */
4925
5010
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
4926
5011
  /**
4927
5012
  * Require escape sequences to use uppercase or lowercase values.
4928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
5013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
4929
5014
  */
4930
5015
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
4931
5016
  /**
4932
5017
  * Add expiration conditions to TODO comments.
4933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
5018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
4934
5019
  */
4935
5020
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4936
5021
  /**
4937
5022
  * Enforce explicitly comparing the `length` or `size` property of a value.
4938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
5023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
4939
5024
  */
4940
5025
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4941
5026
  /**
4942
5027
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
4943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
5028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
4944
5029
  */
4945
5030
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
4946
5031
  /**
4947
5032
  * Enforce a case style for filenames and directory names.
4948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
5033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
4949
5034
  */
4950
5035
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
4951
5036
  /**
4952
5037
  * Require identifiers to match a specified regular expression.
4953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
5038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
4954
5039
  */
4955
5040
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
4956
5041
  /**
4957
5042
  * Enforce specific import styles per module.
4958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
5043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
4959
5044
  */
4960
5045
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5046
+ /**
5047
+ * Enforce consistent indentation in JSON and CSS.
5048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
5049
+ */
5050
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
4961
5051
  /**
4962
5052
  * Prevent usage of variables from outside the scope of isolated functions.
4963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
5053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
4964
5054
  */
4965
5055
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4966
5056
  /**
4967
5057
  * Enforce a consistent style for optional loop sources.
4968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
5058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
4969
5059
  */
4970
5060
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
5061
+ /**
5062
+ * Enforce a case style for data keys.
5063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
5064
+ */
5065
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
4971
5066
  /**
4972
5067
  * Require or disallow logical assignment operator shorthand
4973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
5068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
4974
5069
  */
4975
5070
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
4976
5071
  /**
4977
5072
  * Limit the depth of nested calls.
4978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
5073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
4979
5074
  */
4980
5075
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
4981
5076
  /**
4982
5077
  * Enforce replacements for variable, property, and filenames.
4983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
5078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
4984
5079
  */
4985
5080
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
4986
5081
  /**
4987
5082
  * Enforce correct use of `new` for builtin constructors.
4988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
5083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
4989
5084
  */
4990
5085
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
4991
5086
  /**
4992
5087
  * Enforce specifying rules to disable in `eslint-disable` comments.
4993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
5088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
4994
5089
  */
4995
5090
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
4996
5091
  /**
4997
5092
  * Disallow recursive access to `this` within getters and setters.
4998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
5093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
4999
5094
  */
5000
5095
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5001
5096
  /**
5002
5097
  * Disallow bitwise operators where a logical operator was likely intended.
5003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
5098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
5004
5099
  */
5005
5100
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
5006
5101
  /**
5007
5102
  * Disallow anonymous functions and classes as the default export.
5008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
5103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
5009
5104
  */
5010
5105
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5011
5106
  /**
5012
5107
  * Prevent passing a function reference directly to iterator methods.
5013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
5108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
5014
5109
  */
5015
5110
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
5016
5111
  /**
5017
5112
  * Disallow array accumulation with `Array#concat()` in loops.
5018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
5113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
5019
5114
  */
5020
5115
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
5021
5116
  /**
5022
5117
  * Disallow using reference values as `Array#fill()` values.
5023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
5118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
5024
5119
  */
5025
5120
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
5026
5121
  /**
5027
5122
  * Disallow `.fill()` after `Array.from({length: …})`.
5028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
5123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
5029
5124
  */
5030
5125
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
5031
5126
  /**
5032
5127
  * Disallow front-of-array mutation.
5033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
5128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
5034
5129
  */
5035
5130
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
5036
5131
  /**
5037
5132
  * Disallow using the `this` argument in array methods.
5038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
5133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
5039
5134
  */
5040
5135
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5041
5136
  /**
5042
5137
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5044
5139
  * @deprecated
5045
5140
  */
5046
5141
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5047
5142
  /**
5048
5143
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
5050
5145
  */
5051
5146
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5052
5147
  /**
5053
5148
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
5055
5150
  */
5056
5151
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5057
5152
  /**
5058
5153
  * Prefer `Array#toSorted()` over `Array#sort()`.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
5060
5155
  */
5061
5156
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5062
5157
  /**
5063
5158
  * Disallow sorting arrays to get the minimum or maximum value.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
5065
5160
  */
5066
5161
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
5067
5162
  /**
5068
5163
  * Prefer `Array#toSpliced()` over `Array#splice()`.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
5070
5165
  */
5071
5166
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
5072
5167
  /**
5073
- * Disallow asterisk prefixes in documentation comments.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
5168
+ * Disallow asterisk prefixes in multiline comments.
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
5075
5170
  */
5076
5171
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
5077
5172
  /**
5078
5173
  * Disallow asynchronous callbacks in synchronous iterator helpers.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
5174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
5080
5175
  */
5081
5176
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
5082
5177
  /**
5083
5178
  * Disallow async functions as `Promise#finally()` callbacks.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
5179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
5085
5180
  */
5086
5181
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
5087
5182
  /**
5088
5183
  * Disallow member access from await expression.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
5184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
5090
5185
  */
5091
5186
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5092
5187
  /**
5093
5188
  * Disallow using `await` in `Promise` method parameters.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
5095
5190
  */
5096
5191
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5097
5192
  /**
5098
5193
  * Disallow barrel files.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
5194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
5100
5195
  */
5101
5196
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
5102
5197
  /**
5103
5198
  * Disallow unnecessary `Blob` to `File` conversion.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
5105
5200
  */
5106
5201
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
5107
5202
  /**
5108
5203
  * Disallow boolean-returning sort comparators.
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
5204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
5110
5205
  */
5111
5206
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
5112
5207
  /**
5113
5208
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
5115
5210
  */
5116
5211
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
5117
5212
  /**
5118
5213
  * Prefer drawing canvases directly instead of converting them to images.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
5120
5215
  */
5121
5216
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
5122
5217
  /**
5123
5218
  * Disallow chained comparisons such as `a < b < c`.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
5125
5220
  */
5126
5221
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
5127
5222
  /**
5128
5223
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
5130
5225
  */
5131
5226
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
5132
5227
  /**
5133
5228
  * Disallow dynamic object property existence checks.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
5135
5230
  */
5136
5231
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
5232
+ /**
5233
+ * Disallow conflicting CSS query and HTML form constraints.
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
5235
+ */
5236
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
5137
5237
  /**
5138
5238
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
5239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
5140
5240
  */
5141
5241
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
5142
5242
  /**
5143
5243
  * Disallow confusing uses of `Array#with()`.
5144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
5244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
5145
5245
  */
5146
5246
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
5147
5247
  /**
5148
5248
  * Do not use leading/trailing space between `console.log` parameters.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
5249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
5150
5250
  */
5151
5251
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5152
5252
  /**
5153
5253
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
5154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
5254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
5155
5255
  */
5156
5256
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
5157
5257
  /**
5158
5258
  * Disallow declarations before conditional early exits when they are only used after the exit.
5159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
5259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
5160
5260
  */
5161
5261
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
5162
5262
  /**
5163
- * Disallow deprecated CSS features.
5164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
5263
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
5264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
5265
+ * @deprecated
5165
5266
  */
5166
- 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
5267
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
5167
5268
  /**
5168
5269
  * Do not use `document.cookie` directly.
5169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
5270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
5170
5271
  */
5171
5272
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5172
5273
  /**
5173
5274
  * Disallow two comparisons of the same operands that can be combined into one.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
5275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
5175
5276
  */
5176
5277
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
5177
5278
  /**
5178
- * Disallow duplicate CSS selectors.
5179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
5279
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
5280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
5281
+ * @deprecated
5180
5282
  */
5181
5283
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
5182
5284
  /**
5183
- * Disallow duplicate font family names.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
5285
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
5286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
5287
+ * @deprecated
5185
5288
  */
5186
5289
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
5187
5290
  /**
5188
5291
  * Disallow duplicate adjacent branches in if chains.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
5292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
5190
5293
  */
5191
5294
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
5192
5295
  /**
5193
5296
  * Disallow adjacent duplicate operands in logical expressions.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
5297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
5195
5298
  */
5196
5299
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
5197
5300
  /**
5198
5301
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
5302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
5200
5303
  */
5201
5304
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
5202
5305
  /**
5203
5306
  * Disallow duplicate values in `Set` constructor array literals.
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
5307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
5205
5308
  */
5206
5309
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
5207
5310
  /**
5208
5311
  * Disallow empty files.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
5312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
5210
5313
  */
5211
5314
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
5315
+ /**
5316
+ * Disallow empty link text in Markdown.
5317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
5318
+ */
5319
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
5212
5320
  /**
5213
5321
  * Disallow assigning to built-in error properties.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
5322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
5215
5323
  */
5216
5324
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
5217
5325
  /**
5218
5326
  * Disallow exports in scripts.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
5327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
5220
5328
  */
5221
5329
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
5222
5330
  /**
5223
5331
  * Prefer `for…of` over the `forEach` method.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
5332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
5225
5333
  */
5226
5334
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
5227
5335
  /**
5228
5336
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
5337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
5230
5338
  */
5231
5339
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5232
5340
  /**
5233
5341
  * Disallow assigning properties on the global object.
5234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
5342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
5235
5343
  */
5236
5344
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
5237
5345
  /**
5238
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
5239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
5346
+ * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
5347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
5240
5348
  * @deprecated
5241
5349
  */
5242
5350
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5243
5351
  /**
5244
5352
  * Disallow immediate mutation after variable assignment.
5245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
5353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
5246
5354
  */
5247
5355
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
5248
5356
  /**
5249
5357
  * Disallow impossible comparisons against `.length` or `.size`.
5250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
5358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
5251
5359
  */
5252
5360
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
5361
+ /**
5362
+ * Disallow class accessors that hide an inherited getter or setter.
5363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
5364
+ */
5365
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
5253
5366
  /**
5254
5367
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
5255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
5368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
5256
5369
  */
5257
5370
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
5258
5371
  /**
5259
5372
  * Disallow incorrect template literal interpolation syntax.
5260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
5373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
5261
5374
  */
5262
5375
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
5376
+ /**
5377
+ * Disallow ineffective CSP directives in `<meta>` elements.
5378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
5379
+ */
5380
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
5263
5381
  /**
5264
5382
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
5266
5384
  * @deprecated
5267
5385
  */
5268
5386
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5269
5387
  /**
5270
5388
  * Disallow `instanceof` with built-in objects
5271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
5389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
5272
5390
  */
5273
5391
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5274
5392
  /**
5275
5393
  * Disallow calling functions and constructors with an invalid number of arguments.
5276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
5394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
5277
5395
  */
5278
5396
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
5397
+ /**
5398
+ * Disallow invalid values for HTML boolean attributes.
5399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
5400
+ */
5401
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
5279
5402
  /**
5280
5403
  * Disallow comparing a single character from a string to a multi-character string.
5281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
5404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
5282
5405
  */
5283
5406
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
5407
+ /**
5408
+ * Disallow invalid DOM tokens.
5409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
5410
+ */
5411
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
5284
5412
  /**
5285
5413
  * Disallow invalid options in `fetch()` and `new Request()`.
5286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
5414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
5287
5415
  */
5288
5416
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5289
5417
  /**
5290
5418
  * Disallow invalid `accept` values on file inputs.
5291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
5419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
5292
5420
  */
5293
5421
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
5294
5422
  /**
5295
- * Disallow unknown media features and invalid values for known media features.
5296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
5423
+ * Disallow invalid subresource integrity metadata.
5424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
5425
+ */
5426
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
5427
+ /**
5428
+ * Disallow invalid or ignored Intl options.
5429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
5430
+ */
5431
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
5432
+ /**
5433
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
5434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
5435
+ * @deprecated
5297
5436
  */
5298
5437
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
5438
+ /**
5439
+ * Disallow invalid property descriptors.
5440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
5441
+ */
5442
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
5299
5443
  /**
5300
5444
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
5445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
5302
5446
  */
5303
5447
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5448
+ /**
5449
+ * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
5450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
5451
+ */
5452
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
5453
+ /**
5454
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
5455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
5456
+ */
5457
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
5458
+ /**
5459
+ * Disallow statically known invalid Temporal arithmetic.
5460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
5461
+ */
5462
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
5463
+ /**
5464
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
5465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
5466
+ */
5467
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
5304
5468
  /**
5305
5469
  * Disallow invalid implementations of well-known symbol methods.
5306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
5470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
5307
5471
  */
5308
5472
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
5473
+ /**
5474
+ * Disallow `javascript:` URLs in Markdown.
5475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
5476
+ */
5477
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
5309
5478
  /**
5310
5479
  * Disallow identifiers starting with `new` or `class`.
5311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
5480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
5312
5481
  */
5313
5482
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5314
5483
  /**
5315
5484
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
5316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
5485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
5317
5486
  */
5318
5487
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
5319
5488
  /**
5320
5489
  * Disallow event-control method calls after the synchronous event dispatch has finished.
5321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
5490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
5322
5491
  */
5323
5492
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
5493
+ /**
5494
+ * Disallow empty lines at the beginning of a file.
5495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
5496
+ */
5497
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
5324
5498
  /**
5325
5499
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
5327
5501
  * @deprecated
5328
5502
  */
5329
5503
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5330
5504
  /**
5331
5505
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
5506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
5333
5507
  */
5334
5508
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5335
5509
  /**
5336
5510
  * Disallow mutating a loop iterable during iteration.
5337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
5511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
5338
5512
  */
5339
5513
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
5514
+ /**
5515
+ * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
5516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
5517
+ */
5518
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
5340
5519
  /**
5341
5520
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
5521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
5343
5522
  */
5344
5523
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5345
5524
  /**
5346
5525
  * Disallow manually wrapped comments.
5347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
5526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
5348
5527
  */
5349
5528
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
5350
5529
  /**
5351
5530
  * Disallow checking a Map key before accessing a different key.
5352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
5531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
5353
5532
  */
5354
5533
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
5355
5534
  /**
5356
5535
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
5357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
5536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
5358
5537
  */
5359
5538
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
5360
5539
  /**
5361
5540
  * Disallow references to missing local resources.
5362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
5541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
5363
5542
  */
5364
5543
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
5365
5544
  /**
5366
5545
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
5367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
5546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
5368
5547
  */
5369
5548
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
5370
5549
  /**
5371
5550
  * Disallow named usage of default import and export.
5372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
5551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
5373
5552
  */
5374
5553
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5375
5554
  /**
5376
5555
  * Disallow negated array predicate calls.
5377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
5556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
5378
5557
  */
5379
5558
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
5380
5559
  /**
5381
5560
  * Disallow negated comparisons.
5382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
5561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
5383
5562
  */
5384
5563
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
5385
5564
  /**
5386
5565
  * Disallow negated conditions.
5387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
5566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
5388
5567
  */
5389
5568
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5390
5569
  /**
5391
5570
  * Disallow negated expression in equality check.
5392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
5571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
5393
5572
  */
5394
5573
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5395
5574
  /**
5396
5575
  * Disallow nested ternary expressions.
5397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
5576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
5398
5577
  */
5399
5578
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5400
5579
  /**
5401
- * Disallow nesting under selector lists with mixed specificity.
5402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
5580
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
5581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
5582
+ * @deprecated
5403
5583
  */
5404
5584
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
5405
5585
  /**
5406
5586
  * Disallow `new Array()`.
5407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
5587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
5408
5588
  */
5409
5589
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5410
5590
  /**
5411
5591
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
5592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
5413
5593
  */
5414
5594
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5415
5595
  /**
5416
5596
  * Disallow non-function values with function-style verb prefixes.
5417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
5597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
5418
5598
  */
5419
5599
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
5420
5600
  /**
5421
5601
  * Disallow non-standard properties on built-in objects.
5422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
5602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
5423
5603
  */
5424
5604
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
5425
5605
  /**
5426
5606
  * Disallow the use of the `null` literal.
5427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
5607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
5428
5608
  */
5429
5609
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5430
5610
  /**
5431
5611
  * Disallow the use of objects as default parameters.
5432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
5612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
5433
5613
  */
5434
5614
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5435
5615
  /**
5436
5616
  * Disallow `Object` methods with `Map` or `Set`.
5437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
5617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
5438
5618
  */
5439
5619
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
5440
5620
  /**
5441
5621
  * Disallow optional chaining on undeclared variables.
5442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5443
5623
  */
5444
5624
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
5625
+ /**
5626
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
5627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
5628
+ */
5629
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
5445
5630
  /**
5446
5631
  * Disallow `process.exit()`.
5447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
5632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
5448
5633
  */
5449
5634
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5450
5635
  /**
5451
5636
  * Disallow comparisons made redundant by an equality check in the same logical AND.
5452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
5637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
5453
5638
  */
5454
5639
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
5455
5640
  /**
5456
- * Disallow nested style rules that do not modify the parent selector.
5457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
5641
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
5642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
5643
+ * @deprecated
5458
5644
  */
5459
5645
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
5460
5646
  /**
5461
5647
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
5462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
5648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
5463
5649
  */
5464
5650
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
5465
5651
  /**
5466
5652
  * Disallow selector syntax in DOM names.
5467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
5653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
5468
5654
  */
5469
5655
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
5470
5656
  /**
5471
5657
  * Disallow shorthand properties that override related longhand properties.
5472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
5658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
5473
5659
  */
5474
5660
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
5475
5661
  /**
5476
5662
  * Disallow passing single-element arrays to `Promise` methods.
5477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
5663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
5478
5664
  */
5479
5665
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5480
5666
  /**
5481
5667
  * Disallow classes that only have static members.
5482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
5668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
5483
5669
  */
5484
5670
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5485
5671
  /**
5486
5672
  * Prefer comparing values directly over subtracting and comparing to `0`.
5487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
5673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
5488
5674
  */
5489
5675
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
5490
5676
  /**
5491
5677
  * Disallow `then` property.
5492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
5678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
5493
5679
  */
5494
5680
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5495
5681
  /**
5496
5682
  * Disallow assigning `this` to a variable.
5497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
5683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
5498
5684
  */
5499
5685
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5500
5686
  /**
5501
5687
  * Disallow `this` outside of classes.
5502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
5688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
5503
5689
  */
5504
5690
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
5505
5691
  /**
5506
5692
  * Disallow assigning to top-level variables from inside functions.
5507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
5693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
5508
5694
  */
5509
5695
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
5510
5696
  /**
5511
5697
  * Disallow top-level side effects in exported modules.
5512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
5698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
5513
5699
  */
5514
5700
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
5515
5701
  /**
5516
5702
  * Disallow `all` as a transition property.
5517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
5703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
5518
5704
  */
5519
5705
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
5520
5706
  /**
5521
5707
  * Disallow comparing `undefined` using `typeof`.
5522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
5708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
5523
5709
  */
5524
5710
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5525
5711
  /**
5526
5712
  * Disallow referencing methods without calling them.
5527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
5713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
5528
5714
  */
5529
5715
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
5530
5716
  /**
5531
5717
  * Require class members to be declared.
5532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
5718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
5533
5719
  */
5534
5720
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
5535
5721
  /**
5536
- * Disallow unknown and noncanonical CSS annotations.
5537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
5722
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
5723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
5724
+ * @deprecated
5538
5725
  */
5539
5726
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
5540
5727
  /**
5541
- * Disallow unknown pseudo-class and pseudo-element selectors.
5542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
5728
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
5729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
5730
+ * @deprecated
5543
5731
  */
5544
- 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
5732
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
5545
5733
  /**
5546
5734
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5548
5736
  */
5549
5737
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5550
5738
  /**
5551
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
5552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
5739
+ * Disallow unnecessary use of `Array#flatMap()`.
5740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
5553
5741
  */
5554
5742
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
5555
5743
  /**
5556
5744
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
5745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
5558
5746
  */
5559
5747
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5560
5748
  /**
5561
5749
  * Disallow awaiting non-promise values.
5562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
5750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
5563
5751
  */
5564
5752
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5565
5753
  /**
5566
5754
  * Disallow unnecessary comparisons against boolean literals.
5567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5568
5756
  */
5569
5757
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
5570
5758
  /**
5571
5759
  * Disallow unnecessary options in `fetch()` and `new Request()`.
5572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
5760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
5573
5761
  */
5574
5762
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
5575
5763
  /**
5576
5764
  * Disallow unnecessary `globalThis` references.
5577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
5765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
5578
5766
  */
5579
5767
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
5580
5768
  /**
5581
5769
  * Disallow unnecessary nested ternary expressions.
5582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
5770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
5583
5771
  */
5584
5772
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
5773
+ /**
5774
+ * Disallow parameters that receive the same value at every call.
5775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
5776
+ */
5777
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
5585
5778
  /**
5586
5779
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
5780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
5588
5781
  */
5589
5782
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5590
5783
  /**
5591
5784
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
5785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
5593
5786
  */
5594
5787
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5595
5788
  /**
5596
5789
  * Disallow `Array#splice()` when simpler alternatives exist.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
5790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
5598
5791
  */
5599
5792
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
5600
5793
  /**
5601
5794
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
5795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
5603
5796
  */
5604
5797
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
5605
5798
  /**
5606
5799
  * Disallow unreadable array destructuring.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
5800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
5608
5801
  */
5609
5802
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
5610
5803
  /**
5611
5804
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
5805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
5613
5806
  */
5614
5807
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
5615
5808
  /**
5616
5809
  * Disallow unreadable IIFEs.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
5810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
5618
5811
  */
5619
5812
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5620
5813
  /**
5621
5814
  * Disallow unreadable `new` expressions.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
5815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
5623
5816
  */
5624
5817
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
5625
5818
  /**
5626
5819
  * Disallow unreadable object destructuring.
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
5820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
5628
5821
  */
5629
5822
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
5630
5823
  /**
5631
5824
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
5825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
5633
5826
  */
5634
5827
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
5635
5828
  /**
5636
5829
  * Disallow unsafe DOM HTML APIs.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
5830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
5638
5831
  */
5639
5832
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
5833
+ /**
5834
+ * Disallow known values that JSON serialization cannot represent faithfully.
5835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
5836
+ */
5837
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
5640
5838
  /**
5641
5839
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5643
5841
  */
5644
5842
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
5645
5843
  /**
5646
5844
  * Disallow unsafe values as property keys.
5647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
5845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
5648
5846
  */
5649
5847
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
5650
5848
  /**
5651
5849
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
5652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5653
5851
  */
5654
5852
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
5655
5853
  /**
5656
5854
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
5657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
5855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
5658
5856
  */
5659
5857
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
5660
5858
  /**
5661
- * Disallow unscoped CSS nesting selectors.
5662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
5859
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
5860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
5861
+ * @deprecated
5663
5862
  */
5664
- 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
5863
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
5665
5864
  /**
5666
5865
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
5667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
5866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
5668
5867
  * @deprecated
5669
5868
  */
5670
5869
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
5671
5870
  /**
5672
5871
  * Disallow ignoring the return value of selected built-in methods.
5673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
5872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
5674
5873
  */
5675
5874
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
5676
5875
  /**
5677
5876
  * Disallow discarding lazy iterator helpers.
5678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
5877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
5679
5878
  */
5680
5879
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
5681
5880
  /**
5682
5881
  * Disallow unused object properties.
5683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
5882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
5684
5883
  */
5685
5884
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5885
+ /**
5886
+ * Disallow passing full URLs to `URLSearchParams`.
5887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
5888
+ */
5889
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
5686
5890
  /**
5687
5891
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
5688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
5892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
5689
5893
  */
5690
5894
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
5691
5895
  /**
5692
5896
  * Disallow useless type coercions of values that are already of the target type.
5693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
5897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
5694
5898
  */
5695
5899
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
5696
5900
  /**
5697
5901
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
5902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
5699
5903
  */
5700
5904
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5701
5905
  /**
5702
5906
  * Disallow useless compound assignments such as `x += 0`.
5703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
5907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
5704
5908
  */
5705
5909
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
5706
5910
  /**
5707
5911
  * Disallow useless concatenation of literals.
5708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
5912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
5709
5913
  */
5710
5914
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
5711
5915
  /**
5712
5916
  * Disallow useless `continue` statements.
5713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
5917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
5714
5918
  */
5715
5919
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
5716
5920
  /**
5717
5921
  * Disallow unnecessary existence checks before deletion.
5718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
5922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
5719
5923
  */
5720
5924
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
5721
5925
  /**
5722
5926
  * Disallow `else` after a statement that exits.
5723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
5927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
5724
5928
  */
5725
5929
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
5726
5930
  /**
5727
5931
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5729
5933
  */
5730
5934
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5731
5935
  /**
5732
5936
  * Disallow useless fallback when spreading in object literals.
5733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
5937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
5734
5938
  */
5735
5939
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5736
5940
  /**
5737
5941
  * Disallow unnecessary `.toArray()` on iterators.
5738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
5942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
5739
5943
  */
5740
5944
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
5741
5945
  /**
5742
5946
  * Disallow useless array length check.
5743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
5947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
5744
5948
  */
5745
5949
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5746
5950
  /**
5747
5951
  * Disallow unnecessary operands in logical expressions involving boolean literals.
5748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
5952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
5749
5953
  */
5750
5954
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
5751
5955
  /**
5752
5956
  * Disallow useless overrides of class methods.
5753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
5957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
5754
5958
  */
5755
5959
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
5756
5960
  /**
5757
5961
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
5962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
5759
5963
  */
5760
5964
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5761
5965
  /**
5762
5966
  * Disallow redundant re-exports.
5763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
5967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
5764
5968
  */
5765
5969
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
5766
5970
  /**
5767
5971
  * Disallow simple recursive function calls that can be replaced with a loop.
5768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
5972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
5769
5973
  */
5770
5974
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
5771
5975
  /**
5772
5976
  * Disallow unnecessary `Set` construction around `Set` methods.
5773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
5977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
5774
5978
  */
5775
5979
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
5776
5980
  /**
5777
5981
  * Disallow unnecessary spread.
5778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
5982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
5779
5983
  */
5780
5984
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5781
5985
  /**
5782
5986
  * Disallow useless case in switch statements.
5783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
5987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
5784
5988
  */
5785
5989
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5786
5990
  /**
5787
5991
  * Disallow useless template literal expressions.
5788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
5992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
5789
5993
  */
5790
5994
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
5791
5995
  /**
5792
5996
  * Disallow useless `undefined`.
5793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
5997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
5794
5998
  */
5795
5999
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5796
6000
  /**
5797
6001
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
5798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
6002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
5799
6003
  */
5800
6004
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
5801
6005
  /**
5802
6006
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
5803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
6007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
5804
6008
  */
5805
6009
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
5806
6010
  /**
5807
- * Disallow number literals with zero fractions or dangling dots.
5808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
6011
+ * Require consistent decimal numbers without redundant zeros.
6012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
5809
6013
  */
5810
6014
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5811
6015
  /**
5812
6016
  * Enforce proper case for numeric literals.
5813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
6017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
5814
6018
  */
5815
6019
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5816
6020
  /**
5817
6021
  * Enforce the style of numeric separators by correctly grouping digits.
5818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
6022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
5819
6023
  */
5820
6024
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5821
6025
  /**
5822
6026
  * Require assignment operator shorthand where possible.
5823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
6027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
5824
6028
  */
5825
6029
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
5826
6030
  /**
5827
6031
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
5828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
6032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
5829
6033
  */
5830
6034
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
5831
6035
  /**
5832
6036
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
5833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
6037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
5834
6038
  */
5835
6039
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
5836
6040
  /**
5837
6041
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
6042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
5839
6043
  */
5840
6044
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5841
6045
  /**
5842
6046
  * Prefer an options object over a boolean in `.addEventListener()`.
5843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
6047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
5844
6048
  */
5845
6049
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
5846
6050
  /**
5847
6051
  * Prefer `AggregateError` when throwing collected errors.
5848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
6052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
5849
6053
  */
5850
6054
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
5851
6055
  /**
5852
6056
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
6057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
5854
6058
  */
5855
6059
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5856
6060
  /**
5857
6061
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
6062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
5859
6063
  */
5860
6064
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5861
6065
  /**
5862
6066
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
5863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
6067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
5864
6068
  */
5865
6069
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5866
6070
  /**
5867
6071
  * Prefer `Array.fromAsync()` over array accumulation loops.
5868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
6072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
5869
6073
  */
5870
6074
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
5871
6075
  /**
5872
6076
  * Prefer using the `Array.from()` mapping function argument.
5873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
6077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
5874
6078
  */
5875
6079
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
5876
6080
  /**
5877
6081
  * Prefer `Array.from({length}, …)` when creating range arrays.
5878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
6082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
5879
6083
  */
5880
6084
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
5881
6085
  /**
5882
6086
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
6087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
5884
6088
  */
5885
6089
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5886
6090
  /**
5887
6091
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
5888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
6092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
5889
6093
  */
5890
6094
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
5891
6095
  /**
5892
6096
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
5893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
6097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
5894
6098
  */
5895
6099
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
5896
6100
  /**
5897
6101
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
5898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
6102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
5899
6103
  */
5900
6104
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
5901
6105
  /**
5902
6106
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
6107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
5904
6108
  */
5905
6109
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5906
6110
  /**
5907
6111
  * Prefer `.at()` method for index access and `String#charAt()`.
5908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
6112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
5909
6113
  */
5910
6114
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5911
6115
  /**
5912
6116
  * Prefer `await` over promise chaining.
5913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
6117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
5914
6118
  */
5915
6119
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
5916
6120
  /**
5917
6121
  * Prefer `BigInt` literals over the constructor.
5918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
6122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
5919
6123
  */
5920
6124
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5921
6125
  /**
5922
6126
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
6127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
5924
6128
  */
5925
6129
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5926
6130
  /**
5927
6131
  * Prefer block statements over IIFEs used only for scoping.
5928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
6132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
5929
6133
  */
5930
6134
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
5931
6135
  /**
5932
6136
  * Prefer directly returning boolean expressions over `if` statements.
5933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
6137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
5934
6138
  */
5935
6139
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
5936
6140
  /**
5937
6141
  * Prefer class field declarations over `this` assignments in constructors.
5938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
6142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
5939
6143
  */
5940
6144
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5941
6145
  /**
5942
6146
  * Prefer using `Element#classList.toggle()` to toggle class names.
5943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
6147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
5944
6148
  */
5945
6149
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5946
6150
  /**
5947
6151
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
6152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
5949
6153
  */
5950
6154
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5951
6155
  /**
5952
6156
  * Prefer combining consecutive guards with identical exit statements.
5953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
6157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
5954
6158
  */
5955
6159
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
5956
6160
  /**
5957
6161
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
5958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
6162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
5959
6163
  */
5960
6164
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
5961
6165
  /**
5962
6166
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
6167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
5964
6168
  */
5965
6169
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5966
6170
  /**
5967
- * Prefer default parameters over reassignment.
5968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
6171
+ * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
6172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
5969
6173
  */
5970
6174
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5971
6175
  /**
5972
6176
  * Prefer direct iteration over default iterator method calls.
5973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
6177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
5974
6178
  */
5975
6179
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
5976
6180
  /**
5977
6181
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
5978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
6182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
5979
6183
  */
5980
6184
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
5981
6185
  /**
5982
6186
  * Prefer `Element#append()` over `Node#appendChild()`.
5983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
6187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
5984
6188
  */
5985
6189
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5986
6190
  /**
5987
6191
  * Renamed to `unicorn/dom-node-dataset`.
5988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
6192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5989
6193
  * @deprecated
5990
6194
  */
5991
6195
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5992
6196
  /**
5993
6197
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
5994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
6198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
5995
6199
  */
5996
6200
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
5997
6201
  /**
5998
6202
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
6203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
6000
6204
  */
6001
6205
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6002
6206
  /**
6003
6207
  * Prefer `.replaceChildren()` when replacing DOM children.
6004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
6208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
6005
6209
  */
6006
6210
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
6007
6211
  /**
6008
6212
  * Prefer `.textContent` over `.innerText`.
6009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
6213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
6010
6214
  */
6011
6215
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6012
6216
  /**
6013
6217
  * Prefer early returns over conditionals wrapping the remainder of the function body.
6014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
6218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
6015
6219
  */
6016
6220
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
6017
6221
  /**
6018
6222
  * Prefer `else if` over adjacent `if` statements with related conditions.
6019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
6223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
6020
6224
  */
6021
6225
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
6022
6226
  /**
6023
6227
  * Prefer `Error.isError()` when checking for errors.
6024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
6228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
6025
6229
  */
6026
6230
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
6231
+ /**
6232
+ * Prefer escape sequences for irregular whitespace characters.
6233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
6234
+ */
6235
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
6027
6236
  /**
6028
6237
  * Prefer `EventTarget` over `EventEmitter`.
6029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
6238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
6030
6239
  */
6031
6240
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
6032
6241
  /**
6033
- * Prefer explicit viewport units.
6034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
6242
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
6243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
6244
+ * @deprecated
6035
6245
  */
6036
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
6246
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
6037
6247
  /**
6038
6248
  * Prefer `export…from` when re-exporting.
6039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
6249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
6040
6250
  */
6041
6251
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6042
6252
  /**
6043
6253
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
6044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
6254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
6045
6255
  */
6046
6256
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
6047
6257
  /**
6048
6258
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
6049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
6259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
6050
6260
  */
6051
6261
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
6052
6262
  /**
6053
6263
  * Prefer global numeric constants over `Number` static properties.
6054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
6264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
6055
6265
  */
6056
6266
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
6057
6267
  /**
6058
6268
  * Prefer `globalThis` over `window`, `self`, and `global`.
6059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
6269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
6060
6270
  */
6061
6271
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6062
6272
  /**
6063
6273
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
6064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
6274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
6065
6275
  */
6066
6276
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
6067
6277
  /**
6068
6278
  * Prefer `.has()` when checking existence.
6069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
6279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
6070
6280
  */
6071
6281
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
6072
6282
  /**
6073
6283
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
6074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
6284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
6075
6285
  */
6076
6286
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
6077
6287
  /**
6078
6288
  * Prefer HTTPS over HTTP.
6079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
6289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
6080
6290
  */
6081
6291
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
6082
6292
  /**
6083
6293
  * Prefer identifiers over string literals in import and export specifiers.
6084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
6294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
6085
6295
  */
6086
6296
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
6087
6297
  /**
6088
6298
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
6299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
6090
6300
  */
6091
6301
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6092
6302
  /**
6093
6303
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
6304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
6095
6305
  */
6096
6306
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6097
6307
  /**
6098
6308
  * Prefer `.includes()` over repeated equality comparisons.
6099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
6309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
6100
6310
  */
6101
6311
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
6102
6312
  /**
6103
6313
  * Prefer passing iterables directly to constructors instead of filling empty collections.
6104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
6314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
6105
6315
  */
6106
6316
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
6107
6317
  /**
6108
6318
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
6109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
6319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
6110
6320
  */
6111
6321
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
6112
6322
  /**
6113
6323
  * Prefer iterator helpers over temporary arrays from iterators.
6114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
6324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
6115
6325
  */
6116
6326
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
6117
6327
  /**
6118
6328
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
6119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
6329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
6120
6330
  */
6121
6331
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
6122
6332
  /**
6123
6333
  * Prefer moving `.toArray()` to the end of iterator helper chains.
6124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
6334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
6125
6335
  */
6126
6336
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
6127
6337
  /**
6128
6338
  * Prefer `Iterator.zip()` over parallel-array indexing.
6129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
6339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
6130
6340
  */
6131
6341
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
6132
6342
  /**
6133
6343
  * Prefer JSON imports over reading and parsing JSON files.
6134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
6344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
6135
6345
  */
6136
6346
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
6137
6347
  /**
6138
6348
  * Renamed to `unicorn/consistent-json-file-read`.
6139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
6349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
6140
6350
  * @deprecated
6141
6351
  */
6142
6352
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6143
6353
  /**
6144
6354
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
6145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
6355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
6146
6356
  */
6147
6357
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6358
+ /**
6359
+ * Prefer literal printable ASCII characters over escape sequences.
6360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
6361
+ */
6362
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
6148
6363
  /**
6149
6364
  * Prefer `location.assign()` over assigning to `location.href`.
6150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
6365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
6151
6366
  */
6152
6367
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
6153
6368
  /**
6154
6369
  * Prefer using a logical operator over a ternary.
6155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6156
6371
  */
6157
6372
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6158
6373
  /**
6159
6374
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
6160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
6375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
6161
6376
  */
6162
6377
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
6163
6378
  /**
6164
6379
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
6165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
6380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
6166
6381
  */
6167
6382
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
6168
6383
  /**
6169
6384
  * Prefer `Math` constants over their approximate numeric values.
6170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
6385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
6171
6386
  */
6172
6387
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
6173
6388
  /**
6174
6389
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
6390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
6176
6391
  */
6177
6392
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6178
6393
  /**
6179
6394
  * Prefer `Math.trunc()` for truncating numbers.
6180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
6395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
6181
6396
  */
6182
6397
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6183
6398
  /**
6184
- * Prefer modern media feature range syntax.
6185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
6399
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
6400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
6401
+ * @deprecated
6186
6402
  */
6187
6403
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
6188
6404
  /**
6189
6405
  * Prefer moving ternaries into the minimal varying part of an expression.
6190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
6406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
6191
6407
  */
6192
6408
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
6193
6409
  /**
6194
6410
  * Prefer modern DOM APIs.
6195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
6411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
6196
6412
  */
6197
6413
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6198
6414
  /**
6199
6415
  * Prefer modern `Math` APIs over legacy patterns.
6200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
6416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
6201
6417
  */
6202
6418
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6203
6419
  /**
6204
6420
  * Prefer JavaScript modules (ESM) over CommonJS.
6205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
6421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
6206
6422
  */
6207
6423
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6208
6424
  /**
6209
6425
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
6426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
6211
6427
  */
6212
6428
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6213
6429
  /**
6214
6430
  * Prefer negative index over `.length - index` when possible.
6215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
6431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
6216
6432
  */
6217
6433
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6218
6434
  /**
6219
6435
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
6436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
6221
6437
  */
6222
6438
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6223
6439
  /**
6224
6440
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
6225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
6441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
6226
6442
  */
6227
6443
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
6228
6444
  /**
6229
6445
  * Prefer `Number.isSafeInteger()` over integer checks.
6230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
6446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
6231
6447
  */
6232
6448
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
6233
6449
  /**
6234
6450
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
6235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
6451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
6236
6452
  */
6237
6453
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6238
6454
  /**
6239
6455
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
6240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
6456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
6241
6457
  */
6242
6458
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
6243
6459
  /**
6244
6460
  * Prefer object destructuring defaults over default object literals with spread.
6245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
6461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
6246
6462
  */
6247
6463
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
6248
6464
  /**
6249
6465
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
6466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
6251
6467
  */
6252
6468
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6253
6469
  /**
6254
6470
  * Prefer the most specific `Object` iterable method.
6255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
6471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
6256
6472
  */
6257
6473
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
6258
6474
  /**
6259
6475
  * Prefer observer APIs over resize and scroll listeners with layout reads.
6260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
6476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
6261
6477
  */
6262
6478
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
6263
6479
  /**
6264
6480
  * Prefer omitting the `catch` binding parameter.
6265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
6481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
6266
6482
  */
6267
6483
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6268
6484
  /**
6269
6485
  * Prefer `Path2D` for repeatedly drawn canvas paths.
6270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
6486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
6271
6487
  */
6272
6488
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
6273
6489
  /**
6274
6490
  * Prefer private class fields over the underscore-prefix convention.
6275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
6491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
6276
6492
  */
6277
6493
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
6494
+ /**
6495
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
6496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
6497
+ */
6498
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
6278
6499
  /**
6279
6500
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
6280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
6501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
6281
6502
  */
6282
6503
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
6283
6504
  /**
6284
6505
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
6285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
6506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
6286
6507
  */
6287
6508
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
6288
6509
  /**
6289
6510
  * Prefer borrowing methods from the prototype instead of the instance.
6290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
6511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
6291
6512
  */
6292
6513
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6293
6514
  /**
6294
6515
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
6295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
6516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
6296
6517
  */
6297
6518
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
6298
6519
  /**
6299
6520
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
6300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
6521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
6301
6522
  */
6302
6523
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
6303
6524
  /**
6304
6525
  * Prefer `Reflect.apply()` over `Function#apply()`.
6305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
6526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
6306
6527
  */
6307
6528
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6308
6529
  /**
6309
6530
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
6310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
6531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
6311
6532
  */
6312
6533
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
6313
6534
  /**
6314
6535
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
6315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
6536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
6316
6537
  */
6317
6538
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6318
6539
  /**
6319
6540
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
6541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
6321
6542
  */
6322
6543
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6323
6544
  /**
6324
6545
  * Prefer `:scope` when using element query selector methods.
6325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
6546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
6326
6547
  */
6327
6548
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
6328
6549
  /**
6329
6550
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
6551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
6331
6552
  */
6332
6553
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
6333
6554
  /**
6334
6555
  * Prefer `Set` methods for Set operations.
6335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
6556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
6336
6557
  */
6337
6558
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
6338
6559
  /**
6339
6560
  * Prefer using `Set#size` instead of `Array#length`.
6340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
6561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
6341
6562
  */
6342
6563
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6343
6564
  /**
6344
6565
  * Prefer arrow function properties over methods with a single return.
6345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
6566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
6346
6567
  */
6347
6568
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
6569
+ /**
6570
+ * Prefer shorter alternatives to Unicode escape sequences.
6571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
6572
+ */
6573
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
6348
6574
  /**
6349
6575
  * Prefer simple conditions first in logical expressions.
6350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
6576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
6351
6577
  */
6352
6578
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
6353
6579
  /**
6354
6580
  * Prefer a simple comparison function for `Array#sort()`.
6355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
6581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
6356
6582
  */
6357
6583
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
6358
6584
  /**
6359
6585
  * Prefer simplified conditions.
6360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
6586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
6361
6587
  */
6362
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
6588
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
6363
6589
  /**
6364
6590
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
6365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
6591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
6366
6592
  */
6367
6593
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
6368
6594
  /**
6369
6595
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
6596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
6371
6597
  */
6372
6598
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6373
6599
  /**
6374
6600
  * Prefer a single object destructuring declaration per local const source.
6375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
6601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
6376
6602
  */
6377
6603
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
6378
6604
  /**
6379
6605
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
6380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
6606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
6381
6607
  */
6382
6608
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
6383
6609
  /**
6384
6610
  * Prefer declaring variables in the smallest possible scope.
6385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
6611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
6386
6612
  */
6387
6613
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
6388
6614
  /**
6389
6615
  * Prefer `String#split()` with a limit.
6390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
6616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
6391
6617
  */
6392
6618
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
6393
6619
  /**
6394
6620
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
6395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
6621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
6396
6622
  */
6397
6623
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6398
6624
  /**
6399
6625
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
6400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
6626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
6401
6627
  */
6402
6628
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
6403
6629
  /**
6404
6630
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
6405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
6631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
6406
6632
  */
6407
6633
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
6408
6634
  /**
6409
6635
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
6636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
6411
6637
  */
6412
6638
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6413
6639
  /**
6414
6640
  * Prefer `String#repeat()` for repeated whitespace.
6415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
6641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
6416
6642
  */
6417
6643
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
6418
6644
  /**
6419
6645
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
6420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
6646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
6421
6647
  */
6422
6648
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6423
6649
  /**
6424
6650
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
6651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
6426
6652
  */
6427
6653
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6428
6654
  /**
6429
6655
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
6430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
6656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
6431
6657
  */
6432
6658
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6433
6659
  /**
6434
6660
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
6661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
6436
6662
  */
6437
6663
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6438
6664
  /**
6439
6665
  * Prefer using `structuredClone` to create a deep clone.
6440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
6666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
6441
6667
  */
6442
6668
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6443
6669
  /**
6444
6670
  * Prefer `switch` over multiple `else-if`.
6445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
6671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
6446
6672
  */
6447
6673
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6448
6674
  /**
6449
6675
  * Prefer `Temporal` over `Date`.
6450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
6676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
6451
6677
  */
6452
6678
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
6453
6679
  /**
6454
6680
  * Prefer direct Temporal conversion methods.
6455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
6681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
6456
6682
  */
6457
6683
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
6458
6684
  /**
6459
6685
  * Prefer ternary expressions over simple `if` statements that return or assign values.
6460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
6686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
6461
6687
  */
6462
6688
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6463
6689
  /**
6464
6690
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
6465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
6691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
6466
6692
  */
6467
6693
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
6468
6694
  /**
6469
6695
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
6470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
6696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
6471
6697
  */
6472
6698
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
6473
6699
  /**
6474
6700
  * Prefer top-level await over top-level promises and async function calls.
6475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
6701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
6476
6702
  */
6477
6703
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6478
6704
  /**
6479
6705
  * Enforce throwing `TypeError` in type checking conditions.
6480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
6706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
6481
6707
  */
6482
6708
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6483
6709
  /**
6484
6710
  * Require type literals to be last in union types.
6485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
6711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
6486
6712
  */
6487
6713
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
6488
6714
  /**
6489
6715
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
6490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
6716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
6491
6717
  */
6492
6718
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
6493
6719
  /**
6494
6720
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
6495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
6721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
6496
6722
  */
6497
6723
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
6498
6724
  /**
6499
6725
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
6726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
6501
6727
  */
6502
6728
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
6503
6729
  /**
6504
6730
  * Prefer Unicode code point escapes over legacy escape sequences.
6505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
6731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
6506
6732
  */
6507
6733
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
6508
6734
  /**
6509
6735
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
6510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
6736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
6511
6737
  */
6512
6738
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
6513
6739
  /**
6514
6740
  * Prefer `URL#href` over stringifying a `URL`.
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
6741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
6516
6742
  */
6517
6743
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
6518
6744
  /**
6519
6745
  * Prefer `URLSearchParams` over manually splitting query strings.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
6746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
6521
6747
  */
6522
6748
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
6523
6749
  /**
6524
6750
  * Prefer putting the condition in the while statement.
6525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
6751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
6526
6752
  */
6527
6753
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
6528
6754
  /**
6529
6755
  * Renamed to `unicorn/name-replacements`.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6531
6757
  * @deprecated
6532
6758
  */
6533
6759
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
6534
6760
  /**
6535
6761
  * Enforce consistent relative URL style.
6536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
6762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
6537
6763
  */
6538
6764
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6539
6765
  /**
6540
6766
  * Enforce using the separator argument with `Array#join()`.
6541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
6767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
6542
6768
  */
6543
6769
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6544
6770
  /**
6545
6771
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
6546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
6772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
6547
6773
  */
6548
6774
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
6549
6775
  /**
6550
6776
  * Require `CSS.escape()` for interpolated values in CSS selectors.
6551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
6777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
6552
6778
  */
6553
6779
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
6554
6780
  /**
6555
6781
  * Require configured YAML frontmatter fields.
6556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
6782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
6557
6783
  */
6558
6784
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
6559
6785
  /**
6560
6786
  * Require non-empty module attributes for imports and exports
6561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
6787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
6562
6788
  */
6563
6789
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6564
6790
  /**
6565
6791
  * Require non-empty specifier list in import and export statements.
6566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
6792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
6567
6793
  */
6568
6794
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6569
6795
  /**
6570
6796
  * Enforce using the digits argument with `Number#toFixed()`.
6571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6572
6798
  */
6573
6799
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6574
6800
  /**
6575
6801
  * Require passive event listeners for high-frequency events.
6576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
6802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
6577
6803
  */
6578
6804
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
6579
6805
  /**
6580
6806
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
6807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
6582
6808
  */
6583
6809
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6584
6810
  /**
6585
6811
  * Require boolean-returning Proxy traps to return booleans.
6586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
6812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
6587
6813
  */
6588
6814
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
6815
+ /**
6816
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
6817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
6818
+ */
6819
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
6589
6820
  /**
6590
6821
  * Enforce a consistent style for single-line block comments.
6591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
6822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
6592
6823
  */
6593
6824
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
6594
6825
  /**
6595
6826
  * Enforce better string content.
6596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
6827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
6597
6828
  */
6598
6829
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6599
6830
  /**
6600
6831
  * Enforce consistent brace style for `case` clauses.
6601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
6832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
6602
6833
  */
6603
6834
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6604
6835
  /**
6605
6836
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
6837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
6607
6838
  */
6608
6839
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6609
6840
  /**
6610
6841
  * Fix whitespace-insensitive template indentation.
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
6842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
6612
6843
  */
6613
6844
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6614
6845
  /**
6615
6846
  * Enforce consistent case for text encoding identifiers.
6616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
6847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
6617
6848
  */
6618
6849
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6619
6850
  /**
6620
6851
  * Require `new` when creating an error.
6621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
6852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
6622
6853
  */
6623
6854
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6624
6855
  /**
6625
6856
  * Limit the complexity of `try` blocks.
6626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
6857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
6627
6858
  */
6628
6859
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
6629
6860
  /**
@@ -11541,6 +11772,7 @@ type ImportLitePreferDefaultExport = [] | [{
11541
11772
  }];
11542
11773
  // ----- jsdoc/check-alignment -----
11543
11774
  type JsdocCheckAlignment = [] | [{
11775
+ ignoreEmptyLines?: boolean;
11544
11776
  innerIndent?: number;
11545
11777
  }];
11546
11778
  // ----- jsdoc/check-examples -----
@@ -11568,6 +11800,7 @@ type JsdocCheckExamples = [] | [{
11568
11800
  // ----- jsdoc/check-indentation -----
11569
11801
  type JsdocCheckIndentation = [] | [{
11570
11802
  allowIndentedSections?: boolean;
11803
+ allowNoSpaceAfterAsterisk?: boolean;
11571
11804
  excludeTags?: string[];
11572
11805
  }];
11573
11806
  // ----- jsdoc/check-line-alignment -----
@@ -11603,6 +11836,10 @@ type JsdocCheckParamNames = [] | [{
11603
11836
  type JsdocCheckPropertyNames = [] | [{
11604
11837
  enableFixer?: boolean;
11605
11838
  }];
11839
+ // ----- jsdoc/check-syntax -----
11840
+ type JsdocCheckSyntax = [] | [{
11841
+ enableFixer?: boolean;
11842
+ }];
11606
11843
  // ----- jsdoc/check-tag-names -----
11607
11844
  type JsdocCheckTagNames = [] | [{
11608
11845
  definedTags?: string[];
@@ -11987,7 +12224,6 @@ type JsdocRequireTags = [] | [{
11987
12224
  tags?: (string | {
11988
12225
  context?: string;
11989
12226
  tag?: string;
11990
- [k: string]: unknown | undefined;
11991
12227
  })[];
11992
12228
  }];
11993
12229
  // ----- jsdoc/require-template -----
@@ -19175,6 +19411,11 @@ interface _UnicornImportStyle_ModuleStyles {
19175
19411
  interface _UnicornImportStyle_BooleanObject {
19176
19412
  [k: string]: boolean | undefined;
19177
19413
  }
19414
+ // ----- unicorn/indent -----
19415
+ type UnicornIndent = [] | [{
19416
+ indent?: ("tab" | number);
19417
+ tabWidth?: number;
19418
+ }];
19178
19419
  // ----- unicorn/isolated-functions -----
19179
19420
  type UnicornIsolatedFunctions = [] | [{
19180
19421
  overrideGlobals?: {
@@ -19186,6 +19427,15 @@ type UnicornIsolatedFunctions = [] | [{
19186
19427
  }];
19187
19428
  // ----- unicorn/iteration-fallback-style -----
19188
19429
  type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
19430
+ // ----- unicorn/key-name-casing -----
19431
+ type UnicornKeyNameCasing = [] | [{
19432
+ camelCase?: boolean;
19433
+ PascalCase?: boolean;
19434
+ SCREAMING_SNAKE_CASE?: boolean;
19435
+ "kebab-case"?: boolean;
19436
+ snake_case?: boolean;
19437
+ ignore?: string[];
19438
+ }];
19189
19439
  // ----- unicorn/logical-assignment-operators -----
19190
19440
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
19191
19441
  enforceForIfStatements?: boolean;
@@ -19240,10 +19490,6 @@ type UnicornNoArraySort = [] | [{
19240
19490
  type UnicornNoBreakInNestedLoop = [] | [{
19241
19491
  checkContinue?: boolean;
19242
19492
  }];
19243
- // ----- unicorn/no-deprecated-css-features -----
19244
- type UnicornNoDeprecatedCssFeatures = [] | [{
19245
- allow?: string[];
19246
- }];
19247
19493
  // ----- unicorn/no-empty-file -----
19248
19494
  type UnicornNoEmptyFile = [] | [{
19249
19495
  allowComments?: boolean;
@@ -19292,9 +19538,9 @@ type UnicornNoNull = [] | [{
19292
19538
  type UnicornNoTypeofUndefined = [] | [{
19293
19539
  checkGlobalVariables?: boolean;
19294
19540
  }];
19295
- // ----- unicorn/no-unknown-pseudo-selectors -----
19296
- type UnicornNoUnknownPseudoSelectors = [] | [{
19297
- allow?: string[];
19541
+ // ----- unicorn/no-unnecessary-parameters -----
19542
+ type UnicornNoUnnecessaryParameters = [] | [{
19543
+ minimumCallCount?: number;
19298
19544
  }];
19299
19545
  // ----- unicorn/no-unnecessary-polyfills -----
19300
19546
  type UnicornNoUnnecessaryPolyfills = [] | [{
@@ -19306,10 +19552,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
19306
19552
  type UnicornNoUnreadableArrayDestructuring = [] | [{
19307
19553
  maximumIgnoredElements?: number;
19308
19554
  }];
19309
- // ----- unicorn/no-unscoped-css-nesting-selector -----
19310
- type UnicornNoUnscopedCssNestingSelector = [] | [{
19311
- scopingRootAtRules?: string[];
19312
- }];
19313
19555
  // ----- unicorn/no-useless-undefined -----
19314
19556
  type UnicornNoUselessUndefined = [] | [{
19315
19557
  checkArguments?: boolean;
@@ -19366,6 +19608,7 @@ type UnicornPreferAt = [] | [{
19366
19608
  // ----- unicorn/prefer-combined-guards -----
19367
19609
  type UnicornPreferCombinedGuards = [] | [{
19368
19610
  checkCompoundConditions?: boolean;
19611
+ checkMultiStatementBodies?: boolean;
19369
19612
  }];
19370
19613
  // ----- unicorn/prefer-continue -----
19371
19614
  type UnicornPreferContinue = [] | [{
@@ -19382,10 +19625,6 @@ type UnicornPreferEarlyReturn = [] | [{
19382
19625
  maximumStatements?: number;
19383
19626
  checkShortBodies?: boolean;
19384
19627
  }];
19385
- // ----- unicorn/prefer-explicit-viewport-units -----
19386
- type UnicornPreferExplicitViewportUnits = [] | [{
19387
- unit?: ("dvh" | "svh" | "lvh");
19388
- }];
19389
19628
  // ----- unicorn/prefer-export-from -----
19390
19629
  type UnicornPreferExportFrom = [] | [{
19391
19630
  checkUsedVariables?: boolean;
@@ -19429,6 +19668,10 @@ type UnicornPreferSetHas = [] | [{
19429
19668
  }];
19430
19669
  // ----- unicorn/prefer-short-arrow-method -----
19431
19670
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
19671
+ // ----- unicorn/prefer-simplified-conditions -----
19672
+ type UnicornPreferSimplifiedConditions = [] | [{
19673
+ negatedConditions?: ("simplify" | "expand");
19674
+ }];
19432
19675
  // ----- unicorn/prefer-single-call -----
19433
19676
  type UnicornPreferSingleCall = [] | [{
19434
19677
  ignore?: string[];
@@ -21223,7 +21466,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
21223
21466
  markers?: string[];
21224
21467
  }];
21225
21468
  // Names of all the configs
21226
- type ConfigNames = 'moso/eslint-comments' | 'moso/ignores/globals' | 'moso/ignores/gitignore' | 'moso/imports' | 'moso/imports/typescript' | 'moso/javascript' | 'moso/javascript/opinionated' | 'moso/node/setup' | 'moso/node/rules' | 'moso/promise' | 'moso/regexp' | 'moso/unicorn/setup' | 'moso/unicorn/rules' | 'moso/stylistic' | 'moso/baseline/setup' | 'moso/baseline/rules' | 'moso/baseline/type-aware-rules' | 'moso/astro/setup' | 'moso/astro/rules' | 'moso/e18e/rules' | 'moso/functional' | 'moso/functional/disable-type-aware' | 'moso/jsdoc/setup' | 'moso/jsdoc/rules' | 'moso/jsonc/setup' | 'moso/jsonc/rules' | 'moso/sort/package-json' | 'moso/sort/tsconfig-json' | 'moso/jsx/setup' | 'moso/jsx/rules' | 'moso/nextjs/setup' | 'moso/nextjs/rules' | 'moso/perfectionist' | 'moso/react/setup' | 'moso/react/rules' | 'moso/react/typescript' | 'moso/react/typescript/type-aware-rules' | 'moso/test/setup' | 'moso/test/rules' | 'moso/toml/setup' | 'moso/toml/rules' | 'moso/typescript/setup' | 'moso/typescript/rules' | 'moso/typescript/erasable-syntax' | 'moso/typescript/rules-type-aware' | 'moso/typescript/dts-overrides' | 'moso/typescript/test-overrides' | 'moso/typescript/javascript-overrides' | 'moso/vue/setup' | 'moso/vue/rules' | 'moso/tailwind' | 'moso/yaml/setup' | 'moso/yaml/rules' | 'moso/disables/allow-default-export' | 'moso/disables/bin' | 'moso/disables/cjs' | 'moso/disables/cli' | 'moso/disables/components' | 'moso/disables/config-files' | 'moso/disables/dts' | 'moso/disables/github' | 'moso/disables/node-frameworks' | 'moso/disables/node-typescript' | 'moso/disables/scripts' | 'moso/disables/tests' | 'moso/disables/typings';
21469
+ type ConfigNames = 'moso/eslint-comments' | 'moso/ignores/globals' | 'moso/ignores/gitignore' | 'moso/imports' | 'moso/imports/typescript' | 'moso/security' | 'moso/javascript' | 'moso/javascript/opinionated' | 'moso/node/setup' | 'moso/node/rules' | 'moso/promise' | 'moso/regexp' | 'moso/unicorn/setup' | 'moso/unicorn/rules' | 'moso/stylistic' | 'moso/baseline/setup' | 'moso/baseline/rules' | 'moso/baseline/type-aware-rules' | 'moso/astro/setup' | 'moso/astro/rules' | 'moso/e18e/rules' | 'moso/functional' | 'moso/functional/disable-type-aware' | 'moso/jsdoc/setup' | 'moso/jsdoc/rules' | 'moso/jsonc/setup' | 'moso/jsonc/rules' | 'moso/sort/package-json' | 'moso/sort/tsconfig-json' | 'moso/jsx/setup' | 'moso/jsx/rules' | 'moso/nextjs/setup' | 'moso/nextjs/rules' | 'moso/perfectionist' | 'moso/react/setup' | 'moso/react/rules' | 'moso/react/typescript' | 'moso/react/typescript/type-aware-rules' | 'moso/test/setup' | 'moso/test/rules' | 'moso/toml/setup' | 'moso/toml/rules' | 'moso/typescript/setup' | 'moso/typescript/rules' | 'moso/typescript/erasable-syntax' | 'moso/typescript/rules-type-aware' | 'moso/typescript/dts-overrides' | 'moso/typescript/test-overrides' | 'moso/typescript/javascript-overrides' | 'moso/vue/setup' | 'moso/vue/rules' | 'moso/tailwind' | 'moso/yaml/setup' | 'moso/yaml/rules' | 'moso/disables/allow-default-export' | 'moso/disables/bin' | 'moso/disables/cjs' | 'moso/disables/cli' | 'moso/disables/components' | 'moso/disables/config-files' | 'moso/disables/dts' | 'moso/disables/github' | 'moso/disables/node-frameworks' | 'moso/disables/node-typescript' | 'moso/disables/scripts' | 'moso/disables/tests' | 'moso/disables/typings';
21227
21470
  //#endregion
21228
21471
  //#region src/types.d.ts
21229
21472
  type Awaitable<T> = Promise<T> | T;
@@ -21275,6 +21518,14 @@ type ConfigOptions = {
21275
21518
  * @default true
21276
21519
  */
21277
21520
  regexp?: boolean | OptionsOverrides;
21521
+ /**
21522
+ * Enable security rules.
21523
+ *
21524
+ * @see https://https://github.com/eslint-community/eslint-plugin-security
21525
+ *
21526
+ * @default true
21527
+ */
21528
+ security?: boolean | OptionsSecurity["severity"] | (OptionsOverrides & OptionsSecurity);
21278
21529
  /**
21279
21530
  * Enable test support.
21280
21531
  *
@@ -21382,7 +21633,7 @@ type LanguageOptions = {
21382
21633
  /**
21383
21634
  * Enable JSON/JSON5/JSONC support.
21384
21635
  *
21385
- * @default true
21636
+ * @default false
21386
21637
  */
21387
21638
  jsonc?: boolean | OptionsOverrides;
21388
21639
  /**
@@ -21699,6 +21950,18 @@ type OptionsReact = OptionsOverrides & {
21699
21950
  allowConstantExport?: boolean;
21700
21951
  };
21701
21952
  };
21953
+ type OptionsSecurity = OptionsOverrides & {
21954
+ /**
21955
+ * Security rule enforcement options.
21956
+ *
21957
+ * - `none`: no security rules
21958
+ * - `lite`: basic rules set to 'warn' (detect-object-injection, detect-non-literal-fs-filename, and detect-non-literal-regexp off)
21959
+ * - `moderate`: standard rules set to 'error' (detect-object-injection, detect-non-literal-fs-filename, and detect-non-literal-regexp off)
21960
+ * - `recommended`: alias for `moderate`
21961
+ * - `strict`: all security rules set to 'error' (including detect-object-injection, detect-non-literal-fs-filename, and detect-non-literal-regexp)
21962
+ */
21963
+ severity?: "lite" | "moderate" | "none" | "recommended" | "strict";
21964
+ };
21702
21965
  type OptionsStylistic = {
21703
21966
  stylistic?: boolean | StylisticConfig;
21704
21967
  };
@@ -21920,6 +22183,9 @@ export declare const react: (options: Readonly<OptionsLessOpinionated & OptionsR
21920
22183
  //#region src/configs/regexp.d.ts
21921
22184
  export declare const regexp: (options: Readonly<OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
21922
22185
  //#endregion
22186
+ //#region src/configs/security.d.ts
22187
+ export declare const security: (options: Readonly<OptionsSecurity>) => Promise<TypedFlatConfigItem[]>;
22188
+ //#endregion
21923
22189
  //#region src/configs/sort.d.ts
21924
22190
  /**
21925
22191
  * Sort package.json
@@ -22083,4 +22349,4 @@ export declare const memoize: <T extends ESLint.Plugin>(plugin: T, key: string)
22083
22349
  */
22084
22350
  export declare const vueInlineElements: ReadonlyArray<string>;
22085
22351
  //#endregion
22086
- export { type Awaitable, type ConfigNames, type ConfigOptions, type CoreOptions, type FrameworkOptions, type LanguageOptions, type OptionsAstro, type OptionsBaseline, type OptionsComponentExts, type OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFunctional, type OptionsHasDOM, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsJSDoc, type OptionsJSX, type OptionsLessOpinionated, type OptionsMode, type OptionsNextJS, type OptionsNode, type OptionsOverrides, type OptionsPerfectionist, type OptionsProjectRoot, type OptionsReact, type OptionsStylistic, type OptionsTailwind, type OptionsTypeScript, type OptionsTypeScriptErasableOnly, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsVue, type ProjectMode, type RequiredOptionsStylistic, type RequiredOptionsTailwind, type ResolvedOptions, type RuleOptions as Rules, type StyleOptions, type StylisticConfig, type TypedFlatConfigItem, moso as default };
22352
+ export { type Awaitable, type ConfigNames, type ConfigOptions, type CoreOptions, type FrameworkOptions, type LanguageOptions, type OptionsAstro, type OptionsBaseline, type OptionsComponentExts, type OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFunctional, type OptionsHasDOM, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsJSDoc, type OptionsJSX, type OptionsLessOpinionated, type OptionsMode, type OptionsNextJS, type OptionsNode, type OptionsOverrides, type OptionsPerfectionist, type OptionsProjectRoot, type OptionsReact, type OptionsSecurity, type OptionsStylistic, type OptionsTailwind, type OptionsTypeScript, type OptionsTypeScriptErasableOnly, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsVue, type ProjectMode, type RequiredOptionsStylistic, type RequiredOptionsTailwind, type ResolvedOptions, type RuleOptions as Rules, type StyleOptions, type StylisticConfig, type TypedFlatConfigItem, moso as default };