@jsse/eslint-config 0.7.7 → 0.7.9

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.9";
18
18
  //#endregion
19
19
  //#region src/_generated/dts/builtins.d.ts
20
20
  interface BuiltinsRuleOptions {
@@ -12899,791 +12899,1389 @@ 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/v66.0.0/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/v66.0.0/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/v66.0.0/docs/rules/catch-error-name.md
12909
12915
  */
12910
12916
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
12917
+ /**
12918
+ * Enforce consistent class references in static methods.
12919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/class-reference-in-static-methods.md
12920
+ */
12921
+ "unicorn/class-reference-in-static-methods"?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
12922
+ /**
12923
+ * Enforce better comment content.
12924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/comment-content.md
12925
+ */
12926
+ "unicorn/comment-content"?: Linter.RuleEntry<UnicornCommentContent>;
12911
12927
  /**
12912
12928
  * 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
12929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-assert.md
12914
12930
  */
12915
12931
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
12932
+ /**
12933
+ * Enforce consistent class member order.
12934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-class-member-order.md
12935
+ */
12936
+ "unicorn/consistent-class-member-order"?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
12937
+ /**
12938
+ * Enforce consistent spelling of compound words in identifiers.
12939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-compound-words.md
12940
+ */
12941
+ "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
12916
12942
  /**
12917
12943
  * 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
12944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-date-clone.md
12919
12945
  */
12920
12946
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
12921
12947
  /**
12922
12948
  * Use destructured variables over properties.
12923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
12949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-destructuring.md
12924
12950
  */
12925
12951
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
12926
12952
  /**
12927
12953
  * 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
12954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-empty-array-spread.md
12929
12955
  */
12930
12956
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
12931
12957
  /**
12932
12958
  * 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
12959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-existence-index-check.md
12934
12960
  */
12935
12961
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
12962
+ /**
12963
+ * Enforce consistent decorator position on exported classes.
12964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-export-decorator-position.md
12965
+ */
12966
+ "unicorn/consistent-export-decorator-position"?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
12936
12967
  /**
12937
12968
  * 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
12969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-function-scoping.md
12939
12970
  */
12940
12971
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
12972
+ /**
12973
+ * Enforce function syntax by role.
12974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-function-style.md
12975
+ */
12976
+ "unicorn/consistent-function-style"?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
12977
+ /**
12978
+ * Enforce consistent JSON file reads before `JSON.parse()`.
12979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-json-file-read.md
12980
+ */
12981
+ "unicorn/consistent-json-file-read"?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
12982
+ /**
12983
+ * Enforce consistent optional chaining for same-base member access.
12984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-optional-chaining.md
12985
+ */
12986
+ "unicorn/consistent-optional-chaining"?: Linter.RuleEntry<[]>;
12941
12987
  /**
12942
12988
  * 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
12989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-template-literal-escape.md
12944
12990
  */
12945
12991
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
12946
12992
  /**
12947
12993
  * Enforce correct `Error` subclassing.
12948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
12994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/custom-error-definition.md
12949
12995
  */
12950
12996
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
12997
+ /**
12998
+ * Enforce consistent style for DOM element dataset access.
12999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/dom-node-dataset.md
13000
+ */
13001
+ "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
12951
13002
  /**
12952
13003
  * Enforce no spaces between braces.
12953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
13004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/empty-brace-spaces.md
12954
13005
  */
12955
13006
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
12956
13007
  /**
12957
13008
  * 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
13009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/error-message.md
12959
13010
  */
12960
13011
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
12961
13012
  /**
12962
13013
  * 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
13014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/escape-case.md
12964
13015
  */
12965
13016
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
12966
13017
  /**
12967
13018
  * 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
13019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/expiring-todo-comments.md
12969
13020
  */
12970
13021
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
12971
13022
  /**
12972
13023
  * 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
13024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/explicit-length-check.md
12974
13025
  */
12975
13026
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
12976
13027
  /**
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
13028
+ * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
13029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/explicit-timer-delay.md
13030
+ */
13031
+ "unicorn/explicit-timer-delay"?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
13032
+ /**
13033
+ * Enforce a case style for filenames and directory names.
13034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/filename-case.md
12979
13035
  */
12980
13036
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
13037
+ /**
13038
+ * Require identifiers to match a specified regular expression.
13039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/id-match.md
13040
+ */
13041
+ "unicorn/id-match"?: Linter.RuleEntry<UnicornIdMatch>;
12981
13042
  /**
12982
13043
  * Enforce specific import styles per module.
12983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
13044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/import-style.md
12984
13045
  */
12985
13046
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
12986
13047
  /**
12987
13048
  * 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
13049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/isolated-functions.md
12989
13050
  */
12990
13051
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
13052
+ /**
13053
+ * Limit the depth of nested calls.
13054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/max-nested-calls.md
13055
+ */
13056
+ "unicorn/max-nested-calls"?: Linter.RuleEntry<UnicornMaxNestedCalls>;
12991
13057
  /**
12992
13058
  * 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
13059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/new-for-builtins.md
12994
13060
  */
12995
13061
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
12996
13062
  /**
12997
13063
  * 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
13064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-abusive-eslint-disable.md
12999
13065
  */
13000
13066
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
13001
13067
  /**
13002
13068
  * 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
13069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-accessor-recursion.md
13004
13070
  */
13005
13071
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
13006
13072
  /**
13007
13073
  * 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
13074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-anonymous-default-export.md
13009
13075
  */
13010
13076
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
13011
13077
  /**
13012
13078
  * 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
13079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-callback-reference.md
13014
13080
  */
13015
- "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
13081
+ "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
13016
13082
  /**
13017
- * 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
13083
+ * Disallow using reference values as `Array#fill()` values.
13084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-fill-with-reference-type.md
13019
13085
  */
13020
- "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
13086
+ "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
13087
+ /**
13088
+ * Disallow `.fill()` after `Array.from({length: …})`.
13089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-from-fill.md
13090
+ */
13091
+ "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
13021
13092
  /**
13022
13093
  * 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
13094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-method-this-argument.md
13024
13095
  */
13025
13096
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
13026
13097
  /**
13027
13098
  * 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
13099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
13029
13100
  * @deprecated
13030
13101
  */
13031
13102
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
13032
13103
  /**
13033
13104
  * 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
13105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-reduce.md
13035
13106
  */
13036
13107
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
13037
13108
  /**
13038
13109
  * 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
13110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-reverse.md
13040
13111
  */
13041
13112
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
13042
13113
  /**
13043
13114
  * 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
13115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-sort.md
13045
13116
  */
13046
13117
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
13118
+ /**
13119
+ * Disallow asterisk prefixes in documentation comments.
13120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
13121
+ */
13122
+ "unicorn/no-asterisk-prefix-in-documentation-comments"?: Linter.RuleEntry<[]>;
13047
13123
  /**
13048
13124
  * 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
13125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-await-expression-member.md
13050
13126
  */
13051
13127
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
13052
13128
  /**
13053
13129
  * 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
13130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-await-in-promise-methods.md
13055
13131
  */
13056
13132
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
13133
+ /**
13134
+ * Disallow unnecessary `Blob` to `File` conversion.
13135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-blob-to-file.md
13136
+ */
13137
+ "unicorn/no-blob-to-file"?: Linter.RuleEntry<[]>;
13138
+ /**
13139
+ * Disallow `break` and `continue` in nested loops and switches inside loops.
13140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-break-in-nested-loop.md
13141
+ */
13142
+ "unicorn/no-break-in-nested-loop"?: Linter.RuleEntry<[]>;
13143
+ /**
13144
+ * Prefer drawing canvases directly instead of converting them to images.
13145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-canvas-to-image.md
13146
+ */
13147
+ "unicorn/no-canvas-to-image"?: Linter.RuleEntry<[]>;
13148
+ /**
13149
+ * Disallow dynamic object property existence checks.
13150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-computed-property-existence-check.md
13151
+ */
13152
+ "unicorn/no-computed-property-existence-check"?: Linter.RuleEntry<[]>;
13153
+ /**
13154
+ * Disallow confusing uses of `Array#{splice,toSpliced}()`.
13155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-confusing-array-splice.md
13156
+ */
13157
+ "unicorn/no-confusing-array-splice"?: Linter.RuleEntry<[]>;
13158
+ /**
13159
+ * Disallow confusing uses of `Array#with()`.
13160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-confusing-array-with.md
13161
+ */
13162
+ "unicorn/no-confusing-array-with"?: Linter.RuleEntry<[]>;
13057
13163
  /**
13058
13164
  * 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
13165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-console-spaces.md
13060
13166
  */
13061
13167
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
13168
+ /**
13169
+ * Disallow declarations before conditional early exits when they are only used after the exit.
13170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-declarations-before-early-exit.md
13171
+ */
13172
+ "unicorn/no-declarations-before-early-exit"?: Linter.RuleEntry<[]>;
13062
13173
  /**
13063
13174
  * 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
13175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-document-cookie.md
13065
13176
  */
13066
13177
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
13178
+ /**
13179
+ * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
13180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-duplicate-loops.md
13181
+ */
13182
+ "unicorn/no-duplicate-loops"?: Linter.RuleEntry<[]>;
13183
+ /**
13184
+ * Disallow duplicate values in `Set` constructor array literals.
13185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-duplicate-set-values.md
13186
+ */
13187
+ "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
13067
13188
  /**
13068
13189
  * Disallow empty files.
13069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
13190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-empty-file.md
13191
+ */
13192
+ "unicorn/no-empty-file"?: Linter.RuleEntry<UnicornNoEmptyFile>;
13193
+ /**
13194
+ * Disallow assigning to built-in error properties.
13195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-error-property-assignment.md
13196
+ */
13197
+ "unicorn/no-error-property-assignment"?: Linter.RuleEntry<[]>;
13198
+ /**
13199
+ * Disallow exports in scripts.
13200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-exports-in-scripts.md
13070
13201
  */
13071
- "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
13202
+ "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
13203
+ /**
13204
+ * Prefer `for…of` over the `forEach` method.
13205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-for-each.md
13206
+ */
13207
+ "unicorn/no-for-each"?: Linter.RuleEntry<[]>;
13072
13208
  /**
13073
13209
  * 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
13210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-for-loop.md
13075
13211
  */
13076
13212
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
13077
13213
  /**
13078
- * 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
13214
+ * Disallow assigning properties on the global object.
13215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-global-object-property-assignment.md
13216
+ */
13217
+ "unicorn/no-global-object-property-assignment"?: Linter.RuleEntry<[]>;
13218
+ /**
13219
+ * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
13220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
13221
+ * @deprecated
13080
13222
  */
13081
13223
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
13082
13224
  /**
13083
13225
  * 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
13226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-immediate-mutation.md
13085
13227
  */
13086
13228
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
13229
+ /**
13230
+ * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
13231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-incorrect-query-selector.md
13232
+ */
13233
+ "unicorn/no-incorrect-query-selector"?: Linter.RuleEntry<[]>;
13234
+ /**
13235
+ * Disallow incorrect template literal interpolation syntax.
13236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-incorrect-template-string-interpolation.md
13237
+ */
13238
+ "unicorn/no-incorrect-template-string-interpolation"?: Linter.RuleEntry<[]>;
13087
13239
  /**
13088
13240
  * 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
13241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
13090
13242
  * @deprecated
13091
13243
  */
13092
13244
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
13093
13245
  /**
13094
13246
  * 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
13247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-instanceof-builtins.md
13096
13248
  */
13097
13249
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
13250
+ /**
13251
+ * Disallow calling functions with an invalid number of arguments.
13252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-argument-count.md
13253
+ */
13254
+ "unicorn/no-invalid-argument-count"?: Linter.RuleEntry<[]>;
13098
13255
  /**
13099
13256
  * 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
13257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-fetch-options.md
13101
13258
  */
13102
13259
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
13260
+ /**
13261
+ * Disallow invalid `accept` values on file inputs.
13262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-file-input-accept.md
13263
+ */
13264
+ "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
13103
13265
  /**
13104
13266
  * 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
13267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-remove-event-listener.md
13106
13268
  */
13107
13269
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
13108
13270
  /**
13109
13271
  * 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
13272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-keyword-prefix.md
13111
13273
  */
13112
13274
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
13275
+ /**
13276
+ * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
13277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-late-current-target-access.md
13278
+ */
13279
+ "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
13113
13280
  /**
13114
13281
  * 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
13282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
13116
13283
  * @deprecated
13117
13284
  */
13118
13285
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
13119
13286
  /**
13120
13287
  * 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
13288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-lonely-if.md
13122
13289
  */
13123
13290
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
13124
13291
  /**
13125
13292
  * 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
13293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-magic-array-flat-depth.md
13127
13294
  */
13128
13295
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
13296
+ /**
13297
+ * Disallow manually wrapped comments.
13298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-manually-wrapped-comments.md
13299
+ */
13300
+ "unicorn/no-manually-wrapped-comments"?: Linter.RuleEntry<[]>;
13301
+ /**
13302
+ * Disallow checking a Map key before accessing a different key.
13303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-mismatched-map-key.md
13304
+ */
13305
+ "unicorn/no-mismatched-map-key"?: Linter.RuleEntry<[]>;
13129
13306
  /**
13130
13307
  * 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
13308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-named-default.md
13132
13309
  */
13133
13310
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
13311
+ /**
13312
+ * Disallow negated array predicate calls.
13313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negated-array-predicate.md
13314
+ */
13315
+ "unicorn/no-negated-array-predicate"?: Linter.RuleEntry<[]>;
13316
+ /**
13317
+ * Disallow negated comparisons.
13318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negated-comparison.md
13319
+ */
13320
+ "unicorn/no-negated-comparison"?: Linter.RuleEntry<UnicornNoNegatedComparison>;
13134
13321
  /**
13135
13322
  * Disallow negated conditions.
13136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
13323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negated-condition.md
13137
13324
  */
13138
13325
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
13139
13326
  /**
13140
13327
  * 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
13328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-negation-in-equality-check.md
13142
13329
  */
13143
13330
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
13144
13331
  /**
13145
13332
  * Disallow nested ternary expressions.
13146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
13333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-nested-ternary.md
13147
13334
  */
13148
13335
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
13149
13336
  /**
13150
13337
  * Disallow `new Array()`.
13151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
13338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-new-array.md
13152
13339
  */
13153
13340
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
13154
13341
  /**
13155
13342
  * 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
13343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-new-buffer.md
13157
13344
  */
13158
13345
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
13159
13346
  /**
13160
13347
  * 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
13348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-null.md
13162
13349
  */
13163
13350
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
13164
13351
  /**
13165
13352
  * 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
13353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-object-as-default-parameter.md
13167
13354
  */
13168
13355
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
13356
+ /**
13357
+ * Disallow `Object` methods with `Map` or `Set`.
13358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-object-methods-with-collections.md
13359
+ */
13360
+ "unicorn/no-object-methods-with-collections"?: Linter.RuleEntry<[]>;
13361
+ /**
13362
+ * Disallow optional chaining on undeclared variables.
13363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
13364
+ */
13365
+ "unicorn/no-optional-chaining-on-undeclared-variable"?: Linter.RuleEntry<[]>;
13169
13366
  /**
13170
13367
  * Disallow `process.exit()`.
13171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
13368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-process-exit.md
13172
13369
  */
13173
13370
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
13371
+ /**
13372
+ * Disallow comparisons made redundant by an equality check in the same logical AND.
13373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-redundant-comparison.md
13374
+ */
13375
+ "unicorn/no-redundant-comparison"?: Linter.RuleEntry<[]>;
13376
+ /**
13377
+ * Disallow returning the result of `Array#push()` with arguments.
13378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-return-array-push.md
13379
+ */
13380
+ "unicorn/no-return-array-push"?: Linter.RuleEntry<[]>;
13174
13381
  /**
13175
13382
  * 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
13383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-single-promise-in-promise-methods.md
13177
13384
  */
13178
13385
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
13179
13386
  /**
13180
13387
  * 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
13388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-static-only-class.md
13182
13389
  */
13183
13390
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
13391
+ /**
13392
+ * Prefer comparing values directly over subtracting and comparing to `0`.
13393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-subtraction-comparison.md
13394
+ */
13395
+ "unicorn/no-subtraction-comparison"?: Linter.RuleEntry<[]>;
13184
13396
  /**
13185
13397
  * Disallow `then` property.
13186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
13398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-thenable.md
13187
13399
  */
13188
13400
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
13189
13401
  /**
13190
13402
  * 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
13403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-this-assignment.md
13192
13404
  */
13193
13405
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
13406
+ /**
13407
+ * Disallow `this` outside of classes.
13408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-this-outside-of-class.md
13409
+ */
13410
+ "unicorn/no-this-outside-of-class"?: Linter.RuleEntry<[]>;
13411
+ /**
13412
+ * Disallow top-level side effects in exported modules.
13413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-top-level-side-effects.md
13414
+ */
13415
+ "unicorn/no-top-level-side-effects"?: Linter.RuleEntry<[]>;
13194
13416
  /**
13195
13417
  * Disallow comparing `undefined` using `typeof`.
13196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
13418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-typeof-undefined.md
13197
13419
  */
13198
13420
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
13421
+ /**
13422
+ * Require class members to be declared.
13423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-undeclared-class-members.md
13424
+ */
13425
+ "unicorn/no-undeclared-class-members"?: Linter.RuleEntry<[]>;
13199
13426
  /**
13200
13427
  * 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
13428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-array-flat-depth.md
13202
13429
  */
13203
13430
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
13204
13431
  /**
13205
13432
  * 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
13433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-array-splice-count.md
13207
13434
  */
13208
13435
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
13209
13436
  /**
13210
13437
  * Disallow awaiting non-promise values.
13211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
13438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-await.md
13212
13439
  */
13213
13440
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
13441
+ /**
13442
+ * Disallow unnecessary `globalThis` references.
13443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-global-this.md
13444
+ */
13445
+ "unicorn/no-unnecessary-global-this"?: Linter.RuleEntry<[]>;
13446
+ /**
13447
+ * Disallow unnecessary nested ternary expressions.
13448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-nested-ternary.md
13449
+ */
13450
+ "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
13214
13451
  /**
13215
13452
  * 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
13453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-polyfills.md
13217
13454
  */
13218
13455
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
13219
13456
  /**
13220
13457
  * 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
13458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-slice-end.md
13222
13459
  */
13223
13460
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
13461
+ /**
13462
+ * Disallow `Array#splice()` when simpler alternatives exist.
13463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-splice.md
13464
+ */
13465
+ "unicorn/no-unnecessary-splice"?: Linter.RuleEntry<[]>;
13224
13466
  /**
13225
13467
  * Disallow unreadable array destructuring.
13226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
13468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-array-destructuring.md
13227
13469
  */
13228
- "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
13470
+ "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
13229
13471
  /**
13230
13472
  * Disallow unreadable IIFEs.
13231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
13473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-iife.md
13232
13474
  */
13233
13475
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
13476
+ /**
13477
+ * Disallow unreadable `new` expressions.
13478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-new-expression.md
13479
+ */
13480
+ "unicorn/no-unreadable-new-expression"?: Linter.RuleEntry<[]>;
13481
+ /**
13482
+ * Disallow unreadable object destructuring.
13483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unreadable-object-destructuring.md
13484
+ */
13485
+ "unicorn/no-unreadable-object-destructuring"?: Linter.RuleEntry<[]>;
13486
+ /**
13487
+ * Prevent unsafe use of ArrayBuffer view `.buffer`.
13488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-buffer-conversion.md
13489
+ */
13490
+ "unicorn/no-unsafe-buffer-conversion"?: Linter.RuleEntry<[]>;
13491
+ /**
13492
+ * Disallow unsafe DOM HTML APIs.
13493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-dom-html.md
13494
+ */
13495
+ "unicorn/no-unsafe-dom-html"?: Linter.RuleEntry<[]>;
13496
+ /**
13497
+ * Disallow unsafe values as property keys.
13498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-property-key.md
13499
+ */
13500
+ "unicorn/no-unsafe-property-key"?: Linter.RuleEntry<[]>;
13501
+ /**
13502
+ * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
13503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unsafe-string-replacement.md
13504
+ */
13505
+ "unicorn/no-unsafe-string-replacement"?: Linter.RuleEntry<[]>;
13506
+ /**
13507
+ * Disallow ignoring the return value of selected array methods.
13508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unused-array-method-return.md
13509
+ */
13510
+ "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
13234
13511
  /**
13235
13512
  * Disallow unused object properties.
13236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
13513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unused-properties.md
13237
13514
  */
13238
13515
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
13516
+ /**
13517
+ * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
13518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-boolean-cast.md
13519
+ */
13520
+ "unicorn/no-useless-boolean-cast"?: Linter.RuleEntry<[]>;
13239
13521
  /**
13240
13522
  * 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
13523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-collection-argument.md
13242
13524
  */
13243
13525
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
13526
+ /**
13527
+ * Disallow useless concatenation of literals.
13528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-concat.md
13529
+ */
13530
+ "unicorn/no-useless-concat"?: Linter.RuleEntry<[]>;
13531
+ /**
13532
+ * Disallow `else` after a statement that exits.
13533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-else.md
13534
+ */
13535
+ "unicorn/no-useless-else"?: Linter.RuleEntry<[]>;
13244
13536
  /**
13245
13537
  * 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
13538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-error-capture-stack-trace.md
13247
13539
  */
13248
13540
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
13249
13541
  /**
13250
13542
  * 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
13543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-fallback-in-spread.md
13252
13544
  */
13253
13545
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
13254
13546
  /**
13255
13547
  * 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
13548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-iterator-to-array.md
13257
13549
  */
13258
13550
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
13259
13551
  /**
13260
13552
  * 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
13553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-length-check.md
13262
13554
  */
13263
13555
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
13264
13556
  /**
13265
13557
  * 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
13558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-promise-resolve-reject.md
13267
13559
  */
13268
13560
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
13561
+ /**
13562
+ * Disallow simple recursive function calls that can be replaced with a loop.
13563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-recursion.md
13564
+ */
13565
+ "unicorn/no-useless-recursion"?: Linter.RuleEntry<[]>;
13269
13566
  /**
13270
13567
  * Disallow unnecessary spread.
13271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
13568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-spread.md
13272
13569
  */
13273
13570
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
13274
13571
  /**
13275
13572
  * 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
13573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-switch-case.md
13277
13574
  */
13278
13575
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
13576
+ /**
13577
+ * Disallow useless template literal expressions.
13578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-template-literals.md
13579
+ */
13580
+ "unicorn/no-useless-template-literals"?: Linter.RuleEntry<[]>;
13279
13581
  /**
13280
13582
  * Disallow useless `undefined`.
13281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
13583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-useless-undefined.md
13282
13584
  */
13283
13585
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
13284
13586
  /**
13285
13587
  * 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
13588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-zero-fractions.md
13287
13589
  */
13288
13590
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
13289
13591
  /**
13290
13592
  * 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
13593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/number-literal-case.md
13292
13594
  */
13293
13595
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
13294
13596
  /**
13295
13597
  * 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
13598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/numeric-separators-style.md
13297
13599
  */
13298
13600
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
13299
13601
  /**
13300
13602
  * 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
13603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-add-event-listener.md
13302
13604
  */
13303
13605
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
13606
+ /**
13607
+ * Prefer an options object over a boolean in `.addEventListener()`.
13608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-add-event-listener-options.md
13609
+ */
13610
+ "unicorn/prefer-add-event-listener-options"?: Linter.RuleEntry<[]>;
13304
13611
  /**
13305
13612
  * 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
13613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-find.md
13307
13614
  */
13308
13615
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
13309
13616
  /**
13310
13617
  * 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
13618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-flat.md
13312
13619
  */
13313
13620
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
13314
13621
  /**
13315
- * 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
13622
+ * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
13623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-flat-map.md
13317
13624
  */
13318
13625
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
13626
+ /**
13627
+ * Prefer using the `Array.from()` mapping function argument.
13628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-from-map.md
13629
+ */
13630
+ "unicorn/prefer-array-from-map"?: Linter.RuleEntry<[]>;
13319
13631
  /**
13320
13632
  * 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
13633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-index-of.md
13322
13634
  */
13323
13635
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
13636
+ /**
13637
+ * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
13638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-last-methods.md
13639
+ */
13640
+ "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
13324
13641
  /**
13325
13642
  * 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
13643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-some.md
13327
13644
  */
13328
13645
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
13329
13646
  /**
13330
13647
  * 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
13648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-at.md
13332
13649
  */
13333
13650
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
13651
+ /**
13652
+ * Prefer `await` over promise chaining.
13653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-await.md
13654
+ */
13655
+ "unicorn/prefer-await"?: Linter.RuleEntry<[]>;
13334
13656
  /**
13335
13657
  * 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
13658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-bigint-literals.md
13337
13659
  */
13338
13660
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
13339
13661
  /**
13340
13662
  * 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
13663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-blob-reading-methods.md
13342
13664
  */
13343
13665
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
13344
13666
  /**
13345
13667
  * 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
13668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-class-fields.md
13347
13669
  */
13348
13670
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
13349
13671
  /**
13350
13672
  * 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
13673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-classlist-toggle.md
13352
13674
  */
13353
13675
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
13354
13676
  /**
13355
13677
  * 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
13678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-code-point.md
13357
13679
  */
13358
13680
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
13359
13681
  /**
13360
13682
  * 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
13683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-date-now.md
13362
13684
  */
13363
13685
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
13364
13686
  /**
13365
13687
  * Prefer default parameters over reassignment.
13366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
13688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-default-parameters.md
13367
13689
  */
13368
13690
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
13369
13691
  /**
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
13692
+ * Prefer direct iteration over default iterator method calls.
13693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-direct-iteration.md
13694
+ */
13695
+ "unicorn/prefer-direct-iteration"?: Linter.RuleEntry<[]>;
13696
+ /**
13697
+ * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
13698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dispose.md
13699
+ */
13700
+ "unicorn/prefer-dispose"?: Linter.RuleEntry<[]>;
13701
+ /**
13702
+ * Prefer `Element#append()` over `Node#appendChild()`.
13703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-append.md
13372
13704
  */
13373
13705
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
13374
13706
  /**
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
13707
+ * Renamed to `unicorn/dom-node-dataset`.
13708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
13709
+ * @deprecated
13377
13710
  */
13378
13711
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
13712
+ /**
13713
+ * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
13714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-html-methods.md
13715
+ */
13716
+ "unicorn/prefer-dom-node-html-methods"?: Linter.RuleEntry<[]>;
13379
13717
  /**
13380
13718
  * 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
13719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-remove.md
13382
13720
  */
13383
13721
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
13384
13722
  /**
13385
13723
  * 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
13724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-text-content.md
13387
13725
  */
13388
13726
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
13727
+ /**
13728
+ * Prefer early returns over full-function conditional wrapping.
13729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-early-return.md
13730
+ */
13731
+ "unicorn/prefer-early-return"?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
13389
13732
  /**
13390
13733
  * Prefer `EventTarget` over `EventEmitter`.
13391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
13734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-event-target.md
13392
13735
  */
13393
13736
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
13394
13737
  /**
13395
13738
  * 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
13739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-export-from.md
13397
13740
  */
13398
13741
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
13742
+ /**
13743
+ * Prefer `.getOrInsertComputed()` when the default value has side effects.
13744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-get-or-insert-computed.md
13745
+ */
13746
+ "unicorn/prefer-get-or-insert-computed"?: Linter.RuleEntry<[]>;
13747
+ /**
13748
+ * Prefer global numeric constants over `Number` static properties.
13749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-global-number-constants.md
13750
+ */
13751
+ "unicorn/prefer-global-number-constants"?: Linter.RuleEntry<[]>;
13399
13752
  /**
13400
13753
  * 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
13754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-global-this.md
13402
13755
  */
13403
13756
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
13757
+ /**
13758
+ * Prefer HTTPS over HTTP.
13759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-https.md
13760
+ */
13761
+ "unicorn/prefer-https"?: Linter.RuleEntry<[]>;
13762
+ /**
13763
+ * Prefer identifiers over string literals in import and export specifiers.
13764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
13765
+ */
13766
+ "unicorn/prefer-identifier-import-export-specifiers"?: Linter.RuleEntry<[]>;
13404
13767
  /**
13405
13768
  * 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
13769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-import-meta-properties.md
13407
13770
  */
13408
13771
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
13409
13772
  /**
13410
13773
  * 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
13774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-includes.md
13412
13775
  */
13413
13776
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
13414
13777
  /**
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
13778
+ * Prefer `.includes()` over repeated equality comparisons.
13779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
13780
+ */
13781
+ "unicorn/prefer-includes-over-repeated-comparisons"?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
13782
+ /**
13783
+ * Prefer passing iterables directly to constructors instead of filling empty collections.
13784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterable-in-constructor.md
13785
+ */
13786
+ "unicorn/prefer-iterable-in-constructor"?: Linter.RuleEntry<[]>;
13787
+ /**
13788
+ * Prefer `Iterator.concat(…)` over temporary spread arrays.
13789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-concat.md
13790
+ */
13791
+ "unicorn/prefer-iterator-concat"?: Linter.RuleEntry<[]>;
13792
+ /**
13793
+ * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
13794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-to-array.md
13795
+ */
13796
+ "unicorn/prefer-iterator-to-array"?: Linter.RuleEntry<[]>;
13797
+ /**
13798
+ * Prefer moving `.toArray()` to the end of iterator helper chains.
13799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-to-array-at-end.md
13800
+ */
13801
+ "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
13802
+ /**
13803
+ * Renamed to `unicorn/consistent-json-file-read`.
13804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
13805
+ * @deprecated
13417
13806
  */
13418
13807
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
13419
13808
  /**
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
13809
+ * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
13810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-keyboard-event-key.md
13422
13811
  */
13423
13812
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
13813
+ /**
13814
+ * Prefer `location.assign()` over assigning to `location.href`.
13815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-location-assign.md
13816
+ */
13817
+ "unicorn/prefer-location-assign"?: Linter.RuleEntry<[]>;
13424
13818
  /**
13425
13819
  * 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
13820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-logical-operator-over-ternary.md
13427
13821
  */
13428
13822
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
13823
+ /**
13824
+ * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
13825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-math-abs.md
13826
+ */
13827
+ "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
13429
13828
  /**
13430
13829
  * 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
13830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-math-min-max.md
13432
13831
  */
13433
13832
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
13434
13833
  /**
13435
- * 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
13834
+ * Prefer `Math.trunc()` for truncating numbers.
13835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-math-trunc.md
13437
13836
  */
13438
13837
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
13439
13838
  /**
13440
- * 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
13839
+ * Prefer moving ternaries into the minimal varying part of an expression.
13840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-minimal-ternary.md
13841
+ */
13842
+ "unicorn/prefer-minimal-ternary"?: Linter.RuleEntry<[]>;
13843
+ /**
13844
+ * Prefer modern DOM APIs.
13845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-modern-dom-apis.md
13442
13846
  */
13443
13847
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
13444
13848
  /**
13445
13849
  * 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
13850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-modern-math-apis.md
13447
13851
  */
13448
13852
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
13449
13853
  /**
13450
13854
  * Prefer JavaScript modules (ESM) over CommonJS.
13451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
13855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-module.md
13452
13856
  */
13453
13857
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
13454
13858
  /**
13455
13859
  * 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
13860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-native-coercion-functions.md
13457
13861
  */
13458
13862
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
13459
13863
  /**
13460
13864
  * 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
13865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-negative-index.md
13462
13866
  */
13463
13867
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
13464
13868
  /**
13465
13869
  * 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
13870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-node-protocol.md
13467
13871
  */
13468
13872
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
13469
13873
  /**
13470
- * 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
13874
+ * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
13875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-number-coercion.md
13876
+ */
13877
+ "unicorn/prefer-number-coercion"?: Linter.RuleEntry<[]>;
13878
+ /**
13879
+ * Prefer `Number.isSafeInteger()` over integer checks.
13880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-number-is-safe-integer.md
13881
+ */
13882
+ "unicorn/prefer-number-is-safe-integer"?: Linter.RuleEntry<[]>;
13883
+ /**
13884
+ * Prefer `Number` static methods over global functions and optionally static properties over global constants.
13885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-number-properties.md
13472
13886
  */
13473
13887
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
13888
+ /**
13889
+ * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
13890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-define-properties.md
13891
+ */
13892
+ "unicorn/prefer-object-define-properties"?: Linter.RuleEntry<[]>;
13893
+ /**
13894
+ * Prefer object destructuring defaults over default object literals with spread.
13895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-destructuring-defaults.md
13896
+ */
13897
+ "unicorn/prefer-object-destructuring-defaults"?: Linter.RuleEntry<[]>;
13474
13898
  /**
13475
13899
  * 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
13900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-from-entries.md
13477
13901
  */
13478
13902
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
13903
+ /**
13904
+ * Prefer the most specific `Object` iterable method.
13905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-object-iterable-methods.md
13906
+ */
13907
+ "unicorn/prefer-object-iterable-methods"?: Linter.RuleEntry<[]>;
13479
13908
  /**
13480
13909
  * 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
13910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-optional-catch-binding.md
13482
13911
  */
13483
13912
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
13913
+ /**
13914
+ * Prefer `Path2D` for repeatedly drawn canvas paths.
13915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-path2d.md
13916
+ */
13917
+ "unicorn/prefer-path2d"?: Linter.RuleEntry<[]>;
13918
+ /**
13919
+ * Prefer private class fields over the underscore-prefix convention.
13920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-private-class-fields.md
13921
+ */
13922
+ "unicorn/prefer-private-class-fields"?: Linter.RuleEntry<[]>;
13484
13923
  /**
13485
13924
  * 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
13925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-prototype-methods.md
13487
13926
  */
13488
13927
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
13489
13928
  /**
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
13929
+ * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
13930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-query-selector.md
13492
13931
  */
13493
- "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
13932
+ "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
13933
+ /**
13934
+ * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
13935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-queue-microtask.md
13936
+ */
13937
+ "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
13494
13938
  /**
13495
13939
  * 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
13940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-reflect-apply.md
13497
13941
  */
13498
13942
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
13499
13943
  /**
13500
- * 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
13944
+ * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
13945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-regexp-test.md
13502
13946
  */
13503
13947
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
13504
13948
  /**
13505
13949
  * 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
13950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-response-static-json.md
13507
13951
  */
13508
13952
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
13953
+ /**
13954
+ * Prefer `:scope` when using element query selector methods.
13955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-scoped-selector.md
13956
+ */
13957
+ "unicorn/prefer-scoped-selector"?: Linter.RuleEntry<[]>;
13509
13958
  /**
13510
13959
  * 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
13960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-set-has.md
13512
13961
  */
13513
- "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
13962
+ "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
13514
13963
  /**
13515
13964
  * 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
13965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-set-size.md
13517
13966
  */
13518
13967
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
13968
+ /**
13969
+ * Prefer arrow function properties over methods with a single return.
13970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-short-arrow-method.md
13971
+ */
13972
+ "unicorn/prefer-short-arrow-method"?: Linter.RuleEntry<[]>;
13519
13973
  /**
13520
13974
  * 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
13975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-simple-condition-first.md
13522
13976
  */
13523
13977
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
13524
13978
  /**
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
13979
+ * Prefer a simple comparison function for `Array#sort()`.
13980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-simple-sort-comparator.md
13981
+ */
13982
+ "unicorn/prefer-simple-sort-comparator"?: Linter.RuleEntry<[]>;
13983
+ /**
13984
+ * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
13985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-single-array-predicate.md
13986
+ */
13987
+ "unicorn/prefer-single-array-predicate"?: Linter.RuleEntry<[]>;
13988
+ /**
13989
+ * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-single-call.md
13527
13991
  */
13528
13992
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
13529
13993
  /**
13530
- * 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
13994
+ * Prefer a single object destructuring declaration per local const source.
13995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-single-object-destructuring.md
13996
+ */
13997
+ "unicorn/prefer-single-object-destructuring"?: Linter.RuleEntry<[]>;
13998
+ /**
13999
+ * Prefer declaring variables in the smallest possible scope.
14000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-smaller-scope.md
14001
+ */
14002
+ "unicorn/prefer-smaller-scope"?: Linter.RuleEntry<[]>;
14003
+ /**
14004
+ * Prefer `String#split()` with a limit.
14005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-split-limit.md
14006
+ */
14007
+ "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
14008
+ /**
14009
+ * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
14010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-spread.md
13532
14011
  */
13533
14012
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
14013
+ /**
14014
+ * Prefer `String#matchAll()` over `RegExp#exec()` loops.
14015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-match-all.md
14016
+ */
14017
+ "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
14018
+ /**
14019
+ * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
14020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-pad-start-end.md
14021
+ */
14022
+ "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
13534
14023
  /**
13535
14024
  * 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
14025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-raw.md
13537
14026
  */
13538
14027
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
13539
14028
  /**
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
14029
+ * Prefer `String#repeat()` for repeated whitespace.
14030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-repeat.md
14031
+ */
14032
+ "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
14033
+ /**
14034
+ * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
14035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-replace-all.md
13542
14036
  */
13543
14037
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
13544
14038
  /**
13545
14039
  * 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
14040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-slice.md
13547
14041
  */
13548
14042
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
13549
14043
  /**
13550
- * 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
14044
+ * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
14045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-starts-ends-with.md
13552
14046
  */
13553
14047
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
13554
14048
  /**
13555
14049
  * 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
14050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-trim-start-end.md
13557
14051
  */
13558
14052
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
13559
14053
  /**
13560
14054
  * 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
14055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-structured-clone.md
13562
14056
  */
13563
14057
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13564
14058
  /**
13565
14059
  * Prefer `switch` over multiple `else-if`.
13566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
14060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-switch.md
13567
14061
  */
13568
14062
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
13569
14063
  /**
13570
- * 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
14064
+ * Prefer `Temporal` over `Date`.
14065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-temporal.md
14066
+ */
14067
+ "unicorn/prefer-temporal"?: Linter.RuleEntry<UnicornPreferTemporal>;
14068
+ /**
14069
+ * Prefer ternary expressions over simple `if-else` statements that return or assign values.
14070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-ternary.md
13572
14071
  */
13573
14072
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
13574
14073
  /**
13575
14074
  * 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
14075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-top-level-await.md
13577
14076
  */
13578
14077
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
13579
14078
  /**
13580
14079
  * 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
14080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-type-error.md
13582
14081
  */
13583
14082
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
14083
+ /**
14084
+ * Require type literals to be last in union and intersection types.
14085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-type-literal-last.md
14086
+ */
14087
+ "unicorn/prefer-type-literal-last"?: Linter.RuleEntry<[]>;
14088
+ /**
14089
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
14090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-uint8array-base64.md
14091
+ */
14092
+ "unicorn/prefer-uint8array-base64"?: Linter.RuleEntry<[]>;
14093
+ /**
14094
+ * Prefer Unicode code point escapes over legacy escape sequences.
14095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-unicode-code-point-escapes.md
14096
+ */
14097
+ "unicorn/prefer-unicode-code-point-escapes"?: Linter.RuleEntry<[]>;
14098
+ /**
14099
+ * Prefer `URL#href` over stringifying a `URL`.
14100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-url-href.md
14101
+ */
14102
+ "unicorn/prefer-url-href"?: Linter.RuleEntry<[]>;
13584
14103
  /**
13585
14104
  * Prevent abbreviations.
13586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
14105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prevent-abbreviations.md
13587
14106
  */
13588
14107
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
13589
14108
  /**
13590
14109
  * Enforce consistent relative URL style.
13591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
14110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/relative-url-style.md
13592
14111
  */
13593
14112
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13594
14113
  /**
13595
14114
  * 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
14115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-array-join-separator.md
13597
14116
  */
13598
14117
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
14118
+ /**
14119
+ * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
14120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-array-sort-compare.md
14121
+ */
14122
+ "unicorn/require-array-sort-compare"?: Linter.RuleEntry<[]>;
14123
+ /**
14124
+ * Require `CSS.escape()` for interpolated values in CSS selectors.
14125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-css-escape.md
14126
+ */
14127
+ "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
13599
14128
  /**
13600
14129
  * 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
14130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-module-attributes.md
13602
14131
  */
13603
14132
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
13604
14133
  /**
13605
14134
  * 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
14135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-module-specifiers.md
13607
14136
  */
13608
14137
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
13609
14138
  /**
13610
14139
  * 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
14140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-number-to-fixed-digits-argument.md
13612
14141
  */
13613
14142
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
14143
+ /**
14144
+ * Require passive event listeners for high-frequency events.
14145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-passive-events.md
14146
+ */
14147
+ "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
13614
14148
  /**
13615
14149
  * 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
14150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-post-message-target-origin.md
13617
14151
  */
13618
14152
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
14153
+ /**
14154
+ * Require boolean-returning Proxy traps to return booleans.
14155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-proxy-trap-boolean-return.md
14156
+ */
14157
+ "unicorn/require-proxy-trap-boolean-return"?: Linter.RuleEntry<[]>;
13619
14158
  /**
13620
14159
  * Enforce better string content.
13621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
14160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/string-content.md
13622
14161
  */
13623
14162
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
13624
14163
  /**
13625
14164
  * 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
14165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/switch-case-braces.md
13627
14166
  */
13628
14167
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13629
14168
  /**
13630
14169
  * 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
14170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/switch-case-break-position.md
13632
14171
  */
13633
14172
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
13634
14173
  /**
13635
14174
  * Fix whitespace-insensitive template indentation.
13636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
14175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/template-indent.md
13637
14176
  */
13638
14177
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
13639
14178
  /**
13640
14179
  * 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
14180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/text-encoding-identifier-case.md
13642
14181
  */
13643
14182
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13644
14183
  /**
13645
14184
  * 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
14185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/throw-new-error.md
13647
14186
  */
13648
14187
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
14188
+ /**
14189
+ * Limit the complexity of `try` blocks.
14190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/try-complexity.md
14191
+ */
14192
+ "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
13649
14193
  }
