@jsse/eslint-config 0.7.8 → 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.8";
17
+ declare const VERSION = "0.7.9";
18
18
  //#endregion
19
19
  //#region src/_generated/dts/builtins.d.ts
20
20
  interface BuiltinsRuleOptions {
@@ -12900,918 +12900,1294 @@ type ImportPreferDefaultExport = [] | [{
12900
12900
  interface UnicornRuleOptions {
12901
12901
  /**
12902
12902
  * Prefer better DOM traversal APIs.
12903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/better-dom-traversing.md
12903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/better-dom-traversing.md
12904
12904
  */
12905
12905
  "unicorn/better-dom-traversing"?: Linter.RuleEntry<[]>;
12906
12906
  /**
12907
12907
  * Removed. Prefer `eslint-plugin-regexp`
12908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#better-regex
12908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#better-regex
12909
12909
  * @deprecated
12910
12910
  */
12911
12911
  "unicorn/better-regex"?: Linter.RuleEntry<[]>;
12912
12912
  /**
12913
12913
  * Enforce a specific parameter name in catch clauses.
12914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12915
12915
  */
12916
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>;
12917
12927
  /**
12918
12928
  * Enforce consistent assertion style with `node:assert`.
12919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-assert.md
12929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-assert.md
12920
12930
  */
12921
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>;
12922
12937
  /**
12923
12938
  * Enforce consistent spelling of compound words in identifiers.
12924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-compound-words.md
12939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-compound-words.md
12925
12940
  */
12926
12941
  "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
12927
12942
  /**
12928
12943
  * Prefer passing `Date` directly to the constructor when cloning.
12929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12930
12945
  */
12931
12946
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
12932
12947
  /**
12933
12948
  * Use destructured variables over properties.
12934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-destructuring.md
12949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-destructuring.md
12935
12950
  */
12936
12951
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
12937
12952
  /**
12938
12953
  * Prefer consistent types when spreading a ternary in an array literal.
12939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12940
12955
  */
12941
12956
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
12942
12957
  /**
12943
12958
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
12944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12945
12960
  */
12946
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>;
12947
12967
  /**
12948
12968
  * Move function definitions to the highest possible scope.
12949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12950
12970
  */
12951
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>;
12952
12977
  /**
12953
12978
  * Enforce consistent JSON file reads before `JSON.parse()`.
12954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/consistent-json-file-read.md
12979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/consistent-json-file-read.md
12955
12980
  */
12956
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<[]>;
12957
12987
  /**
12958
12988
  * Enforce consistent style for escaping `${` in template literals.
12959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12960
12990
  */
12961
12991
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
12962
12992
  /**
12963
12993
  * Enforce correct `Error` subclassing.
12964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12965
12995
  */
12966
12996
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
12967
12997
  /**
12968
12998
  * Enforce consistent style for DOM element dataset access.
12969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/dom-node-dataset.md
12999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/dom-node-dataset.md
12970
13000
  */
12971
13001
  "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
12972
13002
  /**
12973
13003
  * Enforce no spaces between braces.
12974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12975
13005
  */
12976
13006
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
12977
13007
  /**
12978
13008
  * Enforce passing a `message` value when creating a built-in error.
12979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/error-message.md
13009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/error-message.md
12980
13010
  */
12981
13011
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
12982
13012
  /**
12983
13013
  * Require escape sequences to use uppercase or lowercase values.
12984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/escape-case.md
13014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/escape-case.md
12985
13015
  */
12986
13016
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
12987
13017
  /**
12988
13018
  * Add expiration conditions to TODO comments.
12989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12990
13020
  */
12991
13021
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
12992
13022
  /**
12993
13023
  * Enforce explicitly comparing the `length` or `size` property of a value.
12994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
12995
13025
  */
12996
13026
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
13027
+ /**
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>;
12997
13032
  /**
12998
13033
  * Enforce a case style for filenames and directory names.
12999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/filename-case.md
13034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/filename-case.md
13000
13035
  */
13001
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>;
13002
13042
  /**
13003
13043
  * Enforce specific import styles per module.
13004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/import-style.md
13044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/import-style.md
13005
13045
  */
13006
13046
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
13007
13047
  /**
13008
13048
  * Prevent usage of variables from outside the scope of isolated functions.
13009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/isolated-functions.md
13049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/isolated-functions.md
13010
13050
  */
13011
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>;
13012
13057
  /**
13013
13058
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
13014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13015
13060
  */
13016
13061
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
13017
13062
  /**
13018
13063
  * Enforce specifying rules to disable in `eslint-disable` comments.
13019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13020
13065
  */
13021
13066
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
13022
13067
  /**
13023
13068
  * Disallow recursive access to `this` within getters and setters.
13024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13025
13070
  */
13026
13071
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
13027
13072
  /**
13028
13073
  * Disallow anonymous functions and classes as the default export.
13029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13030
13075
  */
13031
13076
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
13032
13077
  /**
13033
13078
  * Prevent passing a function reference directly to iterator methods.
13034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13035
13080
  */
13036
13081
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
13037
13082
  /**
13038
13083
  * Disallow using reference values as `Array#fill()` values.
13039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-fill-with-reference-type.md
13084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-fill-with-reference-type.md
13040
13085
  */
13041
13086
  "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
13042
- /**
13043
- * Prefer `for…of` over the `forEach` method.
13044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-for-each.md
13045
- */
13046
- "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
13047
13087
  /**
13048
13088
  * Disallow `.fill()` after `Array.from({length: …})`.
13049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-array-from-fill.md
13089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-array-from-fill.md
13050
13090
  */
13051
13091
  "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
13052
13092
  /**
13053
13093
  * Disallow using the `this` argument in array methods.
13054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13055
13095
  */
13056
13096
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
13057
13097
  /**
13058
13098
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
13059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13060
13100
  * @deprecated
13061
13101
  */
13062
13102
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
13063
13103
  /**
13064
13104
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
13065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13066
13106
  */
13067
13107
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
13068
13108
  /**
13069
13109
  * Prefer `Array#toReversed()` over `Array#reverse()`.
13070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13071
13111
  */
13072
13112
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
13073
13113
  /**
13074
13114
  * Prefer `Array#toSorted()` over `Array#sort()`.
13075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13076
13116
  */
13077
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<[]>;
13078
13123
  /**
13079
13124
  * Disallow member access from await expression.
13080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13081
13126
  */
13082
13127
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
13083
13128
  /**
13084
13129
  * Disallow using `await` in `Promise` method parameters.
13085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13086
13131
  */
13087
13132
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
13088
13133
  /**
13089
13134
  * Disallow unnecessary `Blob` to `File` conversion.
13090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-blob-to-file.md
13135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-blob-to-file.md
13091
13136
  */
13092
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<[]>;
13093
13143
  /**
13094
13144
  * Prefer drawing canvases directly instead of converting them to images.
13095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-canvas-to-image.md
13145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-canvas-to-image.md
13096
13146
  */
13097
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<[]>;
13098
13153
  /**
13099
13154
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
13100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-confusing-array-splice.md
13155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-confusing-array-splice.md
13101
13156
  */
13102
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<[]>;
13103
13163
  /**
13104
13164
  * Do not use leading/trailing space between `console.log` parameters.
13105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13106
13166
  */
13107
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<[]>;
13108
13173
  /**
13109
13174
  * Do not use `document.cookie` directly.
13110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13111
13176
  */
13112
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<[]>;
13113
13183
  /**
13114
13184
  * Disallow duplicate values in `Set` constructor array literals.
13115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-duplicate-set-values.md
13185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-duplicate-set-values.md
13116
13186
  */
13117
13187
  "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
13118
13188
  /**
13119
13189
  * Disallow empty files.
13120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13121
13191
  */
13122
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<[]>;
13123
13198
  /**
13124
13199
  * Disallow exports in scripts.
13125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-exports-in-scripts.md
13200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-exports-in-scripts.md
13126
13201
  */
13127
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<[]>;
13128
13208
  /**
13129
13209
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
13130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13131
13211
  */
13132
13212
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
13133
13213
  /**
13134
- * Enforce the use of Unicode escapes instead of hexadecimal escapes.
13135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13136
13222
  */
13137
13223
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
13138
13224
  /**
13139
13225
  * Disallow immediate mutation after variable assignment.
13140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13141
13227
  */
13142
13228
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
13143
13229
  /**
13144
13230
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
13145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-incorrect-query-selector.md
13231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-incorrect-query-selector.md
13146
13232
  */
13147
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<[]>;
13148
13239
  /**
13149
13240
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
13150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13151
13242
  * @deprecated
13152
13243
  */
13153
13244
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
13154
13245
  /**
13155
13246
  * Disallow `instanceof` with built-in objects
13156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13157
13248
  */
13158
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<[]>;
13159
13255
  /**
13160
13256
  * Disallow invalid options in `fetch()` and `new Request()`.
13161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13162
13258
  */
13163
13259
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
13164
13260
  /**
13165
13261
  * Disallow invalid `accept` values on file inputs.
13166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-invalid-file-input-accept.md
13262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-invalid-file-input-accept.md
13167
13263
  */
13168
13264
  "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
13169
13265
  /**
13170
13266
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
13171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13172
13268
  */
13173
13269
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
13174
13270
  /**
13175
13271
  * Disallow identifiers starting with `new` or `class`.
13176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13177
13273
  */
13178
13274
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
13179
13275
  /**
13180
13276
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
13181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-late-current-target-access.md
13277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-late-current-target-access.md
13182
13278
  */
13183
13279
  "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
13184
13280
  /**
13185
13281
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
13186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13187
13283
  * @deprecated
13188
13284
  */
13189
13285
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
13190
13286
  /**
13191
13287
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
13192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13193
13289
  */
13194
13290
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
13195
13291
  /**
13196
13292
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
13197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13198
13294
  */
13199
13295
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
13200
13296
  /**
13201
13297
  * Disallow manually wrapped comments.
13202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-manually-wrapped-comments.md
13298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-manually-wrapped-comments.md
13203
13299
  */
13204
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<[]>;
13205
13306
  /**
13206
13307
  * Disallow named usage of default import and export.
13207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13208
13309
  */
13209
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>;
13210
13321
  /**
13211
13322
  * Disallow negated conditions.
13212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13213
13324
  */
13214
13325
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
13215
13326
  /**
13216
13327
  * Disallow negated expression in equality check.
13217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13218
13329
  */
13219
13330
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
13220
13331
  /**
13221
13332
  * Disallow nested ternary expressions.
13222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13223
13334
  */
13224
13335
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
13225
13336
  /**
13226
13337
  * Disallow `new Array()`.
13227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13228
13339
  */
13229
13340
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
13230
13341
  /**
13231
13342
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
13232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13233
13344
  */
13234
13345
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
13235
13346
  /**
13236
13347
  * Disallow the use of the `null` literal.
13237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-null.md
13348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-null.md
13238
13349
  */
13239
13350
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
13240
13351
  /**
13241
13352
  * Disallow the use of objects as default parameters.
13242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13243
13354
  */
13244
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<[]>;
13245
13366
  /**
13246
13367
  * Disallow `process.exit()`.
13247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13248
13369
  */
13249
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<[]>;
13250
13381
  /**
13251
13382
  * Disallow passing single-element arrays to `Promise` methods.
13252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13253
13384
  */
13254
13385
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
13255
13386
  /**
13256
13387
  * Disallow classes that only have static members.
13257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13258
13389
  */
13259
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<[]>;
13260
13396
  /**
13261
13397
  * Disallow `then` property.
13262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-thenable.md
13398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-thenable.md
13263
13399
  */
13264
13400
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
13265
13401
  /**
13266
13402
  * Disallow assigning `this` to a variable.
13267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13268
13404
  */
13269
13405
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
13270
13406
  /**
13271
13407
  * Disallow `this` outside of classes.
13272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-this-outside-of-class.md
13408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-this-outside-of-class.md
13273
13409
  */
13274
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<[]>;
13275
13416
  /**
13276
13417
  * Disallow comparing `undefined` using `typeof`.
13277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13278
13419
  */
13279
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<[]>;
13280
13426
  /**
13281
13427
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
13282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13283
13429
  */
13284
13430
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
13285
13431
  /**
13286
13432
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
13287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13288
13434
  */
13289
13435
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
13290
13436
  /**
13291
13437
  * Disallow awaiting non-promise values.
13292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13293
13439
  */
13294
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<[]>;
13295
13446
  /**
13296
13447
  * Disallow unnecessary nested ternary expressions.
13297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unnecessary-nested-ternary.md
13448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unnecessary-nested-ternary.md
13298
13449
  */
13299
13450
  "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
13300
13451
  /**
13301
13452
  * Enforce the use of built-in methods instead of unnecessary polyfills.
13302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13303
13454
  */
13304
13455
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
13305
13456
  /**
13306
13457
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
13307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13308
13459
  */
13309
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<[]>;
13310
13466
  /**
13311
13467
  * Disallow unreadable array destructuring.
13312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13313
13469
  */
13314
- "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
13470
+ "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
13315
13471
  /**
13316
13472
  * Disallow unreadable IIFEs.
13317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13318
13474
  */
13319
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<[]>;
13320
13506
  /**
13321
13507
  * Disallow ignoring the return value of selected array methods.
13322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/no-unused-array-method-return.md
13508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/no-unused-array-method-return.md
13323
13509
  */
13324
13510
  "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
13325
13511
  /**
13326
13512
  * Disallow unused object properties.
13327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13328
13514
  */
13329
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<[]>;
13330
13521
  /**
13331
13522
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
13332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13333
13524
  */
13334
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<[]>;
13335
13536
  /**
13336
13537
  * Disallow unnecessary `Error.captureStackTrace(…)`.
13337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13338
13539
  */
13339
13540
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
13340
13541
  /**
13341
13542
  * Disallow useless fallback when spreading in object literals.
13342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13343
13544
  */
13344
13545
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
13345
13546
  /**
13346
13547
  * Disallow unnecessary `.toArray()` on iterators.
13347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13348
13549
  */
13349
13550
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
13350
13551
  /**
13351
13552
  * Disallow useless array length check.
13352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13353
13554
  */
13354
13555
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
13355
13556
  /**
13356
13557
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
13357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13358
13559
  */
13359
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<[]>;
13360
13566
  /**
13361
13567
  * Disallow unnecessary spread.
13362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13363
13569
  */
13364
13570
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
13365
13571
  /**
13366
13572
  * Disallow useless case in switch statements.
13367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13368
13574
  */
13369
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<[]>;
13370
13581
  /**
13371
13582
  * Disallow useless `undefined`.
13372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13373
13584
  */
13374
13585
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
13375
13586
  /**
13376
13587
  * Disallow number literals with zero fractions or dangling dots.
13377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13378
13589
  */
13379
13590
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
13380
13591
  /**
13381
13592
  * Enforce proper case for numeric literals.
13382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13383
13594
  */
13384
13595
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
13385
13596
  /**
13386
13597
  * Enforce the style of numeric separators by correctly grouping digits.
13387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13388
13599
  */
13389
13600
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
13390
13601
  /**
13391
13602
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
13392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13393
13604
  */
13394
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<[]>;
13395
13611
  /**
13396
13612
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
13397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13398
13614
  */
13399
13615
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
13400
13616
  /**
13401
13617
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
13402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13403
13619
  */
13404
13620
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
13405
13621
  /**
13406
- * Prefer `.flatMap(…)` over `.map(…).flat()`.
13407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13408
13624
  */
13409
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<[]>;
13410
13631
  /**
13411
13632
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
13412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13413
13634
  */
13414
13635
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
13415
13636
  /**
13416
13637
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
13417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-array-last-methods.md
13638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-array-last-methods.md
13418
13639
  */
13419
13640
  "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
13420
13641
  /**
13421
13642
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
13422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13423
13644
  */
13424
13645
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
13425
13646
  /**
13426
13647
  * Prefer `.at()` method for index access and `String#charAt()`.
13427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-at.md
13648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-at.md
13428
13649
  */
13429
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<[]>;
13430
13656
  /**
13431
13657
  * Prefer `BigInt` literals over the constructor.
13432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13433
13659
  */
13434
13660
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
13435
13661
  /**
13436
13662
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
13437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13438
13664
  */
13439
13665
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
13440
13666
  /**
13441
13667
  * Prefer class field declarations over `this` assignments in constructors.
13442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13443
13669
  */
13444
13670
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
13445
13671
  /**
13446
13672
  * Prefer using `Element#classList.toggle()` to toggle class names.
13447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13448
13674
  */
13449
13675
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
13450
13676
  /**
13451
13677
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
13452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13453
13679
  */
13454
13680
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
13455
13681
  /**
13456
13682
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
13457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13458
13684
  */
13459
13685
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
13460
13686
  /**
13461
13687
  * Prefer default parameters over reassignment.
13462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13463
13689
  */
13464
13690
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
13691
+ /**
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<[]>;
13465
13701
  /**
13466
13702
  * Prefer `Element#append()` over `Node#appendChild()`.
13467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-dom-node-append.md
13703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-dom-node-append.md
13468
13704
  */
13469
13705
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
13470
13706
  /**
13471
13707
  * Renamed to `unicorn/dom-node-dataset`.
13472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
13708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
13473
13709
  * @deprecated
13474
13710
  */
13475
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<[]>;
13476
13717
  /**
13477
13718
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
13478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13479
13720
  */
13480
13721
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
13481
13722
  /**
13482
13723
  * Prefer `.textContent` over `.innerText`.
13483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13484
13725
  */
13485
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>;
13486
13732
  /**
13487
13733
  * Prefer `EventTarget` over `EventEmitter`.
13488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13489
13735
  */
13490
13736
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
13491
13737
  /**
13492
13738
  * Prefer `export…from` when re-exporting.
13493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13494
13740
  */
13495
13741
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
13496
13742
  /**
13497
13743
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
13498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-get-or-insert-computed.md
13744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-get-or-insert-computed.md
13499
13745
  */
13500
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<[]>;
13501
13752
  /**
13502
13753
  * Prefer `globalThis` over `window`, `self`, and `global`.
13503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13504
13755
  */
13505
13756
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
13506
13757
  /**
13507
13758
  * Prefer HTTPS over HTTP.
13508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-https.md
13759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-https.md
13509
13760
  */
13510
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<[]>;
13511
13767
  /**
13512
13768
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
13513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13514
13770
  */
13515
13771
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
13516
13772
  /**
13517
13773
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
13518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-includes.md
13774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-includes.md
13519
13775
  */
13520
13776
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
13521
13777
  /**
13522
13778
  * Prefer `.includes()` over repeated equality comparisons.
13523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-includes-over-repeated-comparisons.md
13779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
13524
13780
  */
13525
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<[]>;
13526
13787
  /**
13527
13788
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
13528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-iterator-concat.md
13789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-concat.md
13529
13790
  */
13530
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<[]>;
13531
13797
  /**
13532
13798
  * Prefer moving `.toArray()` to the end of iterator helper chains.
13533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-iterator-to-array-at-end.md
13799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-iterator-to-array-at-end.md
13534
13800
  */
13535
13801
  "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
13536
13802
  /**
13537
13803
  * Renamed to `unicorn/consistent-json-file-read`.
13538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
13804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
13539
13805
  * @deprecated
13540
13806
  */
13541
13807
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
13542
13808
  /**
13543
13809
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
13544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-keyboard-event-key.md
13810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-keyboard-event-key.md
13545
13811
  */
13546
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<[]>;
13547
13818
  /**
13548
13819
  * Prefer using a logical operator over a ternary.
13549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13550
13821
  */
13551
13822
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
13552
13823
  /**
13553
13824
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
13554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-math-abs.md
13825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-math-abs.md
13555
13826
  */
13556
13827
  "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
13557
13828
  /**
13558
13829
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
13559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13560
13831
  */
13561
13832
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
13562
13833
  /**
13563
- * Enforce the use of `Math.trunc` instead of bitwise operators.
13564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13565
13836
  */
13566
13837
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
13567
13838
  /**
13568
- * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
13569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13570
13846
  */
13571
13847
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
13572
13848
  /**
13573
13849
  * Prefer modern `Math` APIs over legacy patterns.
13574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13575
13851
  */
13576
13852
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
13577
13853
  /**
13578
13854
  * Prefer JavaScript modules (ESM) over CommonJS.
13579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-module.md
13855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-module.md
13580
13856
  */
13581
13857
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
13582
13858
  /**
13583
13859
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
13584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13585
13861
  */
13586
13862
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
13587
13863
  /**
13588
13864
  * Prefer negative index over `.length - index` when possible.
13589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13590
13866
  */
13591
13867
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
13592
13868
  /**
13593
13869
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
13594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13595
13871
  */
13596
13872
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
13597
13873
  /**
13598
- * Prefer `Number` static properties over global ones.
13599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13600
13886
  */
13601
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<[]>;
13602
13898
  /**
13603
13899
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
13604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13605
13901
  */
13606
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<[]>;
13607
13908
  /**
13608
13909
  * Prefer omitting the `catch` binding parameter.
13609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13610
13911
  */
13611
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<[]>;
13612
13923
  /**
13613
13924
  * Prefer borrowing methods from the prototype instead of the instance.
13614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13615
13926
  */
13616
13927
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
13617
13928
  /**
13618
13929
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
13619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-query-selector.md
13930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-query-selector.md
13620
13931
  */
13621
13932
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
13622
13933
  /**
13623
13934
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
13624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-queue-microtask.md
13935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-queue-microtask.md
13625
13936
  */
13626
13937
  "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
13627
13938
  /**
13628
13939
  * Prefer `Reflect.apply()` over `Function#apply()`.
13629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13630
13941
  */
13631
13942
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
13632
13943
  /**
13633
- * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
13634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13635
13946
  */
13636
13947
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
13637
13948
  /**
13638
13949
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
13639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13640
13951
  */
13641
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<[]>;
13642
13958
  /**
13643
13959
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
13644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13645
13961
  */
13646
13962
  "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
13647
13963
  /**
13648
13964
  * Prefer using `Set#size` instead of `Array#length`.
13649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13650
13966
  */
13651
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<[]>;
13652
13973
  /**
13653
13974
  * Prefer simple conditions first in logical expressions.
13654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13655
13976
  */
13656
13977
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
13978
+ /**
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<[]>;
13657
13988
  /**
13658
13989
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
13659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-single-call.md
13990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-single-call.md
13660
13991
  */
13661
13992
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
13993
+ /**
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<[]>;
13662
14003
  /**
13663
14004
  * Prefer `String#split()` with a limit.
13664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-split-limit.md
14005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-split-limit.md
13665
14006
  */
13666
14007
  "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
13667
14008
  /**
13668
- * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
13669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-spread.md
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
13670
14011
  */
13671
14012
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
13672
14013
  /**
13673
14014
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
13674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-match-all.md
14015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-match-all.md
13675
14016
  */
13676
14017
  "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
13677
14018
  /**
13678
14019
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
13679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-pad-start-end.md
14020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-pad-start-end.md
13680
14021
  */
13681
14022
  "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
13682
14023
  /**
13683
14024
  * Prefer using the `String.raw` tag to avoid escaping `\`.
13684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13685
14026
  */
13686
14027
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
13687
14028
  /**
13688
14029
  * Prefer `String#repeat()` for repeated whitespace.
13689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-repeat.md
14030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-repeat.md
13690
14031
  */
13691
14032
  "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
13692
14033
  /**
13693
14034
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
13694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-string-replace-all.md
14035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-string-replace-all.md
13695
14036
  */
13696
14037
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
13697
14038
  /**
13698
14039
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
13699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13700
14041
  */
13701
14042
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
13702
14043
  /**
13703
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
13704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13705
14046
  */
13706
14047
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
13707
14048
  /**
13708
14049
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
13709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13710
14051
  */
13711
14052
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
13712
14053
  /**
13713
14054
  * Prefer using `structuredClone` to create a deep clone.
13714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13715
14056
  */
13716
14057
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
13717
14058
  /**
13718
14059
  * Prefer `switch` over multiple `else-if`.
13719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prefer-switch.md
14060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prefer-switch.md
13720
14061
  */
13721
14062
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
13722
14063
  /**
13723
- * Prefer ternary expressions over simple `if-else` statements.
13724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13725
14071
  */
13726
14072
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
13727
14073
  /**
13728
14074
  * Prefer top-level await over top-level promises and async function calls.
13729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13730
14076
  */
13731
14077
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
13732
14078
  /**
13733
14079
  * Enforce throwing `TypeError` in type checking conditions.
13734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13735
14081
  */
13736
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<[]>;
13737
14103
  /**
13738
14104
  * Prevent abbreviations.
13739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/prevent-abbreviations.md
14105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/prevent-abbreviations.md
13740
14106
  */
13741
14107
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
13742
14108
  /**
13743
14109
  * Enforce consistent relative URL style.
13744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13745
14111
  */
13746
14112
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
13747
14113
  /**
13748
14114
  * Enforce using the separator argument with `Array#join()`.
13749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13750
14116
  */
13751
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<[]>;
13752
14123
  /**
13753
14124
  * Require `CSS.escape()` for interpolated values in CSS selectors.
13754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-css-escape.md
14125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-css-escape.md
13755
14126
  */
13756
14127
  "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
13757
14128
  /**
13758
14129
  * Require non-empty module attributes for imports and exports
13759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13760
14131
  */
13761
14132
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
13762
14133
  /**
13763
14134
  * Require non-empty specifier list in import and export statements.
13764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13765
14136
  */
13766
14137
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
13767
14138
  /**
13768
14139
  * Enforce using the digits argument with `Number#toFixed()`.
13769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13770
14141
  */
13771
14142
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
13772
14143
  /**
13773
14144
  * Require passive event listeners for high-frequency events.
13774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/require-passive-events.md
14145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/require-passive-events.md
13775
14146
  */
13776
14147
  "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
13777
14148
  /**
13778
14149
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
13779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13780
14151
  */
13781
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<[]>;
13782
14158
  /**
13783
14159
  * Enforce better string content.
13784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/string-content.md
14160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/string-content.md
13785
14161
  */
13786
14162
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
13787
14163
  /**
13788
14164
  * Enforce consistent brace style for `case` clauses.
13789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13790
14166
  */
13791
14167
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
13792
14168
  /**
13793
14169
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
13794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13795
14171
  */
13796
14172
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
13797
14173
  /**
13798
14174
  * Fix whitespace-insensitive template indentation.
13799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/template-indent.md
14175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/template-indent.md
13800
14176
  */
13801
14177
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
13802
14178
  /**
13803
14179
  * Enforce consistent case for text encoding identifiers.
13804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13805
14181
  */
13806
14182
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
13807
14183
  /**
13808
14184
  * Require `new` when creating an error.
13809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/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
13810
14186
  */
13811
14187
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
13812
14188
  /**
13813
14189
  * Limit the complexity of `try` blocks.
13814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.1/docs/rules/try-complexity.md
14190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v66.0.0/docs/rules/try-complexity.md
13815
14191
  */
13816
14192
  "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
13817
14193
  }
@@ -13820,6 +14196,22 @@ interface UnicornRuleOptions {
13820
14196
  type UnicornCatchErrorName = [] | [{
13821
14197
  name?: string;
13822
14198
  ignore?: unknown[];
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")];
13823
14215
  }]; // ----- unicorn/consistent-compound-words -----
13824
14216
  type UnicornConsistentCompoundWords = [] | [{
13825
14217
  checkProperties?: boolean;
@@ -13836,9 +14228,19 @@ interface _UnicornConsistentCompoundWords_Replacements {
13836
14228
  }
13837
14229
  interface _UnicornConsistentCompoundWords_TrueObject {
13838
14230
  [k: string]: true | undefined;
13839
- } // ----- unicorn/consistent-function-scoping -----
14231
+ } // ----- unicorn/consistent-export-decorator-position -----
14232
+ type UnicornConsistentExportDecoratorPosition = [] | ["above" | "before" | "after"]; // ----- unicorn/consistent-function-scoping -----
13840
14233
  type UnicornConsistentFunctionScoping = [] | [{
13841
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";
13842
14244
  }]; // ----- unicorn/consistent-json-file-read -----
13843
14245
  type UnicornConsistentJsonFileRead = [] | ["string" | "buffer"]; // ----- unicorn/dom-node-dataset -----
13844
14246
  type UnicornDomNodeDataset = [] | [{
@@ -13855,15 +14257,17 @@ type UnicornExpiringTodoComments = [] | [{
13855
14257
  }]; // ----- unicorn/explicit-length-check -----
13856
14258
  type UnicornExplicitLengthCheck = [] | [{
13857
14259
  "non-zero"?: "greater-than" | "not-equal";
13858
- }]; // ----- unicorn/filename-case -----
14260
+ }]; // ----- unicorn/explicit-timer-delay -----
14261
+ type UnicornExplicitTimerDelay = [] | ["always" | "never"]; // ----- unicorn/filename-case -----
13859
14262
  type UnicornFilenameCase = [] | [{
13860
- case?: "camelCase" | "snakeCase" | "kebabCase" | "pascalCase";
14263
+ case?: "camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase";
13861
14264
  ignore?: unknown[];
13862
14265
  multipleFileExtensions?: boolean;
13863
14266
  checkDirectories?: boolean;
13864
14267
  } | {
13865
14268
  cases?: {
13866
14269
  camelCase?: boolean;
14270
+ camelCaseWithAcronyms?: boolean;
13867
14271
  snakeCase?: boolean;
13868
14272
  kebabCase?: boolean;
13869
14273
  pascalCase?: boolean;
@@ -13871,6 +14275,13 @@ type UnicornFilenameCase = [] | [{
13871
14275
  ignore?: unknown[];
13872
14276
  multipleFileExtensions?: boolean;
13873
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;
13874
14285
  }]; // ----- unicorn/import-style -----
13875
14286
  type UnicornImportStyle = [] | [{
13876
14287
  checkImport?: boolean;
@@ -13894,6 +14305,9 @@ type UnicornIsolatedFunctions = [] | [{
13894
14305
  functions?: string[];
13895
14306
  selectors?: string[];
13896
14307
  comments?: string[];
14308
+ }]; // ----- unicorn/max-nested-calls -----
14309
+ type UnicornMaxNestedCalls = [] | [{
14310
+ max?: number;
13897
14311
  }]; // ----- unicorn/no-array-callback-reference -----
13898
14312
  type UnicornNoArrayCallbackReference = [] | [{
13899
14313
  ignore?: string[];
@@ -13920,6 +14334,9 @@ type UnicornNoKeywordPrefix = [] | [{
13920
14334
  disallowedPrefixes?: [] | [string];
13921
14335
  checkProperties?: boolean;
13922
14336
  onlyCamelCase?: boolean;
14337
+ }]; // ----- unicorn/no-negated-comparison -----
14338
+ type UnicornNoNegatedComparison = [] | [{
14339
+ checkLogicalExpressions?: boolean;
13923
14340
  }]; // ----- unicorn/no-null -----
13924
14341
  type UnicornNoNull = [] | [{
13925
14342
  checkArguments?: boolean;
@@ -13932,6 +14349,9 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
13932
14349
  targets?: string | unknown[] | {
13933
14350
  [k: string]: unknown | undefined;
13934
14351
  };
14352
+ }]; // ----- unicorn/no-unreadable-array-destructuring -----
14353
+ type UnicornNoUnreadableArrayDestructuring = [] | [{
14354
+ maximumIgnoredElements?: number;
13935
14355
  }]; // ----- unicorn/no-useless-undefined -----
13936
14356
  type UnicornNoUselessUndefined = [] | [{
13937
14357
  checkArguments?: boolean;
@@ -13976,6 +14396,9 @@ type UnicornPreferArrayFlat = [] | [{
13976
14396
  type UnicornPreferAt = [] | [{
13977
14397
  getLastElementFunctions?: unknown[];
13978
14398
  checkAllIndexAccess?: boolean;
14399
+ }]; // ----- unicorn/prefer-early-return -----
14400
+ type UnicornPreferEarlyReturn = [] | [{
14401
+ maximumStatements?: number;
13979
14402
  }]; // ----- unicorn/prefer-export-from -----
13980
14403
  type UnicornPreferExportFrom = [] | [{
13981
14404
  checkUsedVariables?: boolean;
@@ -14012,6 +14435,11 @@ type UnicornPreferStructuredClone = [] | [{
14012
14435
  type UnicornPreferSwitch = [] | [{
14013
14436
  minimumCases?: number;
14014
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;
14015
14443
  }]; // ----- unicorn/prefer-ternary -----
14016
14444
  type UnicornPreferTernary = [] | ["always" | "only-single-line"]; // ----- unicorn/prevent-abbreviations -----
14017
14445
  type UnicornPreventAbbreviations = [] | [{
@@ -14052,7 +14480,7 @@ type UnicornStringContent = [] | [{
14052
14480
  };
14053
14481
  selectors?: string[];
14054
14482
  }]; // ----- unicorn/switch-case-braces -----
14055
- type UnicornSwitchCaseBraces = [] | ["always" | "avoid"]; // ----- unicorn/template-indent -----
14483
+ type UnicornSwitchCaseBraces = [] | ["always" | "avoid" | "single-statement"]; // ----- unicorn/template-indent -----
14056
14484
  type UnicornTemplateIndent = [] | [{
14057
14485
  indent?: string | number;
14058
14486
  tags?: string[];
@@ -15051,7 +15479,7 @@ type TailwindEslintSettings = {
15051
15479
  whitelist: string[];
15052
15480
  };
15053
15481
  type TailwindOptions = Partial<TailwindEslintSettings> | boolean | undefined;
15054
- type OptionsConfig = {
15482
+ type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & {
15055
15483
  /**
15056
15484
  * Enable debug mode.
15057
15485
  */
@@ -15080,7 +15508,7 @@ type OptionsConfig = {
15080
15508
  * Enable Prettier config rules to disable conflicting ESLint rules
15081
15509
  *
15082
15510
  * THIS DOES NOT ENABLE PRETTIER FORMATTING. YOU DO THAT, BUT I
15083
- * RECOMMEND USING PRETTIER TO FORMAT AND NOT THE ESLINT PRETTIER
15511
+ * RECOMMEND USING PRETTIER TO FORMAT AND NOT THE ESLint PRETTIER
15084
15512
  * PLUGIN!.
15085
15513
  */
15086
15514
  prettier?: boolean;
@@ -15197,7 +15625,7 @@ type OptionsConfig = {
15197
15625
  markdown?: Config["rules"];
15198
15626
  yaml?: Config["rules"];
15199
15627
  };
15200
- } & OptionsComponentExts & OptionsTypeScriptParserOptions;
15628
+ };
15201
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] };
15202
15630
  //#endregion
15203
15631
  //#region src/const.d.ts
@@ -15207,7 +15635,7 @@ declare const SLOW_RULES: RuleName[];
15207
15635
  /**
15208
15636
  * Construct an array of ESLint flat config items.
15209
15637
  * @param options Configuration options `@jsse/eslint-config` & ESLint Flat Config
15210
- * @param userConfigs Additional user eslint configs to merge in
15638
+ * @param userConfigs Additional user ESLint configs to merge in
15211
15639
  * @returns Array of ESLint flat config items
15212
15640
  */
15213
15641
  declare function jsse(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;