@jsse/eslint-config 0.7.6 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -10,15 +10,11 @@ import pluginPerfectionist from "eslint-plugin-perfectionist";
10
10
  import pluginPnpm from "eslint-plugin-pnpm";
11
11
  import pluginUnicorn from "eslint-plugin-unicorn";
12
12
  import pluginUnusedImports from "eslint-plugin-unused-imports";
13
- import * as _$eslint from "eslint";
14
13
  import { Linter } from "eslint";
15
14
  import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
16
- import * as _$eslint_plugin_react0 from "eslint-plugin-react";
17
- import * as _$_eslint_markdown0 from "@eslint/markdown";
18
- import * as _$_stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
19
15
 
20
16
  //#region src/_generated/version.d.ts
21
- declare const VERSION = "0.7.6";
17
+ declare const VERSION = "0.7.8";
22
18
  //#endregion
23
19
  //#region src/_generated/dts/builtins.d.ts
24
20
  interface BuiltinsRuleOptions {
@@ -12903,772 +12899,957 @@ type ImportPreferDefaultExport = [] | [{
12903
12899
  //#region src/_generated/dts/unicorn.d.ts
12904
12900
  interface UnicornRuleOptions {
12905
12901
  /**
12906
- * Improve regexes by making them shorter, consistent, and safer.
12907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
12902
+ * Prefer better DOM traversal APIs.
12903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/better-dom-traversing.md
12908
12904
  */
12909
- "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
12905
+ "unicorn/better-dom-traversing"?: Linter.RuleEntry<[]>;
12906
+ /**
12907
+ * Removed. Prefer `eslint-plugin-regexp`
12908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#better-regex
12909
+ * @deprecated
12910
+ */
12911
+ "unicorn/better-regex"?: Linter.RuleEntry<[]>;
12910
12912
  /**
12911
12913
  * Enforce a specific parameter name in catch clauses.
12912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
12914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/catch-error-name.md
12913
12915
  */
12914
12916
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
12915
12917
  /**
12916
12918
  * Enforce consistent assertion style with `node:assert`.
12917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
12919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-assert.md
12918
12920
  */
12919
12921
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
12922
+ /**
12923
+ * Enforce consistent spelling of compound words in identifiers.
12924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-compound-words.md
12925
+ */
12926
+ "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
12920
12927
  /**
12921
12928
  * Prefer passing `Date` directly to the constructor when cloning.
12922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
12929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-date-clone.md
12923
12930
  */
12924
12931
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
12925
12932
  /**
12926
12933
  * Use destructured variables over properties.
12927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
12934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-destructuring.md
12928
12935
  */
12929
12936
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
12930
12937
  /**
12931
12938
  * Prefer consistent types when spreading a ternary in an array literal.
12932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
12939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-empty-array-spread.md
12933
12940
  */
12934
12941
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
12935
12942
  /**
12936
12943
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
12937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
12944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-existence-index-check.md
12938
12945
  */
12939
12946
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
12940
12947
  /**
12941
12948
  * Move function definitions to the highest possible scope.
12942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
12949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-function-scoping.md
12943
12950
  */
12944
12951
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
12952
+ /**
12953
+ * Enforce consistent JSON file reads before `JSON.parse()`.
12954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-json-file-read.md
12955
+ */
12956
+ "unicorn/consistent-json-file-read"?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
12945
12957
  /**
12946
12958
  * Enforce consistent style for escaping `${` in template literals.
12947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
12959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-template-literal-escape.md
12948
12960
  */
12949
12961
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
12950
12962
  /**
12951
12963
  * Enforce correct `Error` subclassing.
12952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
12964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/custom-error-definition.md
12953
12965
  */
12954
12966
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
12967
+ /**
12968
+ * Enforce consistent style for DOM element dataset access.
12969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/dom-node-dataset.md
12970
+ */
12971
+ "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
12955
12972
  /**
12956
12973
  * Enforce no spaces between braces.
12957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
12974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/empty-brace-spaces.md
12958
12975
  */
12959
12976
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
12960
12977
  /**
12961
12978
  * Enforce passing a `message` value when creating a built-in error.
12962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
12979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/error-message.md
12963
12980
  */
12964
12981
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
12965
12982
  /**
12966
12983
  * Require escape sequences to use uppercase or lowercase values.
12967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
12984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/escape-case.md
12968
12985
  */
12969
12986
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
12970
12987
  /**
12971
12988
  * Add expiration conditions to TODO comments.
12972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
12989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/expiring-todo-comments.md
12973
12990
  */
12974
12991
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
12975
12992
  /**
12976
12993
  * Enforce explicitly comparing the `length` or `size` property of a value.
12977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
12994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/explicit-length-check.md
12978
12995
  */
12979
12996
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
12980
12997
  /**
12981
- * Enforce a case style for filenames.
12982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
12998
+ * Enforce a case style for filenames and directory names.
12999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/filename-case.md
12983
13000
  */
12984
13001
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
12985
13002
  /**
12986
13003
  * Enforce specific import styles per module.
12987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
13004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/import-style.md
12988
13005
  */
12989
13006
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
12990
13007
  /**
12991
13008
  * Prevent usage of variables from outside the scope of isolated functions.
12992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
13009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/isolated-functions.md
12993
13010
  */
12994
13011
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
12995
13012
  /**
12996
13013
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
12997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
13014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/new-for-builtins.md
12998
13015
  */
12999
13016
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
13000
13017
  /**
13001
13018
  * Enforce specifying rules to disable in `eslint-disable` comments.
13002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
13019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-abusive-eslint-disable.md
13003
13020
  */
13004
13021
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
13005
13022
  /**
13006
13023
  * Disallow recursive access to `this` within getters and setters.
13007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
13024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-accessor-recursion.md
13008
13025
  */
13009
13026
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
13010
13027
  /**
13011
13028
  * Disallow anonymous functions and classes as the default export.
13012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
13029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-anonymous-default-export.md
13013
13030
  */
13014
13031
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
13015
13032
  /**
13016
13033
  * Prevent passing a function reference directly to iterator methods.
13017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
13034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-callback-reference.md
13035
+ */
13036
+ "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
13037
+ /**
13038
+ * Disallow using reference values as `Array#fill()` values.
13039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-fill-with-reference-type.md
13018
13040
  */
13019
- "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
13041
+ "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
13020
13042
  /**
13021
13043
  * Prefer `for…of` over the `forEach` method.
13022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
13044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-for-each.md
13023
13045
  */
13024
13046
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
13047
+ /**
13048
+ * Disallow `.fill()` after `Array.from({length: …})`.
13049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-from-fill.md
13050
+ */
13051
+ "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
13025
13052
  /**
13026
13053
  * Disallow using the `this` argument in array methods.
13027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
13054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-method-this-argument.md
13028
13055
  */
13029
13056
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
13030
13057
  /**
13031
13058
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
13032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#no-array-push-push
13033
13060
  * @deprecated
13034
13061
  */
13035
13062
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
13036
13063
  /**
13037
13064
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
13038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
13065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-reduce.md
13039
13066
  */
13040
13067
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
13041
13068
  /**
13042
13069
  * Prefer `Array#toReversed()` over `Array#reverse()`.
13043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
13070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-reverse.md
13044
13071
  */
13045
13072
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
13046
13073
  /**
13047
13074
  * Prefer `Array#toSorted()` over `Array#sort()`.
13048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
13075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-sort.md
13049
13076
  */
13050
13077
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
13051
13078
  /**
13052
13079
  * Disallow member access from await expression.
13053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
13080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-await-expression-member.md
13054
13081
  */
13055
13082
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
13056
13083
  /**
13057
13084
  * Disallow using `await` in `Promise` method parameters.
13058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
13085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-await-in-promise-methods.md
13059
13086
  */
13060
13087
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
13088
+ /**
13089
+ * Disallow unnecessary `Blob` to `File` conversion.
13090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-blob-to-file.md
13091
+ */
13092
+ "unicorn/no-blob-to-file"?: Linter.RuleEntry<[]>;
13093
+ /**
13094
+ * Prefer drawing canvases directly instead of converting them to images.
13095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-canvas-to-image.md
13096
+ */
13097
+ "unicorn/no-canvas-to-image"?: Linter.RuleEntry<[]>;
13098
+ /**
13099
+ * Disallow confusing uses of `Array#{splice,toSpliced}()`.
13100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-confusing-array-splice.md
13101
+ */
13102
+ "unicorn/no-confusing-array-splice"?: Linter.RuleEntry<[]>;
13061
13103
  /**
13062
13104
  * Do not use leading/trailing space between `console.log` parameters.
13063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
13105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-console-spaces.md
13064
13106
  */
13065
13107
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
13066
13108
  /**
13067
13109
  * Do not use `document.cookie` directly.
13068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
13110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-document-cookie.md
13069
13111
  */
13070
13112
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
13113
+ /**
13114
+ * Disallow duplicate values in `Set` constructor array literals.
13115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-duplicate-set-values.md
13116
+ */
13117
+ "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
13071
13118
  /**
13072
13119
  * Disallow empty files.
13073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
13120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-empty-file.md
13121
+ */
13122
+ "unicorn/no-empty-file"?: Linter.RuleEntry<UnicornNoEmptyFile>;
13123
+ /**
13124
+ * Disallow exports in scripts.
13125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-exports-in-scripts.md
13074
13126
  */
13075
- "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
13127
+ "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
13076
13128
  /**
13077
13129
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
13078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
13130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-for-loop.md
13079
13131
  */
13080
13132
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
13081
13133
  /**
13082
13134
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
13083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
13135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-hex-escape.md
13084
13136
  */
13085
13137
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
13086
13138
  /**
13087
13139
  * Disallow immediate mutation after variable assignment.
13088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
13140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-immediate-mutation.md
13089
13141
  */
13090
13142
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
13143
+ /**
13144
+ * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
13145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-incorrect-query-selector.md
13146
+ */
13147
+ "unicorn/no-incorrect-query-selector"?: Linter.RuleEntry<[]>;
13091
13148
  /**
13092
13149
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
13093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13094
13151
  * @deprecated
13095
13152
  */
13096
13153
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
13097
13154
  /**
13098
13155
  * Disallow `instanceof` with built-in objects
13099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
13156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-instanceof-builtins.md
13100
13157
  */
13101
13158
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
13102
13159
  /**
13103
13160
  * Disallow invalid options in `fetch()` and `new Request()`.
13104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
13161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-invalid-fetch-options.md
13105
13162
  */
13106
13163
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
13164
+ /**
13165
+ * Disallow invalid `accept` values on file inputs.
13166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-invalid-file-input-accept.md
13167
+ */
13168
+ "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
13107
13169
  /**
13108
13170
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
13109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
13171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-invalid-remove-event-listener.md
13110
13172
  */
13111
13173
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
13112
13174
  /**
13113
13175
  * Disallow identifiers starting with `new` or `class`.
13114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
13176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-keyword-prefix.md
13115
13177
  */
13116
13178
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
13179
+ /**
13180
+ * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
13181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-late-current-target-access.md
13182
+ */
13183
+ "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
13117
13184
  /**
13118
13185
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
13119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13120
13187
  * @deprecated
13121
13188
  */
13122
13189
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
13123
13190
  /**
13124
13191
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
13125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
13192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-lonely-if.md
13126
13193
  */
13127
13194
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
13128
13195
  /**
13129
13196
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
13130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
13197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-magic-array-flat-depth.md
13131
13198
  */
13132
13199
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
13200
+ /**
13201
+ * Disallow manually wrapped comments.
13202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-manually-wrapped-comments.md
13203
+ */
13204
+ "unicorn/no-manually-wrapped-comments"?: Linter.RuleEntry<[]>;
13133
13205
  /**
13134
13206
  * Disallow named usage of default import and export.
13135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
13207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-named-default.md
13136
13208
  */
13137
13209
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
13138
13210
  /**
13139
13211
  * Disallow negated conditions.
13140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
13212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-negated-condition.md
13141
13213
  */
13142
13214
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
13143
13215
  /**
13144
13216
  * Disallow negated expression in equality check.
13145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
13217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-negation-in-equality-check.md
13146
13218
  */
13147
13219
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
13148
13220
  /**
13149
13221
  * Disallow nested ternary expressions.
13150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
13222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-nested-ternary.md
13151
13223
  */
13152
13224
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
13153
13225
  /**
13154
13226
  * Disallow `new Array()`.
13155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
13227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-new-array.md
13156
13228
  */
13157
13229
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
13158
13230
  /**
13159
13231
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
13160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
13232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-new-buffer.md
13161
13233
  */
13162
13234
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
13163
13235
  /**
13164
13236
  * Disallow the use of the `null` literal.
13165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
13237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-null.md
13166
13238
  */
13167
13239
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
13168
13240
  /**
13169
13241
  * Disallow the use of objects as default parameters.
13170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
13242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-object-as-default-parameter.md
13171
13243
  */
13172
13244
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
13173
13245
  /**
13174
13246
  * Disallow `process.exit()`.
13175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
13247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-process-exit.md
13176
13248
  */
13177
13249
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
13178
13250
  /**
13179
13251
  * Disallow passing single-element arrays to `Promise` methods.
13180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
13252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-single-promise-in-promise-methods.md
13181
13253
  */
13182
13254
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
13183
13255
  /**
13184
13256
  * Disallow classes that only have static members.
13185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
13257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-static-only-class.md
13186
13258
  */
13187
13259
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
13188
13260
  /**
13189
13261
  * Disallow `then` property.
13190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
13262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-thenable.md
13191
13263
  */
13192
13264
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
13193
13265
  /**
13194
13266
  * Disallow assigning `this` to a variable.
13195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
13267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-this-assignment.md
13196
13268
  */
13197
13269
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
13270
+ /**
13271
+ * Disallow `this` outside of classes.
13272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-this-outside-of-class.md
13273
+ */
13274
+ "unicorn/no-this-outside-of-class"?: Linter.RuleEntry<[]>;
13198
13275
  /**
13199
13276
  * Disallow comparing `undefined` using `typeof`.
13200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
13277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-typeof-undefined.md
13201
13278
  */
13202
13279
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
13203
13280
  /**
13204
13281
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
13205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-array-flat-depth.md
13206
13283
  */
13207
13284
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
13208
13285
  /**
13209
13286
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
13210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
13287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-array-splice-count.md
13211
13288
  */
13212
13289
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
13213
13290
  /**
13214
13291
  * Disallow awaiting non-promise values.
13215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
13292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-await.md
13216
13293
  */
13217
13294
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
13295
+ /**
13296
+ * Disallow unnecessary nested ternary expressions.
13297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-nested-ternary.md
13298
+ */
13299
+ "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
13218
13300
  /**
13219
13301
  * Enforce the use of built-in methods instead of unnecessary polyfills.
13220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
13302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-polyfills.md
13221
13303
  */
13222
13304
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
13223
13305
  /**
13224
13306
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
13225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
13307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-slice-end.md
13226
13308
  */
13227
13309
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
13228
13310
  /**
13229
13311
  * Disallow unreadable array destructuring.
13230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
13312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unreadable-array-destructuring.md
13231
13313
  */
13232
13314
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
13233
13315
  /**
13234
13316
  * Disallow unreadable IIFEs.
13235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
13317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unreadable-iife.md
13236
13318
  */
13237
13319
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
13320
+ /**
13321
+ * Disallow ignoring the return value of selected array methods.
13322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unused-array-method-return.md
13323
+ */
13324
+ "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
13238
13325
  /**
13239
13326
  * Disallow unused object properties.
13240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
13327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unused-properties.md
13241
13328
  */
13242
13329
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
13243
13330
  /**
13244
13331
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
13245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
13332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-collection-argument.md
13246
13333
  */
13247
13334
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
13248
13335
  /**
13249
13336
  * Disallow unnecessary `Error.captureStackTrace(…)`.
13250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
13337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-error-capture-stack-trace.md
13251
13338
  */
13252
13339
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
13253
13340
  /**
13254
13341
  * Disallow useless fallback when spreading in object literals.
13255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
13342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-fallback-in-spread.md
13256
13343
  */
13257
13344
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
13258
13345
  /**
13259
13346
  * Disallow unnecessary `.toArray()` on iterators.
13260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
13347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-iterator-to-array.md
13261
13348
  */
13262
13349
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
13263
13350
  /**
13264
13351
  * Disallow useless array length check.
13265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
13352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-length-check.md
13266
13353
  */
13267
13354
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
13268
13355
  /**
13269
13356
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
13270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
13357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-promise-resolve-reject.md
13271
13358
  */
13272
13359
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
13273
13360
  /**
13274
13361
  * Disallow unnecessary spread.
13275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
13362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-spread.md
13276
13363
  */
13277
13364
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
13278
13365
  /**
13279
13366
  * Disallow useless case in switch statements.
13280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
13367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-switch-case.md
13281
13368
  */
13282
13369
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
13283
13370
  /**
13284
13371
  * Disallow useless `undefined`.
13285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
13372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-useless-undefined.md
13286
13373
  */
13287
13374
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
13288
13375
  /**
13289
13376
  * Disallow number literals with zero fractions or dangling dots.
13290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
13377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-zero-fractions.md
13291
13378
  */
13292
13379
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
13293
13380
  /**
13294
13381
  * Enforce proper case for numeric literals.
13295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
13382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/number-literal-case.md
13296
13383
  */
13297
13384
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
13298
13385
  /**
13299
13386
  * Enforce the style of numeric separators by correctly grouping digits.
13300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
13387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/numeric-separators-style.md
13301
13388
  */
13302
13389
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
13303
13390
  /**
13304
13391
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
13305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
13392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-add-event-listener.md
13306
13393
  */
13307
13394
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
13308
13395
  /**
13309
13396
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
13310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
13397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-find.md
13311
13398
  */
13312
13399
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
13313
13400
  /**
13314
13401
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
13315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
13402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-flat.md
13316
13403
  */
13317
13404
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
13318
13405
  /**
13319
13406
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
13320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
13407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-flat-map.md
13321
13408
  */
13322
13409
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
13323
13410
  /**
13324
13411
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
13325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
13412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-index-of.md
13326
13413
  */
13327
13414
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
13415
+ /**
13416
+ * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
13417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-last-methods.md
13418
+ */
13419
+ "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
13328
13420
  /**
13329
13421
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
13330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
13422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-some.md
13331
13423
  */
13332
13424
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
13333
13425
  /**
13334
13426
  * Prefer `.at()` method for index access and `String#charAt()`.
13335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
13427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-at.md
13336
13428
  */
13337
13429
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
13338
13430
  /**
13339
13431
  * Prefer `BigInt` literals over the constructor.
13340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
13432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-bigint-literals.md
13341
13433
  */
13342
13434
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
13343
13435
  /**
13344
13436
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
13345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
13437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-blob-reading-methods.md
13346
13438
  */
13347
13439
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
13348
13440
  /**
13349
13441
  * Prefer class field declarations over `this` assignments in constructors.
13350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
13442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-class-fields.md
13351
13443
  */
13352
13444
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
13353
13445
  /**
13354
13446
  * Prefer using `Element#classList.toggle()` to toggle class names.
13355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
13447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-classlist-toggle.md
13356
13448
  */
13357
13449
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
13358
13450
  /**
13359
13451
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
13360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
13452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-code-point.md
13361
13453
  */
13362
13454
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
13363
13455
  /**
13364
13456
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
13365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
13457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-date-now.md
13366
13458
  */
13367
13459
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
13368
13460
  /**
13369
13461
  * Prefer default parameters over reassignment.
13370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
13462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-default-parameters.md
13371
13463
  */
13372
13464
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
13373
13465
  /**
13374
- * Prefer `Node#append()` over `Node#appendChild()`.
13375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
13466
+ * Prefer `Element#append()` over `Node#appendChild()`.
13467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-dom-node-append.md
13376
13468
  */
13377
13469
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
13378
13470
  /**
13379
- * Prefer using `.dataset` on DOM elements over calling attribute methods.
13380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
13471
+ * Renamed to `unicorn/dom-node-dataset`.
13472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
13473
+ * @deprecated
13381
13474
  */
13382
13475
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
13383
13476
  /**
13384
13477
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
13385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
13478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-dom-node-remove.md
13386
13479
  */
13387
13480
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
13388
13481
  /**
13389
13482
  * Prefer `.textContent` over `.innerText`.
13390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
13483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-dom-node-text-content.md
13391
13484
  */
13392
13485
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
13393
13486
  /**
13394
13487
  * Prefer `EventTarget` over `EventEmitter`.
13395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
13488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-event-target.md
13396
13489
  */
13397
13490
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
13398
13491
  /**
13399
13492
  * Prefer `export…from` when re-exporting.
13400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
13493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-export-from.md
13401
13494
  */
13402
13495
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
13496
+ /**
13497
+ * Prefer `.getOrInsertComputed()` when the default value has side effects.
13498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-get-or-insert-computed.md
13499
+ */
13500
+ "unicorn/prefer-get-or-insert-computed"?: Linter.RuleEntry<[]>;
13403
13501
  /**
13404
13502
  * Prefer `globalThis` over `window`, `self`, and `global`.
13405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
13503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-global-this.md
13406
13504
  */
13407
13505
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
13506
+ /**
13507
+ * Prefer HTTPS over HTTP.
13508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-https.md
13509
+ */
13510
+ "unicorn/prefer-https"?: Linter.RuleEntry<[]>;
13408
13511
  /**
13409
13512
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
13410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
13513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-import-meta-properties.md
13411
13514
  */
13412
13515
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
13413
13516
  /**
13414
13517
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
13415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
13518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-includes.md
13416
13519
  */
13417
13520
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
13418
13521
  /**
13419
- * Prefer reading a JSON file as a buffer.
13420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
13522
+ * Prefer `.includes()` over repeated equality comparisons.
13523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-includes-over-repeated-comparisons.md
13524
+ */
13525
+ "unicorn/prefer-includes-over-repeated-comparisons"?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
13526
+ /**
13527
+ * Prefer `Iterator.concat(…)` over temporary spread arrays.
13528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-iterator-concat.md
13529
+ */
13530
+ "unicorn/prefer-iterator-concat"?: Linter.RuleEntry<[]>;
13531
+ /**
13532
+ * Prefer moving `.toArray()` to the end of iterator helper chains.
13533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-iterator-to-array-at-end.md
13534
+ */
13535
+ "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
13536
+ /**
13537
+ * Renamed to `unicorn/consistent-json-file-read`.
13538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
13539
+ * @deprecated
13421
13540
  */
13422
13541
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
13423
13542
  /**
13424
- * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
13425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
13543
+ * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
13544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-keyboard-event-key.md
13426
13545
  */
13427
13546
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
13428
13547
  /**
13429
13548
  * Prefer using a logical operator over a ternary.
13430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
13549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-logical-operator-over-ternary.md
13431
13550
  */
13432
13551
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
13552
+ /**
13553
+ * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
13554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-math-abs.md
13555
+ */
13556
+ "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
13433
13557
  /**
13434
13558
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
13435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
13559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-math-min-max.md
13436
13560
  */
13437
13561
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
13438
13562
  /**
13439
13563
  * Enforce the use of `Math.trunc` instead of bitwise operators.
13440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
13564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-math-trunc.md
13441
13565
  */
13442
13566
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
13443
13567
  /**
13444
13568
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
13445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
13569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-modern-dom-apis.md
13446
13570
  */
13447
13571
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
13448
13572
  /**
13449
13573
  * Prefer modern `Math` APIs over legacy patterns.
13450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
13574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-modern-math-apis.md
13451
13575
  */
13452
13576
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
13453
13577
  /**
13454
13578
  * Prefer JavaScript modules (ESM) over CommonJS.
13455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
13579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-module.md
13456
13580
  */
13457
13581
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
13458
13582
  /**
13459
13583
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
13460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
13584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-native-coercion-functions.md
13461
13585
  */
13462
13586
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
13463
13587
  /**
13464
13588
  * Prefer negative index over `.length - index` when possible.
13465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
13589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-negative-index.md
13466
13590
  */
13467
13591
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
13468
13592
  /**
13469
13593
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
13470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
13594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-node-protocol.md
13471
13595
  */
13472
13596
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
13473
13597
  /**
13474
13598
  * Prefer `Number` static properties over global ones.
13475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
13599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-number-properties.md
13476
13600
  */
13477
13601
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
13478
13602
  /**
13479
13603
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
13480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
13604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-object-from-entries.md
13481
13605
  */
13482
13606
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
13483
13607
  /**
13484
13608
  * Prefer omitting the `catch` binding parameter.
13485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
13609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-optional-catch-binding.md
13486
13610
  */
13487
13611
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
13488
13612
  /**
13489
13613
  * Prefer borrowing methods from the prototype instead of the instance.
13490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
13614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-prototype-methods.md
13491
13615
  */
13492
13616
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
13493
13617
  /**
13494
- * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
13495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
13618
+ * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
13619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-query-selector.md
13620
+ */
13621
+ "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
13622
+ /**
13623
+ * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
13624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-queue-microtask.md
13496
13625
  */
13497
- "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
13626
+ "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
13498
13627
  /**
13499
13628
  * Prefer `Reflect.apply()` over `Function#apply()`.
13500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
13629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-reflect-apply.md
13501
13630
  */
13502
13631
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
13503
13632
  /**
13504
13633
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
13505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
13634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-regexp-test.md
13506
13635
  */
13507
13636
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
13508
13637
  /**
13509
13638
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
13510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
13639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-response-static-json.md
13511
13640
  */
13512
13641
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
13513
13642
  /**
13514
13643
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
13515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
13644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-set-has.md
13516
13645
  */
13517
- "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
13646
+ "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
13518
13647
  /**
13519
13648
  * Prefer using `Set#size` instead of `Array#length`.
13520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
13649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-set-size.md
13521
13650
  */
13522
13651
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
13523
13652
  /**
13524
13653
  * Prefer simple conditions first in logical expressions.
13525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
13654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-simple-condition-first.md
13526
13655
  */
13527
13656
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
13528
13657
  /**
13529
- * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
13658
+ * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-single-call.md
13531
13660
  */
13532
13661
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
13662
+ /**
13663
+ * Prefer `String#split()` with a limit.
13664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-split-limit.md
13665
+ */
13666
+ "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
13533
13667
  /**
13534
13668
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
13535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
13669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-spread.md
13536
13670
  */
13537
13671
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
13672
+ /**
13673
+ * Prefer `String#matchAll()` over `RegExp#exec()` loops.
13674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-match-all.md
13675
+ */
13676
+ "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
13677
+ /**
13678
+ * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
13679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-pad-start-end.md
13680
+ */
13681
+ "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
13538
13682
  /**
13539
13683
  * Prefer using the `String.raw` tag to avoid escaping `\`.
13540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
13684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-raw.md
13541
13685
  */
13542
13686
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
13543
13687
  /**
13544
- * Prefer `String#replaceAll()` over regex searches with the global flag.
13545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
13688
+ * Prefer `String#repeat()` for repeated whitespace.
13689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-repeat.md
13690
+ */
13691
+ "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
13692
+ /**
13693
+ * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
13694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-replace-all.md
13546
13695
  */
13547
13696
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
13548
13697
  /**
13549
13698
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
13550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
13699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-slice.md
13551
13700
  */
13552
13701
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
13553
13702
  /**
13554
13703
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
13555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
13704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-starts-ends-with.md
13556
13705
  */
13557
13706
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
13558
13707
  /**
13559
13708
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
13560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
13709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-trim-start-end.md
13561
13710
  */
13562
13711
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
13563
13712
  /**
13564
13713
  * Prefer using `structuredClone` to create a deep clone.
13565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
13714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-structured-clone.md
13566
13715
  */
13567
13716
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13568
13717
  /**
13569
13718
  * Prefer `switch` over multiple `else-if`.
13570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
13719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-switch.md
13571
13720
  */
13572
13721
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
13573
13722
  /**
13574
13723
  * Prefer ternary expressions over simple `if-else` statements.
13575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
13724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-ternary.md
13576
13725
  */
13577
13726
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
13578
13727
  /**
13579
13728
  * Prefer top-level await over top-level promises and async function calls.
13580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
13729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-top-level-await.md
13581
13730
  */
13582
13731
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
13583
13732
  /**
13584
13733
  * Enforce throwing `TypeError` in type checking conditions.
13585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
13734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-type-error.md
13586
13735
  */
13587
13736
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
13588
13737
  /**
13589
13738
  * Prevent abbreviations.
13590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
13739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prevent-abbreviations.md
13591
13740
  */
13592
13741
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
13593
13742
  /**
13594
13743
  * Enforce consistent relative URL style.
13595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
13744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/relative-url-style.md
13596
13745
  */
13597
13746
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13598
13747
  /**
13599
13748
  * Enforce using the separator argument with `Array#join()`.
13600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
13749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-array-join-separator.md
13601
13750
  */
13602
13751
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
13752
+ /**
13753
+ * Require `CSS.escape()` for interpolated values in CSS selectors.
13754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-css-escape.md
13755
+ */
13756
+ "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
13603
13757
  /**
13604
13758
  * Require non-empty module attributes for imports and exports
13605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
13759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-module-attributes.md
13606
13760
  */
13607
13761
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
13608
13762
  /**
13609
13763
  * Require non-empty specifier list in import and export statements.
13610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
13764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-module-specifiers.md
13611
13765
  */
13612
13766
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
13613
13767
  /**
13614
13768
  * Enforce using the digits argument with `Number#toFixed()`.
13615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-number-to-fixed-digits-argument.md
13616
13770
  */
13617
13771
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
13772
+ /**
13773
+ * Require passive event listeners for high-frequency events.
13774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-passive-events.md
13775
+ */
13776
+ "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
13618
13777
  /**
13619
13778
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
13620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
13779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-post-message-target-origin.md
13621
13780
  */
13622
13781
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
13623
13782
  /**
13624
13783
  * Enforce better string content.
13625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
13784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/string-content.md
13626
13785
  */
13627
13786
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
13628
13787
  /**
13629
13788
  * Enforce consistent brace style for `case` clauses.
13630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
13789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/switch-case-braces.md
13631
13790
  */
13632
13791
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13633
13792
  /**
13634
13793
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
13635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
13794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/switch-case-break-position.md
13636
13795
  */
13637
13796
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
13638
13797
  /**
13639
13798
  * Fix whitespace-insensitive template indentation.
13640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
13799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/template-indent.md
13641
13800
  */
13642
13801
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
13643
13802
  /**
13644
13803
  * Enforce consistent case for text encoding identifiers.
13645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
13804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/text-encoding-identifier-case.md
13646
13805
  */
13647
13806
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13648
13807
  /**
13649
13808
  * Require `new` when creating an error.
13650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
13809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/throw-new-error.md
13651
13810
  */
13652
13811
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
13812
+ /**
13813
+ * Limit the complexity of `try` blocks.
13814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/try-complexity.md
13815
+ */
13816
+ "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
13653
13817
  }
13654
13818
  /* ======= Declarations ======= */
13655
- // ----- unicorn/better-regex -----
13656
- type UnicornBetterRegex = [] | [{
13657
- sortCharacterClasses?: boolean;
13658
- }]; // ----- unicorn/catch-error-name -----
13819
+ // ----- unicorn/catch-error-name -----
13659
13820
  type UnicornCatchErrorName = [] | [{
13660
13821
  name?: string;
13661
13822
  ignore?: unknown[];
13662
- }]; // ----- unicorn/consistent-function-scoping -----
13823
+ }]; // ----- unicorn/consistent-compound-words -----
13824
+ type UnicornConsistentCompoundWords = [] | [{
13825
+ checkProperties?: boolean;
13826
+ checkVariables?: boolean;
13827
+ checkDefaultAndNamespaceImports?: boolean | "internal";
13828
+ checkShorthandImports?: boolean | "internal";
13829
+ checkShorthandProperties?: boolean;
13830
+ extendDefaultReplacements?: boolean;
13831
+ replacements?: _UnicornConsistentCompoundWords_Replacements;
13832
+ allowList?: _UnicornConsistentCompoundWords_TrueObject;
13833
+ }];
13834
+ interface _UnicornConsistentCompoundWords_Replacements {
13835
+ [k: string]: (false | string) | undefined;
13836
+ }
13837
+ interface _UnicornConsistentCompoundWords_TrueObject {
13838
+ [k: string]: true | undefined;
13839
+ } // ----- unicorn/consistent-function-scoping -----
13663
13840
  type UnicornConsistentFunctionScoping = [] | [{
13664
13841
  checkArrowFunctions?: boolean;
13842
+ }]; // ----- unicorn/consistent-json-file-read -----
13843
+ type UnicornConsistentJsonFileRead = [] | ["string" | "buffer"]; // ----- unicorn/dom-node-dataset -----
13844
+ type UnicornDomNodeDataset = [] | [{
13845
+ preferAttributes?: boolean;
13665
13846
  }]; // ----- unicorn/escape-case -----
13666
13847
  type UnicornEscapeCase = [] | ["uppercase" | "lowercase"]; // ----- unicorn/expiring-todo-comments -----
13667
13848
  type UnicornExpiringTodoComments = [] | [{
13668
13849
  terms?: string[];
13669
13850
  ignore?: unknown[];
13670
- ignoreDates?: boolean;
13671
- ignoreDatesOnPullRequests?: boolean;
13851
+ checkDates?: boolean;
13852
+ checkDatesOnPullRequests?: boolean;
13672
13853
  allowWarningComments?: boolean;
13673
13854
  date?: string;
13674
13855
  }]; // ----- unicorn/explicit-length-check -----
@@ -13679,6 +13860,7 @@ type UnicornFilenameCase = [] | [{
13679
13860
  case?: "camelCase" | "snakeCase" | "kebabCase" | "pascalCase";
13680
13861
  ignore?: unknown[];
13681
13862
  multipleFileExtensions?: boolean;
13863
+ checkDirectories?: boolean;
13682
13864
  } | {
13683
13865
  cases?: {
13684
13866
  camelCase?: boolean;
@@ -13688,6 +13870,7 @@ type UnicornFilenameCase = [] | [{
13688
13870
  };
13689
13871
  ignore?: unknown[];
13690
13872
  multipleFileExtensions?: boolean;
13873
+ checkDirectories?: boolean;
13691
13874
  }]; // ----- unicorn/import-style -----
13692
13875
  type UnicornImportStyle = [] | [{
13693
13876
  checkImport?: boolean;
@@ -13711,6 +13894,9 @@ type UnicornIsolatedFunctions = [] | [{
13711
13894
  functions?: string[];
13712
13895
  selectors?: string[];
13713
13896
  comments?: string[];
13897
+ }]; // ----- unicorn/no-array-callback-reference -----
13898
+ type UnicornNoArrayCallbackReference = [] | [{
13899
+ ignore?: string[];
13714
13900
  }]; // ----- unicorn/no-array-reduce -----
13715
13901
  type UnicornNoArrayReduce = [] | [{
13716
13902
  allowSimpleOperations?: boolean;
@@ -13720,6 +13906,9 @@ type UnicornNoArrayReverse = [] | [{
13720
13906
  }]; // ----- unicorn/no-array-sort -----
13721
13907
  type UnicornNoArraySort = [] | [{
13722
13908
  allowExpressionStatement?: boolean;
13909
+ }]; // ----- unicorn/no-empty-file -----
13910
+ type UnicornNoEmptyFile = [] | [{
13911
+ allowComments?: boolean;
13723
13912
  }]; // ----- unicorn/no-instanceof-builtins -----
13724
13913
  type UnicornNoInstanceofBuiltins = [] | [{
13725
13914
  useErrorIsError?: boolean;
@@ -13733,13 +13922,14 @@ type UnicornNoKeywordPrefix = [] | [{
13733
13922
  onlyCamelCase?: boolean;
13734
13923
  }]; // ----- unicorn/no-null -----
13735
13924
  type UnicornNoNull = [] | [{
13925
+ checkArguments?: boolean;
13736
13926
  checkStrictEquality?: boolean;
13737
13927
  }]; // ----- unicorn/no-typeof-undefined -----
13738
13928
  type UnicornNoTypeofUndefined = [] | [{
13739
13929
  checkGlobalVariables?: boolean;
13740
13930
  }]; // ----- unicorn/no-unnecessary-polyfills -----
13741
13931
  type UnicornNoUnnecessaryPolyfills = [] | [{
13742
- targets: string | unknown[] | {
13932
+ targets?: string | unknown[] | {
13743
13933
  [k: string]: unknown | undefined;
13744
13934
  };
13745
13935
  }]; // ----- unicorn/no-useless-undefined -----
@@ -13770,6 +13960,7 @@ type UnicornNumericSeparatorsStyle = [] | [{
13770
13960
  onlyIfContainsSeparator?: boolean;
13771
13961
  minimumDigits?: number;
13772
13962
  groupLength?: number;
13963
+ fractionGroupLength?: number;
13773
13964
  };
13774
13965
  onlyIfContainsSeparator?: boolean;
13775
13966
  }]; // ----- unicorn/prefer-add-event-listener -----
@@ -13787,7 +13978,10 @@ type UnicornPreferAt = [] | [{
13787
13978
  checkAllIndexAccess?: boolean;
13788
13979
  }]; // ----- unicorn/prefer-export-from -----
13789
13980
  type UnicornPreferExportFrom = [] | [{
13790
- ignoreUsedVariables?: boolean;
13981
+ checkUsedVariables?: boolean;
13982
+ }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
13983
+ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
13984
+ minimumComparisons?: number;
13791
13985
  }]; // ----- unicorn/prefer-number-properties -----
13792
13986
  type UnicornPreferNumberProperties = [] | [{
13793
13987
  checkInfinity?: boolean;
@@ -13795,9 +13989,22 @@ type UnicornPreferNumberProperties = [] | [{
13795
13989
  }]; // ----- unicorn/prefer-object-from-entries -----
13796
13990
  type UnicornPreferObjectFromEntries = [] | [{
13797
13991
  functions?: unknown[];
13992
+ }]; // ----- unicorn/prefer-query-selector -----
13993
+ type UnicornPreferQuerySelector = [] | [{
13994
+ allowWithVariables?: boolean;
13995
+ }]; // ----- unicorn/prefer-queue-microtask -----
13996
+ type UnicornPreferQueueMicrotask = [] | [{
13997
+ checkSetImmediate?: boolean;
13998
+ checkSetTimeout?: boolean;
13999
+ }]; // ----- unicorn/prefer-set-has -----
14000
+ type UnicornPreferSetHas = [] | [{
14001
+ minimumItems?: number;
13798
14002
  }]; // ----- unicorn/prefer-single-call -----
13799
14003
  type UnicornPreferSingleCall = [] | [{
13800
14004
  ignore?: unknown[];
14005
+ }]; // ----- unicorn/prefer-string-repeat -----
14006
+ type UnicornPreferStringRepeat = [] | [{
14007
+ minimumRepetitions?: number;
13801
14008
  }]; // ----- unicorn/prefer-structured-clone -----
13802
14009
  type UnicornPreferStructuredClone = [] | [{
13803
14010
  functions?: unknown[];
@@ -13830,15 +14037,20 @@ interface _UnicornPreventAbbreviations_BooleanObject {
13830
14037
  interface _UnicornPreventAbbreviations_BooleanObject {
13831
14038
  [k: string]: boolean | undefined;
13832
14039
  } // ----- unicorn/relative-url-style -----
13833
- type UnicornRelativeUrlStyle = [] | ["never" | "always"]; // ----- unicorn/string-content -----
14040
+ type UnicornRelativeUrlStyle = [] | ["never" | "always"]; // ----- unicorn/require-css-escape -----
14041
+ type UnicornRequireCssEscape = [] | [{
14042
+ checkAllSelectors?: boolean;
14043
+ }]; // ----- unicorn/string-content -----
13834
14044
  type UnicornStringContent = [] | [{
13835
14045
  patterns?: {
13836
14046
  [k: string]: (string | {
13837
14047
  suggest: string;
13838
14048
  fix?: boolean;
14049
+ caseSensitive?: boolean;
13839
14050
  message?: string;
13840
14051
  }) | undefined;
13841
14052
  };
14053
+ selectors?: string[];
13842
14054
  }]; // ----- unicorn/switch-case-braces -----
13843
14055
  type UnicornSwitchCaseBraces = [] | ["always" | "avoid"]; // ----- unicorn/template-indent -----
13844
14056
  type UnicornTemplateIndent = [] | [{
@@ -13850,6 +14062,9 @@ type UnicornTemplateIndent = [] | [{
13850
14062
  }]; // ----- unicorn/text-encoding-identifier-case -----
13851
14063
  type UnicornTextEncodingIdentifierCase = [] | [{
13852
14064
  withDash?: boolean;
14065
+ }]; // ----- unicorn/try-complexity -----
14066
+ type UnicornTryComplexity = [] | [{
14067
+ max?: number;
13853
14068
  }];
13854
14069
  //#endregion
13855
14070
  //#region src/_generated/dts/vitest.d.ts
@@ -15033,214 +15248,214 @@ declare const GLOB_EXCLUDE: string[];
15033
15248
  declare function importPluginReact(): Promise<{
15034
15249
  pluginReact: {
15035
15250
  deprecatedRules: Partial<{
15036
- 'boolean-prop-naming': _$eslint.Rule.RuleModule;
15037
- 'button-has-type': _$eslint.Rule.RuleModule;
15038
- 'checked-requires-onchange-or-readonly': _$eslint.Rule.RuleModule;
15039
- 'default-props-match-prop-types': _$eslint.Rule.RuleModule;
15040
- 'destructuring-assignment': _$eslint.Rule.RuleModule;
15041
- 'display-name': _$eslint.Rule.RuleModule;
15042
- 'forbid-component-props': _$eslint.Rule.RuleModule;
15043
- 'forbid-dom-props': _$eslint.Rule.RuleModule;
15044
- 'forbid-elements': _$eslint.Rule.RuleModule;
15045
- 'forbid-foreign-prop-types': _$eslint.Rule.RuleModule;
15046
- 'forbid-prop-types': _$eslint.Rule.RuleModule;
15047
- 'forward-ref-uses-ref': _$eslint.Rule.RuleModule;
15048
- 'function-component-definition': _$eslint.Rule.RuleModule;
15049
- 'hook-use-state': _$eslint.Rule.RuleModule;
15050
- 'iframe-missing-sandbox': _$eslint.Rule.RuleModule;
15051
- 'jsx-boolean-value': _$eslint.Rule.RuleModule;
15052
- 'jsx-child-element-spacing': _$eslint.Rule.RuleModule;
15053
- 'jsx-closing-bracket-location': _$eslint.Rule.RuleModule;
15054
- 'jsx-closing-tag-location': _$eslint.Rule.RuleModule;
15055
- 'jsx-curly-spacing': _$eslint.Rule.RuleModule;
15056
- 'jsx-curly-newline': _$eslint.Rule.RuleModule;
15057
- 'jsx-equals-spacing': _$eslint.Rule.RuleModule;
15058
- 'jsx-filename-extension': _$eslint.Rule.RuleModule;
15059
- 'jsx-first-prop-new-line': _$eslint.Rule.RuleModule;
15060
- 'jsx-handler-names': _$eslint.Rule.RuleModule;
15061
- 'jsx-indent': _$eslint.Rule.RuleModule;
15062
- 'jsx-indent-props': _$eslint.Rule.RuleModule;
15063
- 'jsx-key': _$eslint.Rule.RuleModule;
15064
- 'jsx-max-depth': _$eslint.Rule.RuleModule;
15065
- 'jsx-max-props-per-line': _$eslint.Rule.RuleModule;
15066
- 'jsx-newline': _$eslint.Rule.RuleModule;
15067
- 'jsx-no-bind': _$eslint.Rule.RuleModule;
15068
- 'jsx-no-comment-textnodes': _$eslint.Rule.RuleModule;
15069
- 'jsx-no-constructed-context-values': _$eslint.Rule.RuleModule;
15070
- 'jsx-no-duplicate-props': _$eslint.Rule.RuleModule;
15071
- 'jsx-no-leaked-render': _$eslint.Rule.RuleModule;
15072
- 'jsx-no-literals': _$eslint.Rule.RuleModule;
15073
- 'jsx-no-script-url': _$eslint.Rule.RuleModule;
15074
- 'jsx-no-target-blank': _$eslint.Rule.RuleModule;
15075
- 'jsx-no-useless-fragment': _$eslint.Rule.RuleModule;
15076
- 'jsx-one-expression-per-line': _$eslint.Rule.RuleModule;
15077
- 'jsx-no-undef': _$eslint.Rule.RuleModule;
15078
- 'jsx-curly-brace-presence': _$eslint.Rule.RuleModule;
15079
- 'jsx-pascal-case': _$eslint.Rule.RuleModule;
15080
- 'jsx-fragments': _$eslint.Rule.RuleModule;
15081
- 'jsx-props-no-multi-spaces': _$eslint.Rule.RuleModule;
15082
- 'jsx-props-no-spreading': _$eslint.Rule.RuleModule;
15083
- 'jsx-props-no-spread-multi': _$eslint.Rule.RuleModule;
15084
- 'jsx-sort-default-props': _$eslint.Rule.RuleModule;
15085
- 'jsx-sort-props': _$eslint.Rule.RuleModule;
15086
- 'jsx-space-before-closing': _$eslint.Rule.RuleModule;
15087
- 'jsx-tag-spacing': _$eslint.Rule.RuleModule;
15088
- 'jsx-uses-react': _$eslint.Rule.RuleModule;
15089
- 'jsx-uses-vars': _$eslint.Rule.RuleModule;
15090
- 'jsx-wrap-multilines': _$eslint.Rule.RuleModule;
15091
- 'no-invalid-html-attribute': _$eslint.Rule.RuleModule;
15092
- 'no-access-state-in-setstate': _$eslint.Rule.RuleModule;
15093
- 'no-adjacent-inline-elements': _$eslint.Rule.RuleModule;
15094
- 'no-array-index-key': _$eslint.Rule.RuleModule;
15095
- 'no-arrow-function-lifecycle': _$eslint.Rule.RuleModule;
15096
- 'no-children-prop': _$eslint.Rule.RuleModule;
15097
- 'no-danger': _$eslint.Rule.RuleModule;
15098
- 'no-danger-with-children': _$eslint.Rule.RuleModule;
15099
- 'no-deprecated': _$eslint.Rule.RuleModule;
15100
- 'no-did-mount-set-state': _$eslint.Rule.RuleModule;
15101
- 'no-did-update-set-state': _$eslint.Rule.RuleModule;
15102
- 'no-direct-mutation-state': _$eslint.Rule.RuleModule;
15103
- 'no-find-dom-node': _$eslint.Rule.RuleModule;
15104
- 'no-is-mounted': _$eslint.Rule.RuleModule;
15105
- 'no-multi-comp': _$eslint.Rule.RuleModule;
15106
- 'no-namespace': _$eslint.Rule.RuleModule;
15107
- 'no-set-state': _$eslint.Rule.RuleModule;
15108
- 'no-string-refs': _$eslint.Rule.RuleModule;
15109
- 'no-redundant-should-component-update': _$eslint.Rule.RuleModule;
15110
- 'no-render-return-value': _$eslint.Rule.RuleModule;
15111
- 'no-this-in-sfc': _$eslint.Rule.RuleModule;
15112
- 'no-typos': _$eslint.Rule.RuleModule;
15113
- 'no-unescaped-entities': _$eslint.Rule.RuleModule;
15114
- 'no-unknown-property': _$eslint.Rule.RuleModule;
15115
- 'no-unsafe': _$eslint.Rule.RuleModule;
15116
- 'no-unstable-nested-components': _$eslint.Rule.RuleModule;
15117
- 'no-unused-class-component-methods': _$eslint.Rule.RuleModule;
15118
- 'no-unused-prop-types': _$eslint.Rule.RuleModule;
15119
- 'no-unused-state': _$eslint.Rule.RuleModule;
15120
- 'no-object-type-as-default-prop': _$eslint.Rule.RuleModule;
15121
- 'no-will-update-set-state': _$eslint.Rule.RuleModule;
15122
- 'prefer-es6-class': _$eslint.Rule.RuleModule;
15123
- 'prefer-exact-props': _$eslint.Rule.RuleModule;
15124
- 'prefer-read-only-props': _$eslint.Rule.RuleModule;
15125
- 'prefer-stateless-function': _$eslint.Rule.RuleModule;
15126
- 'prop-types': _$eslint.Rule.RuleModule;
15127
- 'react-in-jsx-scope': _$eslint.Rule.RuleModule;
15128
- 'require-default-props': _$eslint.Rule.RuleModule;
15129
- 'require-optimization': _$eslint.Rule.RuleModule;
15130
- 'require-render-return': _$eslint.Rule.RuleModule;
15131
- 'self-closing-comp': _$eslint.Rule.RuleModule;
15132
- 'sort-comp': _$eslint.Rule.RuleModule;
15133
- 'sort-default-props': _$eslint.Rule.RuleModule;
15134
- 'sort-prop-types': _$eslint.Rule.RuleModule;
15135
- 'state-in-constructor': _$eslint.Rule.RuleModule;
15136
- 'static-property-placement': _$eslint.Rule.RuleModule;
15137
- 'style-prop-object': _$eslint.Rule.RuleModule;
15138
- 'void-dom-elements-no-children': _$eslint.Rule.RuleModule;
15251
+ 'boolean-prop-naming': import("eslint").Rule.RuleModule;
15252
+ 'button-has-type': import("eslint").Rule.RuleModule;
15253
+ 'checked-requires-onchange-or-readonly': import("eslint").Rule.RuleModule;
15254
+ 'default-props-match-prop-types': import("eslint").Rule.RuleModule;
15255
+ 'destructuring-assignment': import("eslint").Rule.RuleModule;
15256
+ 'display-name': import("eslint").Rule.RuleModule;
15257
+ 'forbid-component-props': import("eslint").Rule.RuleModule;
15258
+ 'forbid-dom-props': import("eslint").Rule.RuleModule;
15259
+ 'forbid-elements': import("eslint").Rule.RuleModule;
15260
+ 'forbid-foreign-prop-types': import("eslint").Rule.RuleModule;
15261
+ 'forbid-prop-types': import("eslint").Rule.RuleModule;
15262
+ 'forward-ref-uses-ref': import("eslint").Rule.RuleModule;
15263
+ 'function-component-definition': import("eslint").Rule.RuleModule;
15264
+ 'hook-use-state': import("eslint").Rule.RuleModule;
15265
+ 'iframe-missing-sandbox': import("eslint").Rule.RuleModule;
15266
+ 'jsx-boolean-value': import("eslint").Rule.RuleModule;
15267
+ 'jsx-child-element-spacing': import("eslint").Rule.RuleModule;
15268
+ 'jsx-closing-bracket-location': import("eslint").Rule.RuleModule;
15269
+ 'jsx-closing-tag-location': import("eslint").Rule.RuleModule;
15270
+ 'jsx-curly-spacing': import("eslint").Rule.RuleModule;
15271
+ 'jsx-curly-newline': import("eslint").Rule.RuleModule;
15272
+ 'jsx-equals-spacing': import("eslint").Rule.RuleModule;
15273
+ 'jsx-filename-extension': import("eslint").Rule.RuleModule;
15274
+ 'jsx-first-prop-new-line': import("eslint").Rule.RuleModule;
15275
+ 'jsx-handler-names': import("eslint").Rule.RuleModule;
15276
+ 'jsx-indent': import("eslint").Rule.RuleModule;
15277
+ 'jsx-indent-props': import("eslint").Rule.RuleModule;
15278
+ 'jsx-key': import("eslint").Rule.RuleModule;
15279
+ 'jsx-max-depth': import("eslint").Rule.RuleModule;
15280
+ 'jsx-max-props-per-line': import("eslint").Rule.RuleModule;
15281
+ 'jsx-newline': import("eslint").Rule.RuleModule;
15282
+ 'jsx-no-bind': import("eslint").Rule.RuleModule;
15283
+ 'jsx-no-comment-textnodes': import("eslint").Rule.RuleModule;
15284
+ 'jsx-no-constructed-context-values': import("eslint").Rule.RuleModule;
15285
+ 'jsx-no-duplicate-props': import("eslint").Rule.RuleModule;
15286
+ 'jsx-no-leaked-render': import("eslint").Rule.RuleModule;
15287
+ 'jsx-no-literals': import("eslint").Rule.RuleModule;
15288
+ 'jsx-no-script-url': import("eslint").Rule.RuleModule;
15289
+ 'jsx-no-target-blank': import("eslint").Rule.RuleModule;
15290
+ 'jsx-no-useless-fragment': import("eslint").Rule.RuleModule;
15291
+ 'jsx-one-expression-per-line': import("eslint").Rule.RuleModule;
15292
+ 'jsx-no-undef': import("eslint").Rule.RuleModule;
15293
+ 'jsx-curly-brace-presence': import("eslint").Rule.RuleModule;
15294
+ 'jsx-pascal-case': import("eslint").Rule.RuleModule;
15295
+ 'jsx-fragments': import("eslint").Rule.RuleModule;
15296
+ 'jsx-props-no-multi-spaces': import("eslint").Rule.RuleModule;
15297
+ 'jsx-props-no-spreading': import("eslint").Rule.RuleModule;
15298
+ 'jsx-props-no-spread-multi': import("eslint").Rule.RuleModule;
15299
+ 'jsx-sort-default-props': import("eslint").Rule.RuleModule;
15300
+ 'jsx-sort-props': import("eslint").Rule.RuleModule;
15301
+ 'jsx-space-before-closing': import("eslint").Rule.RuleModule;
15302
+ 'jsx-tag-spacing': import("eslint").Rule.RuleModule;
15303
+ 'jsx-uses-react': import("eslint").Rule.RuleModule;
15304
+ 'jsx-uses-vars': import("eslint").Rule.RuleModule;
15305
+ 'jsx-wrap-multilines': import("eslint").Rule.RuleModule;
15306
+ 'no-invalid-html-attribute': import("eslint").Rule.RuleModule;
15307
+ 'no-access-state-in-setstate': import("eslint").Rule.RuleModule;
15308
+ 'no-adjacent-inline-elements': import("eslint").Rule.RuleModule;
15309
+ 'no-array-index-key': import("eslint").Rule.RuleModule;
15310
+ 'no-arrow-function-lifecycle': import("eslint").Rule.RuleModule;
15311
+ 'no-children-prop': import("eslint").Rule.RuleModule;
15312
+ 'no-danger': import("eslint").Rule.RuleModule;
15313
+ 'no-danger-with-children': import("eslint").Rule.RuleModule;
15314
+ 'no-deprecated': import("eslint").Rule.RuleModule;
15315
+ 'no-did-mount-set-state': import("eslint").Rule.RuleModule;
15316
+ 'no-did-update-set-state': import("eslint").Rule.RuleModule;
15317
+ 'no-direct-mutation-state': import("eslint").Rule.RuleModule;
15318
+ 'no-find-dom-node': import("eslint").Rule.RuleModule;
15319
+ 'no-is-mounted': import("eslint").Rule.RuleModule;
15320
+ 'no-multi-comp': import("eslint").Rule.RuleModule;
15321
+ 'no-namespace': import("eslint").Rule.RuleModule;
15322
+ 'no-set-state': import("eslint").Rule.RuleModule;
15323
+ 'no-string-refs': import("eslint").Rule.RuleModule;
15324
+ 'no-redundant-should-component-update': import("eslint").Rule.RuleModule;
15325
+ 'no-render-return-value': import("eslint").Rule.RuleModule;
15326
+ 'no-this-in-sfc': import("eslint").Rule.RuleModule;
15327
+ 'no-typos': import("eslint").Rule.RuleModule;
15328
+ 'no-unescaped-entities': import("eslint").Rule.RuleModule;
15329
+ 'no-unknown-property': import("eslint").Rule.RuleModule;
15330
+ 'no-unsafe': import("eslint").Rule.RuleModule;
15331
+ 'no-unstable-nested-components': import("eslint").Rule.RuleModule;
15332
+ 'no-unused-class-component-methods': import("eslint").Rule.RuleModule;
15333
+ 'no-unused-prop-types': import("eslint").Rule.RuleModule;
15334
+ 'no-unused-state': import("eslint").Rule.RuleModule;
15335
+ 'no-object-type-as-default-prop': import("eslint").Rule.RuleModule;
15336
+ 'no-will-update-set-state': import("eslint").Rule.RuleModule;
15337
+ 'prefer-es6-class': import("eslint").Rule.RuleModule;
15338
+ 'prefer-exact-props': import("eslint").Rule.RuleModule;
15339
+ 'prefer-read-only-props': import("eslint").Rule.RuleModule;
15340
+ 'prefer-stateless-function': import("eslint").Rule.RuleModule;
15341
+ 'prop-types': import("eslint").Rule.RuleModule;
15342
+ 'react-in-jsx-scope': import("eslint").Rule.RuleModule;
15343
+ 'require-default-props': import("eslint").Rule.RuleModule;
15344
+ 'require-optimization': import("eslint").Rule.RuleModule;
15345
+ 'require-render-return': import("eslint").Rule.RuleModule;
15346
+ 'self-closing-comp': import("eslint").Rule.RuleModule;
15347
+ 'sort-comp': import("eslint").Rule.RuleModule;
15348
+ 'sort-default-props': import("eslint").Rule.RuleModule;
15349
+ 'sort-prop-types': import("eslint").Rule.RuleModule;
15350
+ 'state-in-constructor': import("eslint").Rule.RuleModule;
15351
+ 'static-property-placement': import("eslint").Rule.RuleModule;
15352
+ 'style-prop-object': import("eslint").Rule.RuleModule;
15353
+ 'void-dom-elements-no-children': import("eslint").Rule.RuleModule;
15139
15354
  }>;
15140
15355
  rules: {
15141
- 'boolean-prop-naming': _$eslint.Rule.RuleModule;
15142
- 'button-has-type': _$eslint.Rule.RuleModule;
15143
- 'checked-requires-onchange-or-readonly': _$eslint.Rule.RuleModule;
15144
- 'default-props-match-prop-types': _$eslint.Rule.RuleModule;
15145
- 'destructuring-assignment': _$eslint.Rule.RuleModule;
15146
- 'display-name': _$eslint.Rule.RuleModule;
15147
- 'forbid-component-props': _$eslint.Rule.RuleModule;
15148
- 'forbid-dom-props': _$eslint.Rule.RuleModule;
15149
- 'forbid-elements': _$eslint.Rule.RuleModule;
15150
- 'forbid-foreign-prop-types': _$eslint.Rule.RuleModule;
15151
- 'forbid-prop-types': _$eslint.Rule.RuleModule;
15152
- 'forward-ref-uses-ref': _$eslint.Rule.RuleModule;
15153
- 'function-component-definition': _$eslint.Rule.RuleModule;
15154
- 'hook-use-state': _$eslint.Rule.RuleModule;
15155
- 'iframe-missing-sandbox': _$eslint.Rule.RuleModule;
15156
- 'jsx-boolean-value': _$eslint.Rule.RuleModule;
15157
- 'jsx-child-element-spacing': _$eslint.Rule.RuleModule;
15158
- 'jsx-closing-bracket-location': _$eslint.Rule.RuleModule;
15159
- 'jsx-closing-tag-location': _$eslint.Rule.RuleModule;
15160
- 'jsx-curly-spacing': _$eslint.Rule.RuleModule;
15161
- 'jsx-curly-newline': _$eslint.Rule.RuleModule;
15162
- 'jsx-equals-spacing': _$eslint.Rule.RuleModule;
15163
- 'jsx-filename-extension': _$eslint.Rule.RuleModule;
15164
- 'jsx-first-prop-new-line': _$eslint.Rule.RuleModule;
15165
- 'jsx-handler-names': _$eslint.Rule.RuleModule;
15166
- 'jsx-indent': _$eslint.Rule.RuleModule;
15167
- 'jsx-indent-props': _$eslint.Rule.RuleModule;
15168
- 'jsx-key': _$eslint.Rule.RuleModule;
15169
- 'jsx-max-depth': _$eslint.Rule.RuleModule;
15170
- 'jsx-max-props-per-line': _$eslint.Rule.RuleModule;
15171
- 'jsx-newline': _$eslint.Rule.RuleModule;
15172
- 'jsx-no-bind': _$eslint.Rule.RuleModule;
15173
- 'jsx-no-comment-textnodes': _$eslint.Rule.RuleModule;
15174
- 'jsx-no-constructed-context-values': _$eslint.Rule.RuleModule;
15175
- 'jsx-no-duplicate-props': _$eslint.Rule.RuleModule;
15176
- 'jsx-no-leaked-render': _$eslint.Rule.RuleModule;
15177
- 'jsx-no-literals': _$eslint.Rule.RuleModule;
15178
- 'jsx-no-script-url': _$eslint.Rule.RuleModule;
15179
- 'jsx-no-target-blank': _$eslint.Rule.RuleModule;
15180
- 'jsx-no-useless-fragment': _$eslint.Rule.RuleModule;
15181
- 'jsx-one-expression-per-line': _$eslint.Rule.RuleModule;
15182
- 'jsx-no-undef': _$eslint.Rule.RuleModule;
15183
- 'jsx-curly-brace-presence': _$eslint.Rule.RuleModule;
15184
- 'jsx-pascal-case': _$eslint.Rule.RuleModule;
15185
- 'jsx-fragments': _$eslint.Rule.RuleModule;
15186
- 'jsx-props-no-multi-spaces': _$eslint.Rule.RuleModule;
15187
- 'jsx-props-no-spreading': _$eslint.Rule.RuleModule;
15188
- 'jsx-props-no-spread-multi': _$eslint.Rule.RuleModule;
15189
- 'jsx-sort-default-props': _$eslint.Rule.RuleModule;
15190
- 'jsx-sort-props': _$eslint.Rule.RuleModule;
15191
- 'jsx-space-before-closing': _$eslint.Rule.RuleModule;
15192
- 'jsx-tag-spacing': _$eslint.Rule.RuleModule;
15193
- 'jsx-uses-react': _$eslint.Rule.RuleModule;
15194
- 'jsx-uses-vars': _$eslint.Rule.RuleModule;
15195
- 'jsx-wrap-multilines': _$eslint.Rule.RuleModule;
15196
- 'no-invalid-html-attribute': _$eslint.Rule.RuleModule;
15197
- 'no-access-state-in-setstate': _$eslint.Rule.RuleModule;
15198
- 'no-adjacent-inline-elements': _$eslint.Rule.RuleModule;
15199
- 'no-array-index-key': _$eslint.Rule.RuleModule;
15200
- 'no-arrow-function-lifecycle': _$eslint.Rule.RuleModule;
15201
- 'no-children-prop': _$eslint.Rule.RuleModule;
15202
- 'no-danger': _$eslint.Rule.RuleModule;
15203
- 'no-danger-with-children': _$eslint.Rule.RuleModule;
15204
- 'no-deprecated': _$eslint.Rule.RuleModule;
15205
- 'no-did-mount-set-state': _$eslint.Rule.RuleModule;
15206
- 'no-did-update-set-state': _$eslint.Rule.RuleModule;
15207
- 'no-direct-mutation-state': _$eslint.Rule.RuleModule;
15208
- 'no-find-dom-node': _$eslint.Rule.RuleModule;
15209
- 'no-is-mounted': _$eslint.Rule.RuleModule;
15210
- 'no-multi-comp': _$eslint.Rule.RuleModule;
15211
- 'no-namespace': _$eslint.Rule.RuleModule;
15212
- 'no-set-state': _$eslint.Rule.RuleModule;
15213
- 'no-string-refs': _$eslint.Rule.RuleModule;
15214
- 'no-redundant-should-component-update': _$eslint.Rule.RuleModule;
15215
- 'no-render-return-value': _$eslint.Rule.RuleModule;
15216
- 'no-this-in-sfc': _$eslint.Rule.RuleModule;
15217
- 'no-typos': _$eslint.Rule.RuleModule;
15218
- 'no-unescaped-entities': _$eslint.Rule.RuleModule;
15219
- 'no-unknown-property': _$eslint.Rule.RuleModule;
15220
- 'no-unsafe': _$eslint.Rule.RuleModule;
15221
- 'no-unstable-nested-components': _$eslint.Rule.RuleModule;
15222
- 'no-unused-class-component-methods': _$eslint.Rule.RuleModule;
15223
- 'no-unused-prop-types': _$eslint.Rule.RuleModule;
15224
- 'no-unused-state': _$eslint.Rule.RuleModule;
15225
- 'no-object-type-as-default-prop': _$eslint.Rule.RuleModule;
15226
- 'no-will-update-set-state': _$eslint.Rule.RuleModule;
15227
- 'prefer-es6-class': _$eslint.Rule.RuleModule;
15228
- 'prefer-exact-props': _$eslint.Rule.RuleModule;
15229
- 'prefer-read-only-props': _$eslint.Rule.RuleModule;
15230
- 'prefer-stateless-function': _$eslint.Rule.RuleModule;
15231
- 'prop-types': _$eslint.Rule.RuleModule;
15232
- 'react-in-jsx-scope': _$eslint.Rule.RuleModule;
15233
- 'require-default-props': _$eslint.Rule.RuleModule;
15234
- 'require-optimization': _$eslint.Rule.RuleModule;
15235
- 'require-render-return': _$eslint.Rule.RuleModule;
15236
- 'self-closing-comp': _$eslint.Rule.RuleModule;
15237
- 'sort-comp': _$eslint.Rule.RuleModule;
15238
- 'sort-default-props': _$eslint.Rule.RuleModule;
15239
- 'sort-prop-types': _$eslint.Rule.RuleModule;
15240
- 'state-in-constructor': _$eslint.Rule.RuleModule;
15241
- 'static-property-placement': _$eslint.Rule.RuleModule;
15242
- 'style-prop-object': _$eslint.Rule.RuleModule;
15243
- 'void-dom-elements-no-children': _$eslint.Rule.RuleModule;
15356
+ 'boolean-prop-naming': import("eslint").Rule.RuleModule;
15357
+ 'button-has-type': import("eslint").Rule.RuleModule;
15358
+ 'checked-requires-onchange-or-readonly': import("eslint").Rule.RuleModule;
15359
+ 'default-props-match-prop-types': import("eslint").Rule.RuleModule;
15360
+ 'destructuring-assignment': import("eslint").Rule.RuleModule;
15361
+ 'display-name': import("eslint").Rule.RuleModule;
15362
+ 'forbid-component-props': import("eslint").Rule.RuleModule;
15363
+ 'forbid-dom-props': import("eslint").Rule.RuleModule;
15364
+ 'forbid-elements': import("eslint").Rule.RuleModule;
15365
+ 'forbid-foreign-prop-types': import("eslint").Rule.RuleModule;
15366
+ 'forbid-prop-types': import("eslint").Rule.RuleModule;
15367
+ 'forward-ref-uses-ref': import("eslint").Rule.RuleModule;
15368
+ 'function-component-definition': import("eslint").Rule.RuleModule;
15369
+ 'hook-use-state': import("eslint").Rule.RuleModule;
15370
+ 'iframe-missing-sandbox': import("eslint").Rule.RuleModule;
15371
+ 'jsx-boolean-value': import("eslint").Rule.RuleModule;
15372
+ 'jsx-child-element-spacing': import("eslint").Rule.RuleModule;
15373
+ 'jsx-closing-bracket-location': import("eslint").Rule.RuleModule;
15374
+ 'jsx-closing-tag-location': import("eslint").Rule.RuleModule;
15375
+ 'jsx-curly-spacing': import("eslint").Rule.RuleModule;
15376
+ 'jsx-curly-newline': import("eslint").Rule.RuleModule;
15377
+ 'jsx-equals-spacing': import("eslint").Rule.RuleModule;
15378
+ 'jsx-filename-extension': import("eslint").Rule.RuleModule;
15379
+ 'jsx-first-prop-new-line': import("eslint").Rule.RuleModule;
15380
+ 'jsx-handler-names': import("eslint").Rule.RuleModule;
15381
+ 'jsx-indent': import("eslint").Rule.RuleModule;
15382
+ 'jsx-indent-props': import("eslint").Rule.RuleModule;
15383
+ 'jsx-key': import("eslint").Rule.RuleModule;
15384
+ 'jsx-max-depth': import("eslint").Rule.RuleModule;
15385
+ 'jsx-max-props-per-line': import("eslint").Rule.RuleModule;
15386
+ 'jsx-newline': import("eslint").Rule.RuleModule;
15387
+ 'jsx-no-bind': import("eslint").Rule.RuleModule;
15388
+ 'jsx-no-comment-textnodes': import("eslint").Rule.RuleModule;
15389
+ 'jsx-no-constructed-context-values': import("eslint").Rule.RuleModule;
15390
+ 'jsx-no-duplicate-props': import("eslint").Rule.RuleModule;
15391
+ 'jsx-no-leaked-render': import("eslint").Rule.RuleModule;
15392
+ 'jsx-no-literals': import("eslint").Rule.RuleModule;
15393
+ 'jsx-no-script-url': import("eslint").Rule.RuleModule;
15394
+ 'jsx-no-target-blank': import("eslint").Rule.RuleModule;
15395
+ 'jsx-no-useless-fragment': import("eslint").Rule.RuleModule;
15396
+ 'jsx-one-expression-per-line': import("eslint").Rule.RuleModule;
15397
+ 'jsx-no-undef': import("eslint").Rule.RuleModule;
15398
+ 'jsx-curly-brace-presence': import("eslint").Rule.RuleModule;
15399
+ 'jsx-pascal-case': import("eslint").Rule.RuleModule;
15400
+ 'jsx-fragments': import("eslint").Rule.RuleModule;
15401
+ 'jsx-props-no-multi-spaces': import("eslint").Rule.RuleModule;
15402
+ 'jsx-props-no-spreading': import("eslint").Rule.RuleModule;
15403
+ 'jsx-props-no-spread-multi': import("eslint").Rule.RuleModule;
15404
+ 'jsx-sort-default-props': import("eslint").Rule.RuleModule;
15405
+ 'jsx-sort-props': import("eslint").Rule.RuleModule;
15406
+ 'jsx-space-before-closing': import("eslint").Rule.RuleModule;
15407
+ 'jsx-tag-spacing': import("eslint").Rule.RuleModule;
15408
+ 'jsx-uses-react': import("eslint").Rule.RuleModule;
15409
+ 'jsx-uses-vars': import("eslint").Rule.RuleModule;
15410
+ 'jsx-wrap-multilines': import("eslint").Rule.RuleModule;
15411
+ 'no-invalid-html-attribute': import("eslint").Rule.RuleModule;
15412
+ 'no-access-state-in-setstate': import("eslint").Rule.RuleModule;
15413
+ 'no-adjacent-inline-elements': import("eslint").Rule.RuleModule;
15414
+ 'no-array-index-key': import("eslint").Rule.RuleModule;
15415
+ 'no-arrow-function-lifecycle': import("eslint").Rule.RuleModule;
15416
+ 'no-children-prop': import("eslint").Rule.RuleModule;
15417
+ 'no-danger': import("eslint").Rule.RuleModule;
15418
+ 'no-danger-with-children': import("eslint").Rule.RuleModule;
15419
+ 'no-deprecated': import("eslint").Rule.RuleModule;
15420
+ 'no-did-mount-set-state': import("eslint").Rule.RuleModule;
15421
+ 'no-did-update-set-state': import("eslint").Rule.RuleModule;
15422
+ 'no-direct-mutation-state': import("eslint").Rule.RuleModule;
15423
+ 'no-find-dom-node': import("eslint").Rule.RuleModule;
15424
+ 'no-is-mounted': import("eslint").Rule.RuleModule;
15425
+ 'no-multi-comp': import("eslint").Rule.RuleModule;
15426
+ 'no-namespace': import("eslint").Rule.RuleModule;
15427
+ 'no-set-state': import("eslint").Rule.RuleModule;
15428
+ 'no-string-refs': import("eslint").Rule.RuleModule;
15429
+ 'no-redundant-should-component-update': import("eslint").Rule.RuleModule;
15430
+ 'no-render-return-value': import("eslint").Rule.RuleModule;
15431
+ 'no-this-in-sfc': import("eslint").Rule.RuleModule;
15432
+ 'no-typos': import("eslint").Rule.RuleModule;
15433
+ 'no-unescaped-entities': import("eslint").Rule.RuleModule;
15434
+ 'no-unknown-property': import("eslint").Rule.RuleModule;
15435
+ 'no-unsafe': import("eslint").Rule.RuleModule;
15436
+ 'no-unstable-nested-components': import("eslint").Rule.RuleModule;
15437
+ 'no-unused-class-component-methods': import("eslint").Rule.RuleModule;
15438
+ 'no-unused-prop-types': import("eslint").Rule.RuleModule;
15439
+ 'no-unused-state': import("eslint").Rule.RuleModule;
15440
+ 'no-object-type-as-default-prop': import("eslint").Rule.RuleModule;
15441
+ 'no-will-update-set-state': import("eslint").Rule.RuleModule;
15442
+ 'prefer-es6-class': import("eslint").Rule.RuleModule;
15443
+ 'prefer-exact-props': import("eslint").Rule.RuleModule;
15444
+ 'prefer-read-only-props': import("eslint").Rule.RuleModule;
15445
+ 'prefer-stateless-function': import("eslint").Rule.RuleModule;
15446
+ 'prop-types': import("eslint").Rule.RuleModule;
15447
+ 'react-in-jsx-scope': import("eslint").Rule.RuleModule;
15448
+ 'require-default-props': import("eslint").Rule.RuleModule;
15449
+ 'require-optimization': import("eslint").Rule.RuleModule;
15450
+ 'require-render-return': import("eslint").Rule.RuleModule;
15451
+ 'self-closing-comp': import("eslint").Rule.RuleModule;
15452
+ 'sort-comp': import("eslint").Rule.RuleModule;
15453
+ 'sort-default-props': import("eslint").Rule.RuleModule;
15454
+ 'sort-prop-types': import("eslint").Rule.RuleModule;
15455
+ 'state-in-constructor': import("eslint").Rule.RuleModule;
15456
+ 'static-property-placement': import("eslint").Rule.RuleModule;
15457
+ 'style-prop-object': import("eslint").Rule.RuleModule;
15458
+ 'void-dom-elements-no-children': import("eslint").Rule.RuleModule;
15244
15459
  };
15245
15460
  configs: {
15246
15461
  recommended: {
@@ -15297,9 +15512,9 @@ declare function importPluginReact(): Promise<{
15297
15512
  "react/jsx-uses-react": 0;
15298
15513
  };
15299
15514
  };
15300
- flat: Record<string, _$eslint_plugin_react0.ReactFlatConfig>;
15515
+ flat: Record<string, import("eslint-plugin-react").ReactFlatConfig>;
15301
15516
  } & {
15302
- flat: Record<string, _$eslint_plugin_react0.ReactFlatConfig>;
15517
+ flat: Record<string, import("eslint-plugin-react").ReactFlatConfig>;
15303
15518
  };
15304
15519
  };
15305
15520
  }>;
@@ -15352,12 +15567,12 @@ declare function importPluginReactRefresh(): Promise<{
15352
15567
  };
15353
15568
  }>;
15354
15569
  declare function importPluginMarkdown(): Promise<{
15355
- pluginMarkdown: typeof _$_eslint_markdown0.default;
15570
+ pluginMarkdown: typeof import("@eslint/markdown").default;
15356
15571
  }>;
15357
15572
  declare function importPluginStylistic(): Promise<{
15358
15573
  pluginStylistic: {
15359
- rules: _$_stylistic_eslint_plugin0.Rules;
15360
- configs: _$eslint.ESLint.Plugin["configs"] & _$_stylistic_eslint_plugin0.Configs;
15574
+ rules: import("@stylistic/eslint-plugin").Rules;
15575
+ configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
15361
15576
  };
15362
15577
  }>;
15363
15578
  //#endregion
@@ -15424,4 +15639,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
15424
15639
  declare function error2warn<T extends Config>(configs: T[]): T[];
15425
15640
  declare function warn2error<T extends Config>(configs: T[]): T[];
15426
15641
  //#endregion
15427
- export { Awaitable, Config, EslintConfigFn, type JavascriptRuleOptions, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, RulesRecord, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, TypescriptConfigRules, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };
15642
+ export { type Awaitable, type Config, type EslintConfigFn, type JavascriptRuleOptions, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type RenamePefix, type RuleName, type RulesRecord, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItemWithId, type TypescriptConfigRules, type UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, scopeTypeScriptRules, turnOffRules, uniqueStrings, warn2error };