13650
14194
  /* ======= Declarations ======= */
13651
- // ----- unicorn/better-regex -----
13652
- type UnicornBetterRegex = [] | [{
13653
- sortCharacterClasses?: boolean;
13654
- }]; // ----- unicorn/catch-error-name -----
14195
+ // ----- unicorn/catch-error-name -----
13655
14196
  type UnicornCatchErrorName = [] | [{
13656
14197
  name?: string;
13657
14198
  ignore?: unknown[];
13658
- }]; // ----- unicorn/consistent-function-scoping -----
14199
+ }]; // ----- unicorn/class-reference-in-static-methods -----
14200
+ type UnicornClassReferenceInStaticMethods = [] | [{
14201
+ preferThis?: boolean;
14202
+ preferSuper?: boolean;
14203
+ }]; // ----- unicorn/comment-content -----
14204
+ type UnicornCommentContent = [] | [{
14205
+ extendDefaultReplacements?: boolean;
14206
+ replacements?: {
14207
+ [k: string]: (false | string | {
14208
+ replacement: string;
14209
+ caseSensitive?: boolean;
14210
+ }) | undefined;
14211
+ };
14212
+ }]; // ----- unicorn/consistent-class-member-order -----
14213
+ type UnicornConsistentClassMemberOrder = [] | [{
14214
+ order?: [("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method"), ("static-field" | "static-block" | "private-field" | "public-field" | "constructor" | "static-method" | "private-method" | "public-method")];
14215
+ }]; // ----- unicorn/consistent-compound-words -----
14216
+ type UnicornConsistentCompoundWords = [] | [{
14217
+ checkProperties?: boolean;
14218
+ checkVariables?: boolean;
14219
+ checkDefaultAndNamespaceImports?: boolean | "internal";
14220
+ checkShorthandImports?: boolean | "internal";
14221
+ checkShorthandProperties?: boolean;
14222
+ extendDefaultReplacements?: boolean;
14223
+ replacements?: _UnicornConsistentCompoundWords_Replacements;
14224
+ allowList?: _UnicornConsistentCompoundWords_TrueObject;
14225
+ }];
14226
+ interface _UnicornConsistentCompoundWords_Replacements {
14227
+ [k: string]: (false | string) | undefined;
14228
+ }
14229
+ interface _UnicornConsistentCompoundWords_TrueObject {
14230
+ [k: string]: true | undefined;
14231
+ } // ----- unicorn/consistent-export-decorator-position -----
14232
+ type UnicornConsistentExportDecoratorPosition = [] | ["above" | "before" | "after"]; // ----- unicorn/consistent-function-scoping -----
13659
14233
  type UnicornConsistentFunctionScoping = [] | [{
13660
14234
  checkArrowFunctions?: boolean;
14235
+ }]; // ----- unicorn/consistent-function-style -----
14236
+ type UnicornConsistentFunctionStyle = [] | [{
14237
+ default?: "declaration" | "function-expression" | "arrow-function" | "ignore";
14238
+ namedFunctions?: "declaration" | "function-expression" | "arrow-function" | "ignore";
14239
+ namedExports?: "declaration" | "function-expression" | "arrow-function" | "ignore";
14240
+ callbacks?: "function-expression" | "arrow-function" | "ignore";
14241
+ objectProperties?: "method" | "function-expression" | "arrow-function" | "ignore";
14242
+ reassignedVariables?: "function-expression" | "arrow-function" | "ignore";
14243
+ typedVariables?: "function-expression" | "arrow-function" | "ignore";
14244
+ }]; // ----- unicorn/consistent-json-file-read -----
14245
+ type UnicornConsistentJsonFileRead = [] | ["string" | "buffer"]; // ----- unicorn/dom-node-dataset -----
14246
+ type UnicornDomNodeDataset = [] | [{
14247
+ preferAttributes?: boolean;
13661
14248
  }]; // ----- unicorn/escape-case -----
