@bfra.me/eslint-config 0.50.2 → 0.50.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -3004,6 +3004,11 @@ interface Rules {
3004
3004
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
3005
3005
  */
3006
3006
  'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
3007
+ /**
3008
+ * Require or disallow metadata for fenced code blocks
3009
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
3010
+ */
3011
+ 'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>
3007
3012
  /**
3008
3013
  * Enforce heading levels increment by one
3009
3014
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
@@ -5822,730 +5827,750 @@ interface Rules {
5822
5827
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5823
5828
  /**
5824
5829
  * Improve regexes by making them shorter, consistent, and safer.
5825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
5830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
5826
5831
  */
5827
5832
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5828
5833
  /**
5829
5834
  * Enforce a specific parameter name in catch clauses.
5830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
5835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
5831
5836
  */
5832
5837
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5833
5838
  /**
5834
5839
  * Enforce consistent assertion style with `node:assert`.
5835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
5840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
5836
5841
  */
5837
5842
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5838
5843
  /**
5839
5844
  * Prefer passing `Date` directly to the constructor when cloning.
5840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
5845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
5841
5846
  */
5842
5847
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5843
5848
  /**
5844
5849
  * Use destructured variables over properties.
5845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
5850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
5846
5851
  */
5847
5852
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5848
5853
  /**
5849
5854
  * Prefer consistent types when spreading a ternary in an array literal.
5850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
5855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
5851
5856
  */
5852
5857
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5853
5858
  /**
5854
5859
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
5860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
5856
5861
  */
5857
5862
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5858
5863
  /**
5859
5864
  * Move function definitions to the highest possible scope.
5860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
5865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
5861
5866
  */
5862
5867
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5868
+ /**
5869
+ * Enforce consistent style for escaping `${` in template literals.
5870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
5871
+ */
5872
+ 'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>
5863
5873
  /**
5864
5874
  * Enforce correct `Error` subclassing.
5865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
5875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
5866
5876
  */
5867
5877
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5868
5878
  /**
5869
5879
  * Enforce no spaces between braces.
5870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
5880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
5871
5881
  */
5872
5882
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5873
5883
  /**
5874
5884
  * Enforce passing a `message` value when creating a built-in error.
5875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
5885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
5876
5886
  */
5877
5887
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5878
5888
  /**
5879
5889
  * Require escape sequences to use uppercase or lowercase values.
5880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
5890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
5881
5891
  */
5882
5892
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5883
5893
  /**
5884
5894
  * Add expiration conditions to TODO comments.
5885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
5895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
5886
5896
  */
5887
5897
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5888
5898
  /**
5889
5899
  * Enforce explicitly comparing the `length` or `size` property of a value.
5890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
5900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
5891
5901
  */
5892
5902
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5893
5903
  /**
5894
5904
  * Enforce a case style for filenames.
5895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
5905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
5896
5906
  */
5897
5907
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5898
5908
  /**
5899
5909
  * Enforce specific import styles per module.
5900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
5910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
5901
5911
  */
5902
5912
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5903
5913
  /**
5904
5914
  * Prevent usage of variables from outside the scope of isolated functions.
5905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
5915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
5906
5916
  */
5907
5917
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>
5908
5918
  /**
5909
5919
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
5920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
5911
5921
  */
5912
5922
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5913
5923
  /**
5914
5924
  * Enforce specifying rules to disable in `eslint-disable` comments.
5915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
5925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
5916
5926
  */
5917
5927
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5918
5928
  /**
5919
5929
  * Disallow recursive access to `this` within getters and setters.
5920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
5930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
5921
5931
  */
5922
5932
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5923
5933
  /**
5924
5934
  * Disallow anonymous functions and classes as the default export.
5925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
5935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
5926
5936
  */
5927
5937
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5928
5938
  /**
5929
5939
  * Prevent passing a function reference directly to iterator methods.
5930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
5940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
5931
5941
  */
5932
5942
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5933
5943
  /**
5934
5944
  * Prefer `for…of` over the `forEach` method.
5935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
5945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
5936
5946
  */
5937
5947
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5938
5948
  /**
5939
5949
  * Disallow using the `this` argument in array methods.
5940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
5950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
5941
5951
  */
5942
5952
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5943
5953
  /**
5944
5954
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
5946
5956
  * @deprecated
5947
5957
  */
5948
5958
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
5949
5959
  /**
5950
5960
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
5961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
5952
5962
  */
5953
5963
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5954
5964
  /**
5955
5965
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
5966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
5957
5967
  */
5958
5968
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
5959
5969
  /**
5960
5970
  * Prefer `Array#toSorted()` over `Array#sort()`.
5961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
5971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
5962
5972
  */
5963
5973
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
5964
5974
  /**
5965
5975
  * Disallow member access from await expression.
5966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
5976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
5967
5977
  */
5968
5978
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5969
5979
  /**
5970
5980
  * Disallow using `await` in `Promise` method parameters.
5971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
5981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
5972
5982
  */
5973
5983
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5974
5984
  /**
5975
5985
  * Do not use leading/trailing space between `console.log` parameters.
5976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
5986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
5977
5987
  */
5978
5988
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5979
5989
  /**
5980
5990
  * Do not use `document.cookie` directly.
5981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
5991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
5982
5992
  */
5983
5993
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5984
5994
  /**
5985
5995
  * Disallow empty files.
5986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
5996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
5987
5997
  */
5988
5998
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5989
5999
  /**
5990
6000
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
6001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
5992
6002
  */
5993
6003
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5994
6004
  /**
5995
6005
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
6006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
5997
6007
  */
5998
6008
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5999
6009
  /**
6000
6010
  * Disallow immediate mutation after variable assignment.
6001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
6011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
6002
6012
  */
6003
6013
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
6004
6014
  /**
6005
6015
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6007
6017
  * @deprecated
6008
6018
  */
6009
6019
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6010
6020
  /**
6011
6021
  * Disallow `instanceof` with built-in objects
6012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
6022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
6013
6023
  */
6014
6024
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6015
6025
  /**
6016
6026
  * Disallow invalid options in `fetch()` and `new Request()`.
6017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
6027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
6018
6028
  */
6019
6029
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6020
6030
  /**
6021
6031
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
6032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
6023
6033
  */
6024
6034
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6025
6035
  /**
6026
6036
  * Disallow identifiers starting with `new` or `class`.
6027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
6037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
6028
6038
  */
6029
6039
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6030
6040
  /**
6031
6041
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6033
6043
  * @deprecated
6034
6044
  */
6035
6045
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6036
6046
  /**
6037
6047
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
6048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
6039
6049
  */
6040
6050
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6041
6051
  /**
6042
6052
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
6053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
6044
6054
  */
6045
6055
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6046
6056
  /**
6047
6057
  * Disallow named usage of default import and export.
6048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
6058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
6049
6059
  */
6050
6060
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6051
6061
  /**
6052
6062
  * Disallow negated conditions.
6053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
6063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
6054
6064
  */
6055
6065
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6056
6066
  /**
6057
6067
  * Disallow negated expression in equality check.
6058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
6068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
6059
6069
  */
6060
6070
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6061
6071
  /**
6062
6072
  * Disallow nested ternary expressions.
6063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
6073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
6064
6074
  */
6065
6075
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6066
6076
  /**
6067
6077
  * Disallow `new Array()`.
6068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
6078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
6069
6079
  */
6070
6080
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6071
6081
  /**
6072
6082
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
6083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
6074
6084
  */
6075
6085
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6076
6086
  /**
6077
6087
  * Disallow the use of the `null` literal.
6078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
6088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
6079
6089
  */
6080
6090
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6081
6091
  /**
6082
6092
  * Disallow the use of objects as default parameters.
6083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
6093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
6084
6094
  */
6085
6095
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6086
6096
  /**
6087
6097
  * Disallow `process.exit()`.
6088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
6098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
6089
6099
  */
6090
6100
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6091
6101
  /**
6092
6102
  * Disallow passing single-element arrays to `Promise` methods.
6093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
6103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
6094
6104
  */
6095
6105
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6096
6106
  /**
6097
6107
  * Disallow classes that only have static members.
6098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
6108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
6099
6109
  */
6100
6110
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6101
6111
  /**
6102
6112
  * Disallow `then` property.
6103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
6113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
6104
6114
  */
6105
6115
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6106
6116
  /**
6107
6117
  * Disallow assigning `this` to a variable.
6108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
6118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
6109
6119
  */
6110
6120
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6111
6121
  /**
6112
6122
  * Disallow comparing `undefined` using `typeof`.
6113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
6123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
6114
6124
  */
6115
6125
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6116
6126
  /**
6117
6127
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6119
6129
  */
6120
6130
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6121
6131
  /**
6122
6132
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
6133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
6124
6134
  */
6125
6135
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
6126
6136
  /**
6127
6137
  * Disallow awaiting non-promise values.
6128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
6138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
6129
6139
  */
6130
6140
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6131
6141
  /**
6132
6142
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
6143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
6134
6144
  */
6135
6145
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6136
6146
  /**
6137
6147
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
6148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
6139
6149
  */
6140
6150
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
6141
6151
  /**
6142
6152
  * Disallow unreadable array destructuring.
6143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
6153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
6144
6154
  */
6145
6155
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6146
6156
  /**
6147
6157
  * Disallow unreadable IIFEs.
6148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
6158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
6149
6159
  */
6150
6160
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6151
6161
  /**
6152
6162
  * Disallow unused object properties.
6153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
6163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
6154
6164
  */
6155
6165
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6156
6166
  /**
6157
6167
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
6158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
6168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
6159
6169
  */
6160
6170
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
6161
6171
  /**
6162
6172
  * Disallow unnecessary `Error.captureStackTrace(…)`.
6163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6164
6174
  */
6165
6175
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
6166
6176
  /**
6167
6177
  * Disallow useless fallback when spreading in object literals.
6168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
6178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
6169
6179
  */
6170
6180
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6181
+ /**
6182
+ * Disallow unnecessary `.toArray()` on iterators.
6183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
6184
+ */
6185
+ 'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>
6171
6186
  /**
6172
6187
  * Disallow useless array length check.
6173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
6188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
6174
6189
  */
6175
6190
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6176
6191
  /**
6177
6192
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
6193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
6179
6194
  */
6180
6195
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6181
6196
  /**
6182
6197
  * Disallow unnecessary spread.
6183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
6198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
6184
6199
  */
6185
6200
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6186
6201
  /**
6187
6202
  * Disallow useless case in switch statements.
6188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
6203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
6189
6204
  */
6190
6205
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6191
6206
  /**
6192
6207
  * Disallow useless `undefined`.
6193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
6208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
6194
6209
  */
6195
6210
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6196
6211
  /**
6197
6212
  * Disallow number literals with zero fractions or dangling dots.
6198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
6213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
6199
6214
  */
6200
6215
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6201
6216
  /**
6202
6217
  * Enforce proper case for numeric literals.
6203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
6218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
6204
6219
  */
6205
6220
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6206
6221
  /**
6207
6222
  * Enforce the style of numeric separators by correctly grouping digits.
6208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
6223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
6209
6224
  */
6210
6225
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6211
6226
  /**
6212
6227
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
6228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
6214
6229
  */
6215
6230
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6216
6231
  /**
6217
6232
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
6233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
6219
6234
  */
6220
6235
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6221
6236
  /**
6222
6237
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
6238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
6224
6239
  */
6225
6240
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6226
6241
  /**
6227
6242
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
6243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
6229
6244
  */
6230
6245
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6231
6246
  /**
6232
6247
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
6248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
6234
6249
  */
6235
6250
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6236
6251
  /**
6237
6252
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
6253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
6239
6254
  */
6240
6255
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6241
6256
  /**
6242
6257
  * Prefer `.at()` method for index access and `String#charAt()`.
6243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
6258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
6244
6259
  */
6245
6260
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6246
6261
  /**
6247
6262
  * Prefer `BigInt` literals over the constructor.
6248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
6263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
6249
6264
  */
6250
6265
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
6251
6266
  /**
6252
6267
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
6268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
6254
6269
  */
6255
6270
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6256
6271
  /**
6257
6272
  * Prefer class field declarations over `this` assignments in constructors.
6258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
6273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
6259
6274
  */
6260
6275
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
6261
6276
  /**
6262
6277
  * Prefer using `Element#classList.toggle()` to toggle class names.
6263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
6278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
6264
6279
  */
6265
6280
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
6266
6281
  /**
6267
6282
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
6283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
6269
6284
  */
6270
6285
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6271
6286
  /**
6272
6287
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
6288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
6274
6289
  */
6275
6290
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6276
6291
  /**
6277
6292
  * Prefer default parameters over reassignment.
6278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
6293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
6279
6294
  */
6280
6295
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6281
6296
  /**
6282
6297
  * Prefer `Node#append()` over `Node#appendChild()`.
6283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
6298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
6284
6299
  */
6285
6300
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6286
6301
  /**
6287
6302
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
6303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
6289
6304
  */
6290
6305
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6291
6306
  /**
6292
6307
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
6308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
6294
6309
  */
6295
6310
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6296
6311
  /**
6297
6312
  * Prefer `.textContent` over `.innerText`.
6298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
6313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
6299
6314
  */
6300
6315
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6301
6316
  /**
6302
6317
  * Prefer `EventTarget` over `EventEmitter`.
6303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
6318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
6304
6319
  */
6305
6320
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6306
6321
  /**
6307
6322
  * Prefer `export…from` when re-exporting.
6308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
6323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
6309
6324
  */
6310
6325
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6311
6326
  /**
6312
6327
  * Prefer `globalThis` over `window`, `self`, and `global`.
6313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
6328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
6314
6329
  */
6315
6330
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6316
6331
  /**
6317
6332
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
6333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
6319
6334
  */
6320
6335
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6321
6336
  /**
6322
6337
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
6338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
6324
6339
  */
6325
6340
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6326
6341
  /**
6327
6342
  * Prefer reading a JSON file as a buffer.
6328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
6343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
6329
6344
  */
6330
6345
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6331
6346
  /**
6332
6347
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
6348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
6334
6349
  */
6335
6350
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6336
6351
  /**
6337
6352
  * Prefer using a logical operator over a ternary.
6338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6339
6354
  */
6340
6355
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6341
6356
  /**
6342
6357
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
6358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
6344
6359
  */
6345
6360
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6346
6361
  /**
6347
6362
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
6363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
6349
6364
  */
6350
6365
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6351
6366
  /**
6352
6367
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
6368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
6354
6369
  */
6355
6370
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6356
6371
  /**
6357
6372
  * Prefer modern `Math` APIs over legacy patterns.
6358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
6373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
6359
6374
  */
6360
6375
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6361
6376
  /**
6362
6377
  * Prefer JavaScript modules (ESM) over CommonJS.
6363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
6378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
6364
6379
  */
6365
6380
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6366
6381
  /**
6367
6382
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
6383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
6369
6384
  */
6370
6385
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6371
6386
  /**
6372
6387
  * Prefer negative index over `.length - index` when possible.
6373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
6388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
6374
6389
  */
6375
6390
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6376
6391
  /**
6377
6392
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
6393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
6379
6394
  */
6380
6395
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6381
6396
  /**
6382
6397
  * Prefer `Number` static properties over global ones.
6383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
6398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
6384
6399
  */
6385
6400
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6386
6401
  /**
6387
6402
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
6403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
6389
6404
  */
6390
6405
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6391
6406
  /**
6392
6407
  * Prefer omitting the `catch` binding parameter.
6393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
6408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
6394
6409
  */
6395
6410
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6396
6411
  /**
6397
6412
  * Prefer borrowing methods from the prototype instead of the instance.
6398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
6413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
6399
6414
  */
6400
6415
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6401
6416
  /**
6402
6417
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
6418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
6404
6419
  */
6405
6420
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6406
6421
  /**
6407
6422
  * Prefer `Reflect.apply()` over `Function#apply()`.
6408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
6423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
6409
6424
  */
6410
6425
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6411
6426
  /**
6412
6427
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
6428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
6414
6429
  */
6415
6430
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6416
6431
  /**
6417
6432
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
6433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
6419
6434
  */
6420
6435
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
6421
6436
  /**
6422
6437
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
6438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
6424
6439
  */
6425
6440
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6426
6441
  /**
6427
6442
  * Prefer using `Set#size` instead of `Array#length`.
6428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
6443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
6429
6444
  */
6430
6445
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6446
+ /**
6447
+ * Prefer simple conditions first in logical expressions.
6448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
6449
+ */
6450
+ 'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>
6431
6451
  /**
6432
6452
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
6453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
6434
6454
  */
6435
6455
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6436
6456
  /**
6437
6457
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
6458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
6439
6459
  */
6440
6460
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6441
6461
  /**
6442
6462
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
6463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
6444
6464
  */
6445
6465
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6446
6466
  /**
6447
6467
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
6468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
6449
6469
  */
6450
6470
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6451
6471
  /**
6452
6472
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
6473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
6454
6474
  */
6455
6475
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6456
6476
  /**
6457
6477
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
6478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
6459
6479
  */
6460
6480
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6461
6481
  /**
6462
6482
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
6483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
6464
6484
  */
6465
6485
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6466
6486
  /**
6467
6487
  * Prefer using `structuredClone` to create a deep clone.
6468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
6488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
6469
6489
  */
6470
6490
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6471
6491
  /**
6472
6492
  * Prefer `switch` over multiple `else-if`.
6473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
6493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
6474
6494
  */
6475
6495
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6476
6496
  /**
6477
6497
  * Prefer ternary expressions over simple `if-else` statements.
6478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
6498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
6479
6499
  */
6480
6500
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6481
6501
  /**
6482
6502
  * Prefer top-level await over top-level promises and async function calls.
6483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
6503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
6484
6504
  */
6485
6505
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6486
6506
  /**
6487
6507
  * Enforce throwing `TypeError` in type checking conditions.
6488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
6508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
6489
6509
  */
6490
6510
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6491
6511
  /**
6492
6512
  * Prevent abbreviations.
6493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
6513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
6494
6514
  */
6495
6515
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6496
6516
  /**
6497
6517
  * Enforce consistent relative URL style.
6498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
6518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
6499
6519
  */
6500
6520
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6501
6521
  /**
6502
6522
  * Enforce using the separator argument with `Array#join()`.
6503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
6523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
6504
6524
  */
6505
6525
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6506
6526
  /**
6507
6527
  * Require non-empty module attributes for imports and exports
6508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
6528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
6509
6529
  */
6510
6530
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
6511
6531
  /**
6512
6532
  * Require non-empty specifier list in import and export statements.
6513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
6533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
6514
6534
  */
6515
6535
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
6516
6536
  /**
6517
6537
  * Enforce using the digits argument with `Number#toFixed()`.
6518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6519
6539
  */
6520
6540
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6521
6541
  /**
6522
6542
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
6543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
6524
6544
  */
6525
6545
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6526
6546
  /**
6527
6547
  * Enforce better string content.
6528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
6548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
6529
6549
  */
6530
6550
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6531
6551
  /**
6532
6552
  * Enforce consistent brace style for `case` clauses.
6533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
6553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
6534
6554
  */
6535
6555
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6556
+ /**
6557
+ * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
6559
+ */
6560
+ 'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>
6536
6561
  /**
6537
6562
  * Fix whitespace-insensitive template indentation.
6538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
6563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
6539
6564
  */
6540
6565
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6541
6566
  /**
6542
6567
  * Enforce consistent case for text encoding identifiers.
6543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
6568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
6544
6569
  */
6545
6570
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
6546
6571
  /**
6547
6572
  * Require `new` when creating an error.
6548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
6573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
6549
6574
  */
6550
6575
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6551
6576
  /**
@@ -12099,6 +12124,8 @@ type LogicalAssignmentOperators = (([]|["always"]|["always", {
12099
12124
  type MarkdownFencedCodeLanguage = []|[{
12100
12125
  required?: string[]
12101
12126
  }]
12127
+ // ----- markdown/fenced-code-meta -----
12128
+ type MarkdownFencedCodeMeta = []|[("always" | "never")]
12102
12129
  // ----- markdown/heading-increment -----
12103
12130
  type MarkdownHeadingIncrement = []|[{
12104
12131
  frontmatterTitle?: string
@@ -12107,6 +12134,7 @@ type MarkdownHeadingIncrement = []|[{
12107
12134
  type MarkdownNoDuplicateDefinitions = []|[{
12108
12135
  allowDefinitions?: string[]
12109
12136
  allowFootnoteDefinitions?: string[]
12137
+ checkFootnoteDefinitions?: boolean
12110
12138
  }]
12111
12139
  // ----- markdown/no-duplicate-headings -----
12112
12140
  type MarkdownNoDuplicateHeadings = []|[{
@@ -12148,6 +12176,7 @@ type MarkdownNoSpaceInEmphasis = []|[{
12148
12176
  type MarkdownNoUnusedDefinitions = []|[{
12149
12177
  allowDefinitions?: string[]
12150
12178
  allowFootnoteDefinitions?: string[]
12179
+ checkFootnoteDefinitions?: boolean
12151
12180
  }]
12152
12181
  // ----- markdown/table-column-count -----
12153
12182
  type MarkdownTableColumnCount = []|[{
@@ -18171,25 +18200,36 @@ type TomlTableBracketSpacing = []|[("always" | "never")]
18171
18200
  type UnicodeBom = []|[("always" | "never")]
18172
18201
  // ----- unicorn/better-regex -----
18173
18202
  type UnicornBetterRegex = []|[{
18203
+
18174
18204
  sortCharacterClasses?: boolean
18175
18205
  }]
18176
18206
  // ----- unicorn/catch-error-name -----
18177
18207
  type UnicornCatchErrorName = []|[{
18208
+
18178
18209
  name?: string
18210
+
18179
18211
  ignore?: unknown[]
18180
18212
  }]
18181
18213
  // ----- unicorn/consistent-function-scoping -----
18182
18214
  type UnicornConsistentFunctionScoping = []|[{
18215
+
18183
18216
  checkArrowFunctions?: boolean
18184
18217
  }]
18185
18218
  // ----- unicorn/escape-case -----
18186
18219
  type UnicornEscapeCase = []|[("uppercase" | "lowercase")]
18187
18220
  // ----- unicorn/expiring-todo-comments -----
18188
18221
  type UnicornExpiringTodoComments = []|[{
18222
+
18189
18223
  terms?: string[]
18224
+
18190
18225
  ignore?: unknown[]
18226
+
18227
+ ignoreDates?: boolean
18228
+
18191
18229
  ignoreDatesOnPullRequests?: boolean
18230
+
18192
18231
  allowWarningComments?: boolean
18232
+
18193
18233
  date?: string
18194
18234
  }]
18195
18235
  // ----- unicorn/explicit-length-check -----
@@ -18198,25 +18238,40 @@ type UnicornExplicitLengthCheck = []|[{
18198
18238
  }]
18199
18239
  // ----- unicorn/filename-case -----
18200
18240
  type UnicornFilenameCase = []|[({
18241
+
18201
18242
  case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase")
18243
+
18202
18244
  ignore?: unknown[]
18245
+
18203
18246
  multipleFileExtensions?: boolean
18204
18247
  } | {
18248
+
18205
18249
  cases?: {
18250
+
18206
18251
  camelCase?: boolean
18252
+
18207
18253
  snakeCase?: boolean
18254
+
18208
18255
  kebabCase?: boolean
18256
+
18209
18257
  pascalCase?: boolean
18210
18258
  }
18259
+
18211
18260
  ignore?: unknown[]
18261
+
18212
18262
  multipleFileExtensions?: boolean
18213
18263
  })]
18214
18264
  // ----- unicorn/import-style -----
18215
18265
  type UnicornImportStyle = []|[{
18266
+
18216
18267
  checkImport?: boolean
18268
+
18217
18269
  checkDynamicImport?: boolean
18270
+
18218
18271
  checkExportFrom?: boolean
18272
+
18219
18273
  checkRequire?: boolean
18274
+
18220
18275
  extendDefaultStyles?: boolean
18221
18276
  styles?: _UnicornImportStyle_ModuleStyles
18222
18277
  }]
@@ -18229,15 +18284,20 @@ interface _UnicornImportStyle_BooleanObject {
18229
18284
  }
18230
18285
  // ----- unicorn/isolated-functions -----
18231
18286
  type UnicornIsolatedFunctions = []|[{
18287
+
18232
18288
  overrideGlobals?: {
18233
18289
  [k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined
18234
18290
  }
18291
+
18235
18292
  functions?: string[]
18293
+
18236
18294
  selectors?: string[]
18295
+
18237
18296
  comments?: string[]
18238
18297
  }]
18239
18298
  // ----- unicorn/no-array-reduce -----
18240
18299
  type UnicornNoArrayReduce = []|[{
18300
+
18241
18301
  allowSimpleOperations?: boolean
18242
18302
  }]
18243
18303
  // ----- unicorn/no-array-reverse -----
@@ -18259,26 +18319,33 @@ type UnicornNoInstanceofBuiltins = []|[{
18259
18319
  type UnicornNoKeywordPrefix = []|[{
18260
18320
 
18261
18321
  disallowedPrefixes?: []|[string]
18322
+
18262
18323
  checkProperties?: boolean
18324
+
18263
18325
  onlyCamelCase?: boolean
18264
18326
  }]
18265
18327
  // ----- unicorn/no-null -----
18266
18328
  type UnicornNoNull = []|[{
18329
+
18267
18330
  checkStrictEquality?: boolean
18268
18331
  }]
18269
18332
  // ----- unicorn/no-typeof-undefined -----
18270
18333
  type UnicornNoTypeofUndefined = []|[{
18334
+
18271
18335
  checkGlobalVariables?: boolean
18272
18336
  }]
18273
18337
  // ----- unicorn/no-unnecessary-polyfills -----
18274
18338
  type UnicornNoUnnecessaryPolyfills = []|[{
18339
+
18275
18340
  targets: (string | unknown[] | {
18276
18341
  [k: string]: unknown | undefined
18277
18342
  })
18278
18343
  }]
18279
18344
  // ----- unicorn/no-useless-undefined -----
18280
18345
  type UnicornNoUselessUndefined = []|[{
18346
+
18281
18347
  checkArguments?: boolean
18348
+
18282
18349
  checkArrowFunctionBody?: boolean
18283
18350
  }]
18284
18351
  // ----- unicorn/number-literal-case -----
@@ -18288,84 +18355,119 @@ type UnicornNumberLiteralCase = []|[{
18288
18355
  // ----- unicorn/numeric-separators-style -----
18289
18356
  type UnicornNumericSeparatorsStyle = []|[{
18290
18357
  binary?: {
18358
+
18291
18359
  onlyIfContainsSeparator?: boolean
18360
+
18292
18361
  minimumDigits?: number
18362
+
18293
18363
  groupLength?: number
18294
18364
  }
18295
18365
  octal?: {
18366
+
18296
18367
  onlyIfContainsSeparator?: boolean
18368
+
18297
18369
  minimumDigits?: number
18370
+
18298
18371
  groupLength?: number
18299
18372
  }
18300
18373
  hexadecimal?: {
18374
+
18301
18375
  onlyIfContainsSeparator?: boolean
18376
+
18302
18377
  minimumDigits?: number
18378
+
18303
18379
  groupLength?: number
18304
18380
  }
18305
18381
  number?: {
18382
+
18306
18383
  onlyIfContainsSeparator?: boolean
18384
+
18307
18385
  minimumDigits?: number
18386
+
18308
18387
  groupLength?: number
18309
18388
  }
18389
+
18310
18390
  onlyIfContainsSeparator?: boolean
18311
18391
  }]
18312
18392
  // ----- unicorn/prefer-add-event-listener -----
18313
18393
  type UnicornPreferAddEventListener = []|[{
18394
+
18314
18395
  excludedPackages?: string[]
18315
18396
  }]
18316
18397
  // ----- unicorn/prefer-array-find -----
18317
18398
  type UnicornPreferArrayFind = []|[{
18399
+
18318
18400
  checkFromLast?: boolean
18319
18401
  }]
18320
18402
  // ----- unicorn/prefer-array-flat -----
18321
18403
  type UnicornPreferArrayFlat = []|[{
18404
+
18322
18405
  functions?: unknown[]
18323
18406
  }]
18324
18407
  // ----- unicorn/prefer-at -----
18325
18408
  type UnicornPreferAt = []|[{
18409
+
18326
18410
  getLastElementFunctions?: unknown[]
18411
+
18327
18412
  checkAllIndexAccess?: boolean
18328
18413
  }]
18329
18414
  // ----- unicorn/prefer-export-from -----
18330
18415
  type UnicornPreferExportFrom = []|[{
18416
+
18331
18417
  ignoreUsedVariables?: boolean
18332
18418
  }]
18333
18419
  // ----- unicorn/prefer-number-properties -----
18334
18420
  type UnicornPreferNumberProperties = []|[{
18421
+
18335
18422
  checkInfinity?: boolean
18423
+
18336
18424
  checkNaN?: boolean
18337
18425
  }]
18338
18426
  // ----- unicorn/prefer-object-from-entries -----
18339
18427
  type UnicornPreferObjectFromEntries = []|[{
18428
+
18340
18429
  functions?: unknown[]
18341
18430
  }]
18342
18431
  // ----- unicorn/prefer-single-call -----
18343
18432
  type UnicornPreferSingleCall = []|[{
18433
+
18344
18434
  ignore?: unknown[]
18345
18435
  }]
18346
18436
  // ----- unicorn/prefer-structured-clone -----
18347
18437
  type UnicornPreferStructuredClone = []|[{
18438
+
18348
18439
  functions?: unknown[]
18349
18440
  }]
18350
18441
  // ----- unicorn/prefer-switch -----
18351
18442
  type UnicornPreferSwitch = []|[{
18443
+
18352
18444
  minimumCases?: number
18445
+
18353
18446
  emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case")
18354
18447
  }]
18355
18448
  // ----- unicorn/prefer-ternary -----
18356
18449
  type UnicornPreferTernary = []|[("always" | "only-single-line")]
18357
18450
  // ----- unicorn/prevent-abbreviations -----
18358
18451
  type UnicornPreventAbbreviations = []|[{
18452
+
18359
18453
  checkProperties?: boolean
18454
+
18360
18455
  checkVariables?: boolean
18456
+
18361
18457
  checkDefaultAndNamespaceImports?: (boolean | string)
18458
+
18362
18459
  checkShorthandImports?: (boolean | string)
18460
+
18363
18461
  checkShorthandProperties?: boolean
18462
+
18364
18463
  checkFilenames?: boolean
18464
+
18365
18465
  extendDefaultReplacements?: boolean
18366
18466
  replacements?: _UnicornPreventAbbreviations_Abbreviations
18467
+
18367
18468
  extendDefaultAllowList?: boolean
18368
18469
  allowList?: _UnicornPreventAbbreviations_BooleanObject
18470
+
18369
18471
  ignore?: unknown[]
18370
18472
  }]
18371
18473
  type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined
@@ -18375,10 +18477,14 @@ interface _UnicornPreventAbbreviations_Abbreviations {
18375
18477
  interface _UnicornPreventAbbreviations_BooleanObject {
18376
18478
  [k: string]: boolean | undefined
18377
18479
  }
18480
+ interface _UnicornPreventAbbreviations_BooleanObject {
18481
+ [k: string]: boolean | undefined
18482
+ }
18378
18483
  // ----- unicorn/relative-url-style -----
18379
18484
  type UnicornRelativeUrlStyle = []|[("never" | "always")]
18380
18485
  // ----- unicorn/string-content -----
18381
18486
  type UnicornStringContent = []|[{
18487
+
18382
18488
  patterns?: {
18383
18489
  [k: string]: (string | {
18384
18490
  suggest: string
@@ -18391,14 +18497,20 @@ type UnicornStringContent = []|[{
18391
18497
  type UnicornSwitchCaseBraces = []|[("always" | "avoid")]
18392
18498
  // ----- unicorn/template-indent -----
18393
18499
  type UnicornTemplateIndent = []|[{
18500
+
18394
18501
  indent?: (string | number)
18502
+
18395
18503
  tags?: string[]
18504
+
18396
18505
  functions?: string[]
18506
+
18397
18507
  selectors?: string[]
18508
+
18398
18509
  comments?: string[]
18399
18510
  }]
18400
18511
  // ----- unicorn/text-encoding-identifier-case -----
18401
18512
  type UnicornTextEncodingIdentifierCase = []|[{
18513
+
18402
18514
  withDash?: boolean
18403
18515
  }]
18404
18516
  // ----- unused-imports/no-unused-imports -----