@jsse/eslint-config 0.7.7 → 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
@@ -14,7 +14,7 @@ import { Linter } from "eslint";
14
14
  import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
15
15
 
16
16
  //#region src/_generated/version.d.ts
17
- declare const VERSION = "0.7.7";
17
+ declare const VERSION = "0.7.8";
18
18
  //#endregion
19
19
  //#region src/_generated/dts/builtins.d.ts
20
20
  interface BuiltinsRuleOptions {
@@ -12899,772 +12899,957 @@ type ImportPreferDefaultExport = [] | [{
12899
12899
  //#region src/_generated/dts/unicorn.d.ts
12900
12900
  interface UnicornRuleOptions {
12901
12901
  /**
12902
- * Improve regexes by making them shorter, consistent, and safer.
12903
- * @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
12904
12904
  */
12905
- "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<[]>;
12906
12912
  /**
12907
12913
  * Enforce a specific parameter name in catch clauses.
12908
- * @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
12909
12915
  */
12910
12916
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
12911
12917
  /**
12912
12918
  * Enforce consistent assertion style with `node:assert`.
12913
- * @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
12914
12920
  */
12915
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>;
12916
12927
  /**
12917
12928
  * Prefer passing `Date` directly to the constructor when cloning.
12918
- * @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
12919
12930
  */
12920
12931
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
12921
12932
  /**
12922
12933
  * Use destructured variables over properties.
12923
- * @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
12924
12935
  */
12925
12936
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
12926
12937
  /**
12927
12938
  * Prefer consistent types when spreading a ternary in an array literal.
12928
- * @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
12929
12940
  */
12930
12941
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
12931
12942
  /**
12932
12943
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
12933
- * @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
12934
12945
  */
12935
12946
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
12936
12947
  /**
12937
12948
  * Move function definitions to the highest possible scope.
12938
- * @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
12939
12950
  */
12940
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>;
12941
12957
  /**
12942
12958
  * Enforce consistent style for escaping `${` in template literals.
12943
- * @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
12944
12960
  */
12945
12961
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
12946
12962
  /**
12947
12963
  * Enforce correct `Error` subclassing.
12948
- * @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
12949
12965
  */
12950
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>;
12951
12972
  /**
12952
12973
  * Enforce no spaces between braces.
12953
- * @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
12954
12975
  */
12955
12976
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
12956
12977
  /**
12957
12978
  * Enforce passing a `message` value when creating a built-in error.
12958
- * @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
12959
12980
  */
12960
12981
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
12961
12982
  /**
12962
12983
  * Require escape sequences to use uppercase or lowercase values.
12963
- * @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
12964
12985
  */
12965
12986
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
12966
12987
  /**
12967
12988
  * Add expiration conditions to TODO comments.
12968
- * @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
12969
12990
  */
12970
12991
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
12971
12992
  /**
12972
12993
  * Enforce explicitly comparing the `length` or `size` property of a value.
12973
- * @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
12974
12995
  */
12975
12996
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
12976
12997
  /**
12977
- * Enforce a case style for filenames.
12978
- * @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
12979
13000
  */
12980
13001
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
12981
13002
  /**
12982
13003
  * Enforce specific import styles per module.
12983
- * @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
12984
13005
  */
12985
13006
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
12986
13007
  /**
12987
13008
  * Prevent usage of variables from outside the scope of isolated functions.
12988
- * @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
12989
13010
  */
12990
13011
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
12991
13012
  /**
12992
13013
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
12993
- * @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
12994
13015
  */
12995
13016
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
12996
13017
  /**
12997
13018
  * Enforce specifying rules to disable in `eslint-disable` comments.
12998
- * @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
12999
13020
  */
13000
13021
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
13001
13022
  /**
13002
13023
  * Disallow recursive access to `this` within getters and setters.
13003
- * @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
13004
13025
  */
13005
13026
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
13006
13027
  /**
13007
13028
  * Disallow anonymous functions and classes as the default export.
13008
- * @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
13009
13030
  */
13010
13031
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
13011
13032
  /**
13012
13033
  * Prevent passing a function reference directly to iterator methods.
13013
- * @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
13014
13040
  */
13015
- "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
13041
+ "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
13016
13042
  /**
13017
13043
  * Prefer `for…of` over the `forEach` method.
13018
- * @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
13019
13045
  */
13020
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<[]>;
13021
13052
  /**
13022
13053
  * Disallow using the `this` argument in array methods.
13023
- * @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
13024
13055
  */
13025
13056
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
13026
13057
  /**
13027
13058
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
13028
- * @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
13029
13060
  * @deprecated
13030
13061
  */
13031
13062
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
13032
13063
  /**
13033
13064
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
13034
- * @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
13035
13066
  */
13036
13067
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
13037
13068
  /**
13038
13069
  * Prefer `Array#toReversed()` over `Array#reverse()`.
13039
- * @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
13040
13071
  */
13041
13072
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
13042
13073
  /**
13043
13074
  * Prefer `Array#toSorted()` over `Array#sort()`.
13044
- * @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
13045
13076
  */
13046
13077
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
13047
13078
  /**
13048
13079
  * Disallow member access from await expression.
13049
- * @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
13050
13081
  */
13051
13082
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
13052
13083
  /**
13053
13084
  * Disallow using `await` in `Promise` method parameters.
13054
- * @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
13055
13086
  */
13056
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<[]>;
13057
13103
  /**
13058
13104
  * Do not use leading/trailing space between `console.log` parameters.
13059
- * @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
13060
13106
  */
13061
13107
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
13062
13108
  /**
13063
13109
  * Do not use `document.cookie` directly.
13064
- * @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
13065
13111
  */
13066
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<[]>;
13067
13118
  /**
13068
13119
  * Disallow empty files.
13069
- * @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
13070
13126
  */
13071
- "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
13127
+ "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
13072
13128
  /**
13073
13129
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
13074
- * @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
13075
13131
  */
13076
13132
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
13077
13133
  /**
13078
13134
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
13079
- * @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
13080
13136
  */
13081
13137
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
13082
13138
  /**
13083
13139
  * Disallow immediate mutation after variable assignment.
13084
- * @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
13085
13141
  */
13086
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<[]>;
13087
13148
  /**
13088
13149
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
13089
- * @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
13090
13151
  * @deprecated
13091
13152
  */
13092
13153
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
13093
13154
  /**
13094
13155
  * Disallow `instanceof` with built-in objects
13095
- * @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
13096
13157
  */
13097
13158
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
13098
13159
  /**
13099
13160
  * Disallow invalid options in `fetch()` and `new Request()`.
13100
- * @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
13101
13162
  */
13102
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<[]>;
13103
13169
  /**
13104
13170
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
13105
- * @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
13106
13172
  */
13107
13173
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
13108
13174
  /**
13109
13175
  * Disallow identifiers starting with `new` or `class`.
13110
- * @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
13111
13177
  */
13112
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<[]>;
13113
13184
  /**
13114
13185
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
13115
- * @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
13116
13187
  * @deprecated
13117
13188
  */
13118
13189
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
13119
13190
  /**
13120
13191
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
13121
- * @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
13122
13193
  */
13123
13194
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
13124
13195
  /**
13125
13196
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
13126
- * @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
13127
13198
  */
13128
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<[]>;
13129
13205
  /**
13130
13206
  * Disallow named usage of default import and export.
13131
- * @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
13132
13208
  */
13133
13209
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
13134
13210
  /**
13135
13211
  * Disallow negated conditions.
13136
- * @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
13137
13213
  */
13138
13214
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
13139
13215
  /**
13140
13216
  * Disallow negated expression in equality check.
13141
- * @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
13142
13218
  */
13143
13219
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
13144
13220
  /**
13145
13221
  * Disallow nested ternary expressions.
13146
- * @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
13147
13223
  */
13148
13224
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
13149
13225
  /**
13150
13226
  * Disallow `new Array()`.
13151
- * @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
13152
13228
  */
13153
13229
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
13154
13230
  /**
13155
13231
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
13156
- * @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
13157
13233
  */
13158
13234
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
13159
13235
  /**
13160
13236
  * Disallow the use of the `null` literal.
13161
- * @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
13162
13238
  */
13163
13239
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
13164
13240
  /**
13165
13241
  * Disallow the use of objects as default parameters.
13166
- * @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
13167
13243
  */
13168
13244
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
13169
13245
  /**
13170
13246
  * Disallow `process.exit()`.
13171
- * @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
13172
13248
  */
13173
13249
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
13174
13250
  /**
13175
13251
  * Disallow passing single-element arrays to `Promise` methods.
13176
- * @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
13177
13253
  */
13178
13254
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
13179
13255
  /**
13180
13256
  * Disallow classes that only have static members.
13181
- * @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
13182
13258
  */
13183
13259
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
13184
13260
  /**
13185
13261
  * Disallow `then` property.
13186
- * @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
13187
13263
  */
13188
13264
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
13189
13265
  /**
13190
13266
  * Disallow assigning `this` to a variable.
13191
- * @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
13192
13268
  */
13193
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<[]>;
13194
13275
  /**
13195
13276
  * Disallow comparing `undefined` using `typeof`.
13196
- * @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
13197
13278
  */
13198
13279
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
13199
13280
  /**
13200
13281
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
13201
- * @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
13202
13283
  */
13203
13284
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
13204
13285
  /**
13205
13286
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
13206
- * @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
13207
13288
  */
13208
13289
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
13209
13290
  /**
13210
13291
  * Disallow awaiting non-promise values.
13211
- * @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
13212
13293
  */
13213
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<[]>;
13214
13300
  /**
13215
13301
  * Enforce the use of built-in methods instead of unnecessary polyfills.
13216
- * @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
13217
13303
  */
13218
13304
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
13219
13305
  /**
13220
13306
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
13221
- * @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
13222
13308
  */
13223
13309
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
13224
13310
  /**
13225
13311
  * Disallow unreadable array destructuring.
13226
- * @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
13227
13313
  */
13228
13314
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
13229
13315
  /**
13230
13316
  * Disallow unreadable IIFEs.
13231
- * @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
13232
13318
  */
13233
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<[]>;
13234
13325
  /**
13235
13326
  * Disallow unused object properties.
13236
- * @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
13237
13328
  */
13238
13329
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
13239
13330
  /**
13240
13331
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
13241
- * @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
13242
13333
  */
13243
13334
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
13244
13335
  /**
13245
13336
  * Disallow unnecessary `Error.captureStackTrace(…)`.
13246
- * @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
13247
13338
  */
13248
13339
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
13249
13340
  /**
13250
13341
  * Disallow useless fallback when spreading in object literals.
13251
- * @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
13252
13343
  */
13253
13344
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
13254
13345
  /**
13255
13346
  * Disallow unnecessary `.toArray()` on iterators.
13256
- * @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
13257
13348
  */
13258
13349
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
13259
13350
  /**
13260
13351
  * Disallow useless array length check.
13261
- * @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
13262
13353
  */
13263
13354
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
13264
13355
  /**
13265
13356
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
13266
- * @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
13267
13358
  */
13268
13359
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
13269
13360
  /**
13270
13361
  * Disallow unnecessary spread.
13271
- * @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
13272
13363
  */
13273
13364
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
13274
13365
  /**
13275
13366
  * Disallow useless case in switch statements.
13276
- * @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
13277
13368
  */
13278
13369
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
13279
13370
  /**
13280
13371
  * Disallow useless `undefined`.
13281
- * @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
13282
13373
  */
13283
13374
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
13284
13375
  /**
13285
13376
  * Disallow number literals with zero fractions or dangling dots.
13286
- * @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
13287
13378
  */
13288
13379
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
13289
13380
  /**
13290
13381
  * Enforce proper case for numeric literals.
13291
- * @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
13292
13383
  */
13293
13384
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
13294
13385
  /**
13295
13386
  * Enforce the style of numeric separators by correctly grouping digits.
13296
- * @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
13297
13388
  */
13298
13389
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
13299
13390
  /**
13300
13391
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
13301
- * @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
13302
13393
  */
13303
13394
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
13304
13395
  /**
13305
13396
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
13306
- * @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
13307
13398
  */
13308
13399
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
13309
13400
  /**
13310
13401
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
13311
- * @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
13312
13403
  */
13313
13404
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
13314
13405
  /**
13315
13406
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
13316
- * @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
13317
13408
  */
13318
13409
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
13319
13410
  /**
13320
13411
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
13321
- * @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
13322
13413
  */
13323
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<[]>;
13324
13420
  /**
13325
13421
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
13326
- * @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
13327
13423
  */
13328
13424
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
13329
13425
  /**
13330
13426
  * Prefer `.at()` method for index access and `String#charAt()`.
13331
- * @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
13332
13428
  */
13333
13429
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
13334
13430
  /**
13335
13431
  * Prefer `BigInt` literals over the constructor.
13336
- * @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
13337
13433
  */
13338
13434
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
13339
13435
  /**
13340
13436
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
13341
- * @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
13342
13438
  */
13343
13439
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
13344
13440
  /**
13345
13441
  * Prefer class field declarations over `this` assignments in constructors.
13346
- * @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
13347
13443
  */
13348
13444
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
13349
13445
  /**
13350
13446
  * Prefer using `Element#classList.toggle()` to toggle class names.
13351
- * @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
13352
13448
  */
13353
13449
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
13354
13450
  /**
13355
13451
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
13356
- * @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
13357
13453
  */
13358
13454
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
13359
13455
  /**
13360
13456
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
13361
- * @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
13362
13458
  */
13363
13459
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
13364
13460
  /**
13365
13461
  * Prefer default parameters over reassignment.
13366
- * @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
13367
13463
  */
13368
13464
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
13369
13465
  /**
13370
- * Prefer `Node#append()` over `Node#appendChild()`.
13371
- * @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
13372
13468
  */
13373
13469
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
13374
13470
  /**
13375
- * Prefer using `.dataset` on DOM elements over calling attribute methods.
13376
- * @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
13377
13474
  */
13378
13475
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
13379
13476
  /**
13380
13477
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
13381
- * @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
13382
13479
  */
13383
13480
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
13384
13481
  /**
13385
13482
  * Prefer `.textContent` over `.innerText`.
13386
- * @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
13387
13484
  */
13388
13485
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
13389
13486
  /**
13390
13487
  * Prefer `EventTarget` over `EventEmitter`.
13391
- * @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
13392
13489
  */
13393
13490
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
13394
13491
  /**
13395
13492
  * Prefer `export…from` when re-exporting.
13396
- * @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
13397
13494
  */
13398
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<[]>;
13399
13501
  /**
13400
13502
  * Prefer `globalThis` over `window`, `self`, and `global`.
13401
- * @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
13402
13504
  */
13403
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<[]>;
13404
13511
  /**
13405
13512
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
13406
- * @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
13407
13514
  */
13408
13515
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
13409
13516
  /**
13410
13517
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
13411
- * @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
13412
13519
  */
13413
13520
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
13414
13521
  /**
13415
- * Prefer reading a JSON file as a buffer.
13416
- * @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
13417
13540
  */
13418
13541
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
13419
13542
  /**
13420
- * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
13421
- * @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
13422
13545
  */
13423
13546
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
13424
13547
  /**
13425
13548
  * Prefer using a logical operator over a ternary.
13426
- * @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
13427
13550
  */
13428
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<[]>;
13429
13557
  /**
13430
13558
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
13431
- * @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
13432
13560
  */
13433
13561
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
13434
13562
  /**
13435
13563
  * Enforce the use of `Math.trunc` instead of bitwise operators.
13436
- * @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
13437
13565
  */
13438
13566
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
13439
13567
  /**
13440
13568
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
13441
- * @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
13442
13570
  */
13443
13571
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
13444
13572
  /**
13445
13573
  * Prefer modern `Math` APIs over legacy patterns.
13446
- * @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
13447
13575
  */
13448
13576
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
13449
13577
  /**
13450
13578
  * Prefer JavaScript modules (ESM) over CommonJS.
13451
- * @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
13452
13580
  */
13453
13581
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
13454
13582
  /**
13455
13583
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
13456
- * @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
13457
13585
  */
13458
13586
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
13459
13587
  /**
13460
13588
  * Prefer negative index over `.length - index` when possible.
13461
- * @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
13462
13590
  */
13463
13591
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
13464
13592
  /**
13465
13593
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
13466
- * @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
13467
13595
  */
13468
13596
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
13469
13597
  /**
13470
13598
  * Prefer `Number` static properties over global ones.
13471
- * @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
13472
13600
  */
13473
13601
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
13474
13602
  /**
13475
13603
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
13476
- * @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
13477
13605
  */
13478
13606
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
13479
13607
  /**
13480
13608
  * Prefer omitting the `catch` binding parameter.
13481
- * @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
13482
13610
  */
13483
13611
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
13484
13612
  /**
13485
13613
  * Prefer borrowing methods from the prototype instead of the instance.
13486
- * @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
13487
13615
  */
13488
13616
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
13489
13617
  /**
13490
- * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
13491
- * @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
13492
13625
  */
13493
- "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
13626
+ "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
13494
13627
  /**
13495
13628
  * Prefer `Reflect.apply()` over `Function#apply()`.
13496
- * @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
13497
13630
  */
13498
13631
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
13499
13632
  /**
13500
13633
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
13501
- * @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
13502
13635
  */
13503
13636
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
13504
13637
  /**
13505
13638
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
13506
- * @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
13507
13640
  */
13508
13641
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
13509
13642
  /**
13510
13643
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
13511
- * @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
13512
13645
  */
13513
- "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
13646
+ "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
13514
13647
  /**
13515
13648
  * Prefer using `Set#size` instead of `Array#length`.
13516
- * @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
13517
13650
  */
13518
13651
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
13519
13652
  /**
13520
13653
  * Prefer simple conditions first in logical expressions.
13521
- * @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
13522
13655
  */
13523
13656
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
13524
13657
  /**
13525
- * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13526
- * @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
13527
13660
  */
13528
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<[]>;
13529
13667
  /**
13530
13668
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
13531
- * @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
13532
13670
  */
13533
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<[]>;
13534
13682
  /**
13535
13683
  * Prefer using the `String.raw` tag to avoid escaping `\`.
13536
- * @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
13537
13685
  */
13538
13686
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
13539
13687
  /**
13540
- * Prefer `String#replaceAll()` over regex searches with the global flag.
13541
- * @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
13542
13695
  */
13543
13696
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
13544
13697
  /**
13545
13698
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
13546
- * @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
13547
13700
  */
13548
13701
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
13549
13702
  /**
13550
13703
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
13551
- * @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
13552
13705
  */
13553
13706
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
13554
13707
  /**
13555
13708
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
13556
- * @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
13557
13710
  */
13558
13711
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
13559
13712
  /**
13560
13713
  * Prefer using `structuredClone` to create a deep clone.
13561
- * @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
13562
13715
  */
13563
13716
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13564
13717
  /**
13565
13718
  * Prefer `switch` over multiple `else-if`.
13566
- * @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
13567
13720
  */
13568
13721
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
13569
13722
  /**
13570
13723
  * Prefer ternary expressions over simple `if-else` statements.
13571
- * @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
13572
13725
  */
13573
13726
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
13574
13727
  /**
13575
13728
  * Prefer top-level await over top-level promises and async function calls.
13576
- * @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
13577
13730
  */
13578
13731
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
13579
13732
  /**
13580
13733
  * Enforce throwing `TypeError` in type checking conditions.
13581
- * @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
13582
13735
  */
13583
13736
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
13584
13737
  /**
13585
13738
  * Prevent abbreviations.
13586
- * @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
13587
13740
  */
13588
13741
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
13589
13742
  /**
13590
13743
  * Enforce consistent relative URL style.
13591
- * @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
13592
13745
  */
13593
13746
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13594
13747
  /**
13595
13748
  * Enforce using the separator argument with `Array#join()`.
13596
- * @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
13597
13750
  */
13598
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>;
13599
13757
  /**
13600
13758
  * Require non-empty module attributes for imports and exports
13601
- * @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
13602
13760
  */
13603
13761
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
13604
13762
  /**
13605
13763
  * Require non-empty specifier list in import and export statements.
13606
- * @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
13607
13765
  */
13608
13766
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
13609
13767
  /**
13610
13768
  * Enforce using the digits argument with `Number#toFixed()`.
13611
- * @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
13612
13770
  */
13613
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<[]>;
13614
13777
  /**
13615
13778
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
13616
- * @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
13617
13780
  */
13618
13781
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
13619
13782
  /**
13620
13783
  * Enforce better string content.
13621
- * @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
13622
13785
  */
13623
13786
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
13624
13787
  /**
13625
13788
  * Enforce consistent brace style for `case` clauses.
13626
- * @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
13627
13790
  */
13628
13791
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13629
13792
  /**
13630
13793
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
13631
- * @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
13632
13795
  */
13633
13796
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
13634
13797
  /**
13635
13798
  * Fix whitespace-insensitive template indentation.
13636
- * @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
13637
13800
  */
13638
13801
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
13639
13802
  /**
13640
13803
  * Enforce consistent case for text encoding identifiers.
13641
- * @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
13642
13805
  */
13643
13806
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13644
13807
  /**
13645
13808
  * Require `new` when creating an error.
13646
- * @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
13647
13810
  */
13648
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>;
13649
13817
  }
13650
13818
  /* ======= Declarations ======= */
13651
- // ----- unicorn/better-regex -----
13652
- type UnicornBetterRegex = [] | [{
13653
- sortCharacterClasses?: boolean;
13654
- }]; // ----- unicorn/catch-error-name -----
13819
+ // ----- unicorn/catch-error-name -----
13655
13820
  type UnicornCatchErrorName = [] | [{
13656
13821
  name?: string;
13657
13822
  ignore?: unknown[];
13658
- }]; // ----- 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 -----
13659
13840
  type UnicornConsistentFunctionScoping = [] | [{
13660
13841
  checkArrowFunctions?: boolean;
13842
+ }]; // ----- unicorn/consistent-json-file-read -----
13843
+ type UnicornConsistentJsonFileRead = [] | ["string" | "buffer"]; // ----- unicorn/dom-node-dataset -----
13844
+ type UnicornDomNodeDataset = [] | [{
13845
+ preferAttributes?: boolean;
13661
13846
  }]; // ----- unicorn/escape-case -----
13662
13847
  type UnicornEscapeCase = [] | ["uppercase" | "lowercase"]; // ----- unicorn/expiring-todo-comments -----
13663
13848
  type UnicornExpiringTodoComments = [] | [{
13664
13849
  terms?: string[];
13665
13850
  ignore?: unknown[];
13666
- ignoreDates?: boolean;
13667
- ignoreDatesOnPullRequests?: boolean;
13851
+ checkDates?: boolean;
13852
+ checkDatesOnPullRequests?: boolean;
13668
13853
  allowWarningComments?: boolean;
13669
13854
  date?: string;
13670
13855
  }]; // ----- unicorn/explicit-length-check -----
@@ -13675,6 +13860,7 @@ type UnicornFilenameCase = [] | [{
13675
13860
  case?: "camelCase" | "snakeCase" | "kebabCase" | "pascalCase";
13676
13861
  ignore?: unknown[];
13677
13862
  multipleFileExtensions?: boolean;
13863
+ checkDirectories?: boolean;
13678
13864
  } | {
13679
13865
  cases?: {
13680
13866
  camelCase?: boolean;
@@ -13684,6 +13870,7 @@ type UnicornFilenameCase = [] | [{
13684
13870
  };
13685
13871
  ignore?: unknown[];
13686
13872
  multipleFileExtensions?: boolean;
13873
+ checkDirectories?: boolean;
13687
13874
  }]; // ----- unicorn/import-style -----
13688
13875
  type UnicornImportStyle = [] | [{
13689
13876
  checkImport?: boolean;
@@ -13707,6 +13894,9 @@ type UnicornIsolatedFunctions = [] | [{
13707
13894
  functions?: string[];
13708
13895
  selectors?: string[];
13709
13896
  comments?: string[];
13897
+ }]; // ----- unicorn/no-array-callback-reference -----
13898
+ type UnicornNoArrayCallbackReference = [] | [{
13899
+ ignore?: string[];
13710
13900
  }]; // ----- unicorn/no-array-reduce -----
13711
13901
  type UnicornNoArrayReduce = [] | [{
13712
13902
  allowSimpleOperations?: boolean;
@@ -13716,6 +13906,9 @@ type UnicornNoArrayReverse = [] | [{
13716
13906
  }]; // ----- unicorn/no-array-sort -----
13717
13907
  type UnicornNoArraySort = [] | [{
13718
13908
  allowExpressionStatement?: boolean;
13909
+ }]; // ----- unicorn/no-empty-file -----
13910
+ type UnicornNoEmptyFile = [] | [{
13911
+ allowComments?: boolean;
13719
13912
  }]; // ----- unicorn/no-instanceof-builtins -----
13720
13913
  type UnicornNoInstanceofBuiltins = [] | [{
13721
13914
  useErrorIsError?: boolean;
@@ -13729,13 +13922,14 @@ type UnicornNoKeywordPrefix = [] | [{
13729
13922
  onlyCamelCase?: boolean;
13730
13923
  }]; // ----- unicorn/no-null -----
13731
13924
  type UnicornNoNull = [] | [{
13925
+ checkArguments?: boolean;
13732
13926
  checkStrictEquality?: boolean;
13733
13927
  }]; // ----- unicorn/no-typeof-undefined -----
13734
13928
  type UnicornNoTypeofUndefined = [] | [{
13735
13929
  checkGlobalVariables?: boolean;
13736
13930
  }]; // ----- unicorn/no-unnecessary-polyfills -----
13737
13931
  type UnicornNoUnnecessaryPolyfills = [] | [{
13738
- targets: string | unknown[] | {
13932
+ targets?: string | unknown[] | {
13739
13933
  [k: string]: unknown | undefined;
13740
13934
  };
13741
13935
  }]; // ----- unicorn/no-useless-undefined -----
@@ -13766,6 +13960,7 @@ type UnicornNumericSeparatorsStyle = [] | [{
13766
13960
  onlyIfContainsSeparator?: boolean;
13767
13961
  minimumDigits?: number;
13768
13962
  groupLength?: number;
13963
+ fractionGroupLength?: number;
13769
13964
  };
13770
13965
  onlyIfContainsSeparator?: boolean;
13771
13966
  }]; // ----- unicorn/prefer-add-event-listener -----
@@ -13783,7 +13978,10 @@ type UnicornPreferAt = [] | [{
13783
13978
  checkAllIndexAccess?: boolean;
13784
13979
  }]; // ----- unicorn/prefer-export-from -----
13785
13980
  type UnicornPreferExportFrom = [] | [{
13786
- ignoreUsedVariables?: boolean;
13981
+ checkUsedVariables?: boolean;
13982
+ }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
13983
+ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
13984
+ minimumComparisons?: number;
13787
13985
  }]; // ----- unicorn/prefer-number-properties -----
13788
13986
  type UnicornPreferNumberProperties = [] | [{
13789
13987
  checkInfinity?: boolean;
@@ -13791,9 +13989,22 @@ type UnicornPreferNumberProperties = [] | [{
13791
13989
  }]; // ----- unicorn/prefer-object-from-entries -----
13792
13990
  type UnicornPreferObjectFromEntries = [] | [{
13793
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;
13794
14002
  }]; // ----- unicorn/prefer-single-call -----
13795
14003
  type UnicornPreferSingleCall = [] | [{
13796
14004
  ignore?: unknown[];
14005
+ }]; // ----- unicorn/prefer-string-repeat -----
14006
+ type UnicornPreferStringRepeat = [] | [{
14007
+ minimumRepetitions?: number;
13797
14008
  }]; // ----- unicorn/prefer-structured-clone -----
13798
14009
  type UnicornPreferStructuredClone = [] | [{
13799
14010
  functions?: unknown[];
@@ -13826,15 +14037,20 @@ interface _UnicornPreventAbbreviations_BooleanObject {
13826
14037
  interface _UnicornPreventAbbreviations_BooleanObject {
13827
14038
  [k: string]: boolean | undefined;
13828
14039
  } // ----- unicorn/relative-url-style -----
13829
- 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 -----
13830
14044
  type UnicornStringContent = [] | [{
13831
14045
  patterns?: {
13832
14046
  [k: string]: (string | {
13833
14047
  suggest: string;
13834
14048
  fix?: boolean;
14049
+ caseSensitive?: boolean;
13835
14050
  message?: string;
13836
14051
  }) | undefined;
13837
14052
  };
14053
+ selectors?: string[];
13838
14054
  }]; // ----- unicorn/switch-case-braces -----
13839
14055
  type UnicornSwitchCaseBraces = [] | ["always" | "avoid"]; // ----- unicorn/template-indent -----
13840
14056
  type UnicornTemplateIndent = [] | [{
@@ -13846,6 +14062,9 @@ type UnicornTemplateIndent = [] | [{
13846
14062
  }]; // ----- unicorn/text-encoding-identifier-case -----
13847
14063
  type UnicornTextEncodingIdentifierCase = [] | [{
13848
14064
  withDash?: boolean;
14065
+ }]; // ----- unicorn/try-complexity -----
14066
+ type UnicornTryComplexity = [] | [{
14067
+ max?: number;
13849
14068
  }];
13850
14069
  //#endregion
13851
14070
  //#region src/_generated/dts/vitest.d.ts