13662
14249
  type UnicornEscapeCase = [] | ["uppercase" | "lowercase"]; // ----- unicorn/expiring-todo-comments -----
13663
14250
  type UnicornExpiringTodoComments = [] | [{
13664
14251
  terms?: string[];
13665
14252
  ignore?: unknown[];
13666
- ignoreDates?: boolean;
13667
- ignoreDatesOnPullRequests?: boolean;
14253
+ checkDates?: boolean;
14254
+ checkDatesOnPullRequests?: boolean;
13668
14255
  allowWarningComments?: boolean;
13669
14256
  date?: string;
13670
14257
  }]; // ----- unicorn/explicit-length-check -----
13671
14258
  type UnicornExplicitLengthCheck = [] | [{
13672
14259
  "non-zero"?: "greater-than" | "not-equal";
13673
- }]; // ----- unicorn/filename-case -----
14260
+ }]; // ----- unicorn/explicit-timer-delay -----
14261
+ type UnicornExplicitTimerDelay = [] | ["always" | "never"]; // ----- unicorn/filename-case -----
13674
14262
  type UnicornFilenameCase = [] | [{
13675
- case?: "camelCase" | "snakeCase" | "kebabCase" | "pascalCase";
14263
+ case?: "camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase";
13676
14264
  ignore?: unknown[];
13677
14265
  multipleFileExtensions?: boolean;
14266
+ checkDirectories?: boolean;
13678
14267
  } | {
13679
14268
  cases?: {
13680
14269
  camelCase?: boolean;
14270
+ camelCaseWithAcronyms?: boolean;
13681
14271
  snakeCase?: boolean;
13682
14272
  kebabCase?: boolean;
13683
14273
  pascalCase?: boolean;
13684
14274
  };
13685
14275
  ignore?: unknown[];
13686
14276
  multipleFileExtensions?: boolean;
14277
+ checkDirectories?: boolean;
14278
+ }]; // ----- unicorn/id-match -----
14279
+ type UnicornIdMatch = [] | [string] | [string, {
14280
+ properties?: boolean;
14281
+ classFields?: boolean;
14282
+ onlyDeclarations?: boolean;
14283
+ ignoreDestructuring?: boolean;
14284
+ checkNamedSpecifiers?: boolean;
13687
14285
  }]; // ----- unicorn/import-style -----
13688
14286
  type UnicornImportStyle = [] | [{
13689
14287
  checkImport?: boolean;
@@ -13707,6 +14305,12 @@ type UnicornIsolatedFunctions = [] | [{
13707
14305
  functions?: string[];
13708
14306
  selectors?: string[];
13709
14307
  comments?: string[];
14308
+ }]; // ----- unicorn/max-nested-calls -----
14309
+ type UnicornMaxNestedCalls = [] | [{
14310
+ max?: number;
14311
+ }]; // ----- unicorn/no-array-callback-reference -----
14312
+ type UnicornNoArrayCallbackReference = [] | [{
14313
+ ignore?: string[];
13710
14314
  }]; // ----- unicorn/no-array-reduce -----
13711
14315
  type UnicornNoArrayReduce = [] | [{
13712
14316
  allowSimpleOperations?: boolean;
@@ -13716,6 +14320,9 @@ type UnicornNoArrayReverse = [] | [{
13716
14320
  }]; // ----- unicorn/no-array-sort -----
13717
14321
  type UnicornNoArraySort = [] | [{
13718
14322
  allowExpressionStatement?: boolean;
14323
+ }]; // ----- unicorn/no-empty-file -----
14324
+ type UnicornNoEmptyFile = [] | [{
14325
+ allowComments?: boolean;
13719
14326
  }]; // ----- unicorn/no-instanceof-builtins -----
13720
14327
  type UnicornNoInstanceofBuiltins = [] | [{
13721
14328
  useErrorIsError?: boolean;
@@ -13727,17 +14334,24 @@ type UnicornNoKeywordPrefix = [] | [{
13727
14334
  disallowedPrefixes?: [] | [string];
13728
14335
  checkProperties?: boolean;
13729
14336
  onlyCamelCase?: boolean;
14337
+ }]; // ----- unicorn/no-negated-comparison -----
14338
+ type UnicornNoNegatedComparison = [] | [{
14339
+ checkLogicalExpressions?: boolean;
13730
14340
  }]; // ----- unicorn/no-null -----
13731
14341
  type UnicornNoNull = [] | [{
14342
+ checkArguments?: boolean;
13732
14343
  checkStrictEquality?: boolean;
13733
14344
  }]; // ----- unicorn/no-typeof-undefined -----
13734
14345
  type UnicornNoTypeofUndefined = [] | [{
13735
14346
  checkGlobalVariables?: boolean;
13736
14347
  }]; // ----- unicorn/no-unnecessary-polyfills -----
13737
14348
  type UnicornNoUnnecessaryPolyfills = [] | [{
13738
- targets: string | unknown[] | {
14349
+ targets?: string | unknown[] | {
13739
14350
  [k: string]: unknown | undefined;
13740
14351
  };
14352
+ }]; // ----- unicorn/no-unreadable-array-destructuring -----
14353
+ type UnicornNoUnreadableArrayDestructuring = [] | [{
14354
+ maximumIgnoredElements?: number;
13741
14355
  }]; // ----- unicorn/no-useless-undefined -----
13742
14356
  type UnicornNoUselessUndefined = [] | [{
13743
14357
  checkArguments?: boolean;
@@ -13766,6 +14380,7 @@ type UnicornNumericSeparatorsStyle = [] | [{
13766
14380
  onlyIfContainsSeparator?: boolean;
13767
14381
  minimumDigits?: number;
13768
14382
  groupLength?: number;
14383
+ fractionGroupLength?: number;
13769
14384
  };
13770
14385
  onlyIfContainsSeparator?: boolean;
13771
14386
  }]; // ----- unicorn/prefer-add-event-listener -----
@@ -13781,9 +14396,15 @@ type UnicornPreferArrayFlat = [] | [{
13781
14396
  type UnicornPreferAt = [] | [{
13782
14397
  getLastElementFunctions?: unknown[];
13783
14398
  checkAllIndexAccess?: boolean;
14399
+ }]; // ----- unicorn/prefer-early-return -----
14400
+ type UnicornPreferEarlyReturn = [] | [{
14401
+ maximumStatements?: number;
13784
14402
  }]; // ----- unicorn/prefer-export-from -----
13785
14403
  type UnicornPreferExportFrom = [] | [{
13786
- ignoreUsedVariables?: boolean;
14404
+ checkUsedVariables?: boolean;
14405
+ }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
14406
+ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
14407
+ minimumComparisons?: number;
13787
14408
  }]; // ----- unicorn/prefer-number-properties -----
13788
14409
  type UnicornPreferNumberProperties = [] | [{
13789
14410
  checkInfinity?: boolean;
@@ -13791,9 +14412,22 @@ type UnicornPreferNumberProperties = [] | [{
13791
14412
  }]; // ----- unicorn/prefer-object-from-entries -----
13792
14413
  type UnicornPreferObjectFromEntries = [] | [{
13793
14414
  functions?: unknown[];
14415
+ }]; // ----- unicorn/prefer-query-selector -----
14416
+ type UnicornPreferQuerySelector = [] | [{
14417
+ allowWithVariables?: boolean;
14418
+ }]; // ----- unicorn/prefer-queue-microtask -----
14419
+ type UnicornPreferQueueMicrotask = [] | [{
14420
+ checkSetImmediate?: boolean;
14421
+ checkSetTimeout?: boolean;
14422
+ }]; // ----- unicorn/prefer-set-has -----
14423
+ type UnicornPreferSetHas = [] | [{
14424
+ minimumItems?: number;
13794
14425
  }]; // ----- unicorn/prefer-single-call -----
13795
14426
  type UnicornPreferSingleCall = [] | [{
13796
14427
  ignore?: unknown[];
14428
+ }]; // ----- unicorn/prefer-string-repeat -----
14429
+ type UnicornPreferStringRepeat = [] | [{
14430
+ minimumRepetitions?: number;
13797
14431
  }]; // ----- unicorn/prefer-structured-clone -----
13798
14432
  type UnicornPreferStructuredClone = [] | [{
13799
14433
  functions?: unknown[];
@@ -13801,6 +14435,11 @@ type UnicornPreferStructuredClone = [] | [{
13801
14435
  type UnicornPreferSwitch = [] | [{
13802
14436
  minimumCases?: number;
13803
14437
  emptyDefaultCase?: "no-default-comment" | "do-nothing-comment" | "no-default-case";
14438
+ }]; // ----- unicorn/prefer-temporal -----
14439
+ type UnicornPreferTemporal = [] | [{
14440
+ checkDateNow?: boolean;
14441
+ checkReferences?: boolean;
14442
+ checkMethods?: boolean;
13804
14443
  }]; // ----- unicorn/prefer-ternary -----
13805
14444
  type UnicornPreferTernary = [] | ["always" | "only-single-line"]; // ----- unicorn/prevent-abbreviations -----
13806
14445
  type UnicornPreventAbbreviations = [] | [{
@@ -13826,17 +14465,22 @@ interface _UnicornPreventAbbreviations_BooleanObject {
13826
14465
  interface _UnicornPreventAbbreviations_BooleanObject {
13827
14466
  [k: string]: boolean | undefined;
13828
14467
  } // ----- unicorn/relative-url-style -----
13829
- type UnicornRelativeUrlStyle = [] | ["never" | "always"]; // ----- unicorn/string-content -----
14468
+ type UnicornRelativeUrlStyle = [] | ["never" | "always"]; // ----- unicorn/require-css-escape -----
14469
+ type UnicornRequireCssEscape = [] | [{
14470
+ checkAllSelectors?: boolean;
14471
+ }]; // ----- unicorn/string-content -----
13830
14472
  type UnicornStringContent = [] | [{
13831
14473
  patterns?: {
13832
14474
  [k: string]: (string | {
13833
14475
  suggest: string;
13834
14476
  fix?: boolean;
14477
+ caseSensitive?: boolean;
13835
14478
  message?: string;
13836
14479
  }) | undefined;
13837
14480
  };
14481
+ selectors?: string[];
13838
14482
  }]; // ----- unicorn/switch-case-braces -----
13839
- type UnicornSwitchCaseBraces = [] | ["always" | "avoid"]; // ----- unicorn/template-indent -----
14483
+ type UnicornSwitchCaseBraces = [] | ["always" | "avoid" | "single-statement"]; // ----- unicorn/template-indent -----
13840
14484
  type UnicornTemplateIndent = [] | [{
13841
14485
  indent?: string | number;
13842
14486
  tags?: string[];
@@ -13846,6 +14490,9 @@ type UnicornTemplateIndent = [] | [{
13846
14490
  }]; // ----- unicorn/text-encoding-identifier-case -----
13847
14491
  type UnicornTextEncodingIdentifierCase = [] | [{
13848
14492
  withDash?: boolean;
14493
+ }]; // ----- unicorn/try-complexity -----
14494
+ type UnicornTryComplexity = [] | [{
14495
+ max?: number;
13849
14496
  }];
13850
14497
  //#endregion
13851
14498
  //#region src/_generated/dts/vitest.d.ts
@@ -14832,7 +15479,7 @@ type TailwindEslintSettings = {
14832
15479
  whitelist: string[];
14833
15480
  };
14834
15481
  type TailwindOptions = Partial<TailwindEslintSettings> | boolean | undefined;
14835
- type OptionsConfig = {
15482
+ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
14836
15483
  /**
14837
15484
  * Enable debug mode.
14838
15485
  */
@@ -14861,7 +15508,7 @@ type OptionsConfig = {
14861
15508
  * Enable Prettier config rules to disable conflicting ESLint rules
14862
15509
  *
14863
15510
  * THIS DOES NOT ENABLE PRETTIER FORMATTING. YOU DO THAT, BUT I
14864
- * RECOMMEND USING PRETTIER TO FORMAT AND NOT THE ESLINT PRETTIER
15511
+ * RECOMMEND USING PRETTIER TO FORMAT AND NOT THE ESLint PRETTIER
14865
15512
  * PLUGIN!.
14866
15513
  */
14867
15514
  prettier?: boolean;
@@ -14978,7 +15625,7 @@ type OptionsConfig = {
14978
15625
  markdown?: Config["rules"];
14979
15626
  yaml?: Config["rules"];
14980
15627
  };
14981
- } & OptionsComponentExts & OptionsTypeScriptParserOptions;
15628
+ };
14982
15629
  type RenamePefix<T extends Record<string, unknown>, FromPref extends string, ToPref extends string> = { [K in keyof T as K extends `${FromPref}${infer Rest}` ? `${ToPref}${Rest}` : K]: T[K] };
14983
15630
  //#endregion
14984
15631
  //#region src/const.d.ts
@@ -14988,7 +15635,7 @@ declare const SLOW_RULES: RuleName[];
14988
15635
  /**
14989
15636
  * Construct an array of ESLint flat config items.
14990
15637
  * @param options Configuration options `@jsse/eslint-config` & ESLint Flat Config
14991
- * @param userConfigs Additional user eslint configs to merge in
15638
+ * @param userConfigs Additional user ESLint configs to merge in
14992
15639
  * @returns Array of ESLint flat config items
14993
15640
  */
14994
15641
  declare function jsse(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;