@pengzhanbo/eslint-config 2.6.0 → 2.7.0

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.
Files changed (3) hide show
  1. package/dist/index.d.mts +1044 -233
  2. package/dist/index.mjs +11 -8
  3. package/package.json +33 -33
package/dist/index.d.mts CHANGED
@@ -765,6 +765,11 @@ interface RuleOptions {
765
765
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
766
766
  */
767
767
  'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
768
+ /**
769
+ * disallow omitted end tags
770
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-omitted-end-tags/
771
+ */
772
+ 'astro/no-omitted-end-tags'?: Linter.RuleEntry<[]>;
768
773
  /**
769
774
  * disallow `prerender` export outside of pages/ directory
770
775
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-prerender-export-outside-pages/
@@ -4035,6 +4040,11 @@ interface RuleOptions {
4035
4040
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-fetch
4036
4041
  */
4037
4042
  'react/web-api-no-leaked-fetch'?: Linter.RuleEntry<[]>;
4043
+ /**
4044
+ * Enforces that every 'IntersectionObserver' created in a component or custom hook has a corresponding 'IntersectionObserver.disconnect()'.
4045
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-intersection-observer
4046
+ */
4047
+ 'react/web-api-no-leaked-intersection-observer'?: Linter.RuleEntry<[]>;
4038
4048
  /**
4039
4049
  * Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
4040
4050
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
@@ -5510,6 +5520,11 @@ interface RuleOptions {
5510
5520
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-add-event-listener/
5511
5521
  */
5512
5522
  'svelte/no-add-event-listener'?: Linter.RuleEntry<[]>;
5523
+ /**
5524
+ * disallow the use of `{@const}` in favor of `{const ...}` declaration tags
5525
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-const-tags/
5526
+ */
5527
+ 'svelte/no-at-const-tags'?: Linter.RuleEntry<[]>;
5513
5528
  /**
5514
5529
  * disallow the use of `{@debug}`
5515
5530
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-debug-tags/
@@ -5819,7 +5834,7 @@ interface RuleOptions {
5819
5834
  */
5820
5835
  'svelte/valid-each-key'?: Linter.RuleEntry<[]>;
5821
5836
  /**
5822
- * disallow props other than data or errors in SvelteKit page components.
5837
+ * disallow invalid props in SvelteKit route components.
5823
5838
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/
5824
5839
  */
5825
5840
  'svelte/valid-prop-names-in-kit-pages'?: Linter.RuleEntry<[]>;
@@ -7072,918 +7087,1620 @@ interface RuleOptions {
7072
7087
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7073
7088
  /**
7074
7089
  * Prefer better DOM traversal APIs.
7075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/better-dom-traversing.md
7090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/better-dom-traversing.md
7076
7091
  */
7077
7092
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7078
7093
  /**
7079
7094
  * Removed. Prefer `eslint-plugin-regexp`
7080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7081
7096
  * @deprecated
7082
7097
  */
7083
7098
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7084
7099
  /**
7085
7100
  * Enforce a specific parameter name in catch clauses.
7086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/catch-error-name.md
7101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/catch-error-name.md
7087
7102
  */
7088
7103
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7104
+ /**
7105
+ * Enforce consistent class references in static methods.
7106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/class-reference-in-static-methods.md
7107
+ */
7108
+ 'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7109
+ /**
7110
+ * Enforce better comment content.
7111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
7112
+ */
7113
+ 'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7089
7114
  /**
7090
7115
  * Enforce consistent assertion style with `node:assert`.
7091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-assert.md
7116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
7092
7117
  */
7093
7118
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7119
+ /**
7120
+ * Enforce consistent naming for boolean names.
7121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
7122
+ */
7123
+ 'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7124
+ /**
7125
+ * Enforce consistent class member order.
7126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
7127
+ */
7128
+ 'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7094
7129
  /**
7095
7130
  * Enforce consistent spelling of compound words in identifiers.
7096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-compound-words.md
7131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
7097
7132
  */
7098
7133
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7134
+ /**
7135
+ * Enforce consistent conditional object spread style.
7136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
7137
+ */
7138
+ 'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7099
7139
  /**
7100
7140
  * Prefer passing `Date` directly to the constructor when cloning.
7101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-date-clone.md
7141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
7102
7142
  */
7103
7143
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7104
7144
  /**
7105
7145
  * Use destructured variables over properties.
7106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-destructuring.md
7146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
7107
7147
  */
7108
7148
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7109
7149
  /**
7110
7150
  * Prefer consistent types when spreading a ternary in an array literal.
7111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-empty-array-spread.md
7151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
7112
7152
  */
7113
7153
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7114
7154
  /**
7115
7155
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-existence-index-check.md
7156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
7117
7157
  */
7118
7158
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7159
+ /**
7160
+ * Enforce consistent decorator position on exported classes.
7161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
7162
+ */
7163
+ 'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7119
7164
  /**
7120
7165
  * Move function definitions to the highest possible scope.
7121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-function-scoping.md
7166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
7122
7167
  */
7123
7168
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7169
+ /**
7170
+ * Enforce function syntax by role.
7171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
7172
+ */
7173
+ 'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7124
7174
  /**
7125
7175
  * Enforce consistent JSON file reads before `JSON.parse()`.
7126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-json-file-read.md
7176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
7127
7177
  */
7128
7178
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7179
+ /**
7180
+ * Enforce consistent optional chaining for same-base member access.
7181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
7182
+ */
7183
+ 'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7129
7184
  /**
7130
7185
  * Enforce consistent style for escaping `${` in template literals.
7131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/consistent-template-literal-escape.md
7186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
7132
7187
  */
7133
7188
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7189
+ /**
7190
+ * Enforce consistent labels on tuple type elements.
7191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
7192
+ */
7193
+ 'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7134
7194
  /**
7135
7195
  * Enforce correct `Error` subclassing.
7136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/custom-error-definition.md
7196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
7137
7197
  */
7138
7198
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7199
+ /**
7200
+ * Enforce consistent default export declarations.
7201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
7202
+ */
7203
+ 'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7139
7204
  /**
7140
7205
  * Enforce consistent style for DOM element dataset access.
7141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/dom-node-dataset.md
7206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
7142
7207
  */
7143
7208
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7144
7209
  /**
7145
7210
  * Enforce no spaces between braces.
7146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/empty-brace-spaces.md
7211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
7147
7212
  */
7148
7213
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7149
7214
  /**
7150
7215
  * Enforce passing a `message` value when creating a built-in error.
7151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/error-message.md
7216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
7152
7217
  */
7153
7218
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7154
7219
  /**
7155
7220
  * Require escape sequences to use uppercase or lowercase values.
7156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/escape-case.md
7221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
7157
7222
  */
7158
7223
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7159
7224
  /**
7160
7225
  * Add expiration conditions to TODO comments.
7161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/expiring-todo-comments.md
7226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
7162
7227
  */
7163
7228
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7164
7229
  /**
7165
7230
  * Enforce explicitly comparing the `length` or `size` property of a value.
7166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/explicit-length-check.md
7231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
7167
7232
  */
7168
7233
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7234
+ /**
7235
+ * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
7237
+ */
7238
+ 'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7169
7239
  /**
7170
7240
  * Enforce a case style for filenames and directory names.
7171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/filename-case.md
7241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
7172
7242
  */
7173
7243
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7244
+ /**
7245
+ * Require identifiers to match a specified regular expression.
7246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
7247
+ */
7248
+ 'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7174
7249
  /**
7175
7250
  * Enforce specific import styles per module.
7176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/import-style.md
7251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
7177
7252
  */
7178
7253
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7179
7254
  /**
7180
7255
  * Prevent usage of variables from outside the scope of isolated functions.
7181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/isolated-functions.md
7256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
7182
7257
  */
7183
7258
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7184
7259
  /**
7185
- * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
7186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/new-for-builtins.md
7260
+ * Require or disallow logical assignment operator shorthand
7261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
7262
+ */
7263
+ 'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7264
+ /**
7265
+ * Limit the depth of nested calls.
7266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
7267
+ */
7268
+ 'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7269
+ /**
7270
+ * Enforce replacements for variable, property, and filenames.
7271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
7272
+ */
7273
+ 'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7274
+ /**
7275
+ * Enforce correct use of `new` for builtin constructors.
7276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
7187
7277
  */
7188
7278
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7189
7279
  /**
7190
7280
  * Enforce specifying rules to disable in `eslint-disable` comments.
7191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-abusive-eslint-disable.md
7281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
7192
7282
  */
7193
7283
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7194
7284
  /**
7195
7285
  * Disallow recursive access to `this` within getters and setters.
7196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-accessor-recursion.md
7286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
7197
7287
  */
7198
7288
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7289
+ /**
7290
+ * Disallow bitwise operators where a logical operator was likely intended.
7291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
7292
+ */
7293
+ 'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7199
7294
  /**
7200
7295
  * Disallow anonymous functions and classes as the default export.
7201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-anonymous-default-export.md
7296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
7202
7297
  */
7203
7298
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7204
7299
  /**
7205
7300
  * Prevent passing a function reference directly to iterator methods.
7206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-callback-reference.md
7301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
7207
7302
  */
7208
7303
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7209
7304
  /**
7210
- * Disallow using reference values as `Array#fill()` values.
7211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-fill-with-reference-type.md
7305
+ * Disallow array accumulation with `Array#concat()` in loops.
7306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
7212
7307
  */
7213
- 'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7308
+ 'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7214
7309
  /**
7215
- * Prefer `for…of` over the `forEach` method.
7216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-for-each.md
7310
+ * Disallow using reference values as `Array#fill()` values.
7311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
7217
7312
  */
7218
- 'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
7313
+ 'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7219
7314
  /**
7220
7315
  * Disallow `.fill()` after `Array.from({length: …})`.
7221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-from-fill.md
7316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
7222
7317
  */
7223
7318
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7319
+ /**
7320
+ * Disallow front-of-array mutation.
7321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
7322
+ */
7323
+ 'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7224
7324
  /**
7225
7325
  * Disallow using the `this` argument in array methods.
7226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-method-this-argument.md
7326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
7227
7327
  */
7228
7328
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7229
7329
  /**
7230
7330
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7232
7332
  * @deprecated
7233
7333
  */
7234
7334
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7235
7335
  /**
7236
7336
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-reduce.md
7337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
7238
7338
  */
7239
7339
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7240
7340
  /**
7241
7341
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-reverse.md
7342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
7243
7343
  */
7244
7344
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7245
7345
  /**
7246
7346
  * Prefer `Array#toSorted()` over `Array#sort()`.
7247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-array-sort.md
7347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
7248
7348
  */
7249
7349
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7350
+ /**
7351
+ * Disallow sorting arrays to get the minimum or maximum value.
7352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
7353
+ */
7354
+ 'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7355
+ /**
7356
+ * Prefer `Array#toSpliced()` over `Array#splice()`.
7357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
7358
+ */
7359
+ 'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7360
+ /**
7361
+ * Disallow asterisk prefixes in documentation comments.
7362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7363
+ */
7364
+ 'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7250
7365
  /**
7251
7366
  * Disallow member access from await expression.
7252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-await-expression-member.md
7367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
7253
7368
  */
7254
7369
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7255
7370
  /**
7256
7371
  * Disallow using `await` in `Promise` method parameters.
7257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-await-in-promise-methods.md
7372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
7258
7373
  */
7259
7374
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7260
7375
  /**
7261
7376
  * Disallow unnecessary `Blob` to `File` conversion.
7262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-blob-to-file.md
7377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
7263
7378
  */
7264
7379
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7380
+ /**
7381
+ * Disallow boolean-returning sort comparators.
7382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
7383
+ */
7384
+ 'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7385
+ /**
7386
+ * Disallow `break` and `continue` in nested loops and switches inside loops.
7387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
7388
+ */
7389
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7265
7390
  /**
7266
7391
  * Prefer drawing canvases directly instead of converting them to images.
7267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-canvas-to-image.md
7392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
7268
7393
  */
7269
7394
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7395
+ /**
7396
+ * Disallow chained comparisons such as `a < b < c`.
7397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
7398
+ */
7399
+ 'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7400
+ /**
7401
+ * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
7403
+ */
7404
+ 'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7405
+ /**
7406
+ * Disallow dynamic object property existence checks.
7407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
7408
+ */
7409
+ 'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7270
7410
  /**
7271
7411
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-confusing-array-splice.md
7412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
7273
7413
  */
7274
7414
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7415
+ /**
7416
+ * Disallow confusing uses of `Array#with()`.
7417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
7418
+ */
7419
+ 'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7275
7420
  /**
7276
7421
  * Do not use leading/trailing space between `console.log` parameters.
7277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-console-spaces.md
7422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
7278
7423
  */
7279
7424
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7425
+ /**
7426
+ * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
7428
+ */
7429
+ 'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7430
+ /**
7431
+ * Disallow declarations before conditional early exits when they are only used after the exit.
7432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
7433
+ */
7434
+ 'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7280
7435
  /**
7281
7436
  * Do not use `document.cookie` directly.
7282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-document-cookie.md
7437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
7283
7438
  */
7284
7439
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7440
+ /**
7441
+ * Disallow two comparisons of the same operands that can be combined into one.
7442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
7443
+ */
7444
+ 'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7445
+ /**
7446
+ * Disallow duplicate adjacent branches in if chains.
7447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
7448
+ */
7449
+ 'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7450
+ /**
7451
+ * Disallow adjacent duplicate operands in logical expressions.
7452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
7453
+ */
7454
+ 'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7455
+ /**
7456
+ * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
7458
+ */
7459
+ 'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7285
7460
  /**
7286
7461
  * Disallow duplicate values in `Set` constructor array literals.
7287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-duplicate-set-values.md
7462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
7288
7463
  */
7289
7464
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7290
7465
  /**
7291
7466
  * Disallow empty files.
7292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-empty-file.md
7467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
7293
7468
  */
7294
7469
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7470
+ /**
7471
+ * Disallow assigning to built-in error properties.
7472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
7473
+ */
7474
+ 'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7295
7475
  /**
7296
7476
  * Disallow exports in scripts.
7297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-exports-in-scripts.md
7477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
7298
7478
  */
7299
7479
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7480
+ /**
7481
+ * Prefer `for…of` over the `forEach` method.
7482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
7483
+ */
7484
+ 'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7300
7485
  /**
7301
7486
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-for-loop.md
7487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
7303
7488
  */
7304
7489
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7305
7490
  /**
7306
- * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-hex-escape.md
7491
+ * Disallow assigning properties on the global object.
7492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
7493
+ */
7494
+ 'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7495
+ /**
7496
+ * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7498
+ * @deprecated
7308
7499
  */
7309
7500
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7310
7501
  /**
7311
7502
  * Disallow immediate mutation after variable assignment.
7312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-immediate-mutation.md
7503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
7313
7504
  */
7314
7505
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7506
+ /**
7507
+ * Disallow impossible comparisons against `.length` or `.size`.
7508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
7509
+ */
7510
+ 'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7315
7511
  /**
7316
7512
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-incorrect-query-selector.md
7513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
7318
7514
  */
7319
7515
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7516
+ /**
7517
+ * Disallow incorrect template literal interpolation syntax.
7518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7519
+ */
7520
+ 'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7320
7521
  /**
7321
7522
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7323
7524
  * @deprecated
7324
7525
  */
7325
7526
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7326
7527
  /**
7327
7528
  * Disallow `instanceof` with built-in objects
7328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-instanceof-builtins.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
7329
7530
  */
7330
7531
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7532
+ /**
7533
+ * Disallow calling functions and constructors with an invalid number of arguments.
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
7535
+ */
7536
+ 'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7537
+ /**
7538
+ * Disallow comparing a single character from a string to a multi-character string.
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
7540
+ */
7541
+ 'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7331
7542
  /**
7332
7543
  * Disallow invalid options in `fetch()` and `new Request()`.
7333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-invalid-fetch-options.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
7334
7545
  */
7335
7546
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7336
7547
  /**
7337
7548
  * Disallow invalid `accept` values on file inputs.
7338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-invalid-file-input-accept.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
7339
7550
  */
7340
7551
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7341
7552
  /**
7342
7553
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-invalid-remove-event-listener.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
7344
7555
  */
7345
7556
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7557
+ /**
7558
+ * Disallow invalid implementations of well-known symbol methods.
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7560
+ */
7561
+ 'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7346
7562
  /**
7347
7563
  * Disallow identifiers starting with `new` or `class`.
7348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-keyword-prefix.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
7349
7565
  */
7350
7566
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7351
7567
  /**
7352
7568
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-late-current-target-access.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
7354
7570
  */
7355
7571
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7572
+ /**
7573
+ * Disallow event-control method calls after the synchronous event dispatch has finished.
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
7575
+ */
7576
+ 'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7356
7577
  /**
7357
7578
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7359
7580
  * @deprecated
7360
7581
  */
7361
7582
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7362
7583
  /**
7363
7584
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-lonely-if.md
7585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
7365
7586
  */
7366
7587
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7588
+ /**
7589
+ * Disallow mutating a loop iterable during iteration.
7590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
7591
+ */
7592
+ 'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7367
7593
  /**
7368
7594
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-magic-array-flat-depth.md
7595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
7370
7596
  */
7371
7597
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7372
7598
  /**
7373
7599
  * Disallow manually wrapped comments.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-manually-wrapped-comments.md
7600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
7375
7601
  */
7376
7602
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7603
+ /**
7604
+ * Disallow checking a Map key before accessing a different key.
7605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
7606
+ */
7607
+ 'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7608
+ /**
7609
+ * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
7611
+ */
7612
+ 'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7377
7613
  /**
7378
7614
  * Disallow named usage of default import and export.
7379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-named-default.md
7615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
7380
7616
  */
7381
7617
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7618
+ /**
7619
+ * Disallow negated array predicate calls.
7620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
7621
+ */
7622
+ 'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7623
+ /**
7624
+ * Disallow negated comparisons.
7625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
7626
+ */
7627
+ 'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7382
7628
  /**
7383
7629
  * Disallow negated conditions.
7384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-negated-condition.md
7630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
7385
7631
  */
7386
7632
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7387
7633
  /**
7388
7634
  * Disallow negated expression in equality check.
7389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-negation-in-equality-check.md
7635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
7390
7636
  */
7391
7637
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7392
7638
  /**
7393
7639
  * Disallow nested ternary expressions.
7394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-nested-ternary.md
7640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
7395
7641
  */
7396
7642
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7397
7643
  /**
7398
7644
  * Disallow `new Array()`.
7399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-new-array.md
7645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
7400
7646
  */
7401
7647
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7402
7648
  /**
7403
7649
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-new-buffer.md
7650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
7405
7651
  */
7406
7652
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7653
+ /**
7654
+ * Disallow non-function values with function-style verb prefixes.
7655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
7656
+ */
7657
+ 'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7658
+ /**
7659
+ * Disallow non-standard properties on built-in objects.
7660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
7661
+ */
7662
+ 'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7407
7663
  /**
7408
7664
  * Disallow the use of the `null` literal.
7409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-null.md
7665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
7410
7666
  */
7411
7667
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7412
7668
  /**
7413
7669
  * Disallow the use of objects as default parameters.
7414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-object-as-default-parameter.md
7670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
7415
7671
  */
7416
7672
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7673
+ /**
7674
+ * Disallow `Object` methods with `Map` or `Set`.
7675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
7676
+ */
7677
+ 'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7678
+ /**
7679
+ * Disallow optional chaining on undeclared variables.
7680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7681
+ */
7682
+ 'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7417
7683
  /**
7418
7684
  * Disallow `process.exit()`.
7419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-process-exit.md
7685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
7420
7686
  */
7421
7687
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7688
+ /**
7689
+ * Disallow comparisons made redundant by an equality check in the same logical AND.
7690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
7691
+ */
7692
+ 'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7693
+ /**
7694
+ * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
7696
+ */
7697
+ 'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7698
+ /**
7699
+ * Disallow selector syntax in DOM names.
7700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
7701
+ */
7702
+ 'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7422
7703
  /**
7423
7704
  * Disallow passing single-element arrays to `Promise` methods.
7424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-single-promise-in-promise-methods.md
7705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
7425
7706
  */
7426
7707
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7427
7708
  /**
7428
7709
  * Disallow classes that only have static members.
7429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-static-only-class.md
7710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
7430
7711
  */
7431
7712
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7713
+ /**
7714
+ * Prefer comparing values directly over subtracting and comparing to `0`.
7715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
7716
+ */
7717
+ 'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7432
7718
  /**
7433
7719
  * Disallow `then` property.
7434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-thenable.md
7720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
7435
7721
  */
7436
7722
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7437
7723
  /**
7438
7724
  * Disallow assigning `this` to a variable.
7439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-this-assignment.md
7725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
7440
7726
  */
7441
7727
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7442
7728
  /**
7443
7729
  * Disallow `this` outside of classes.
7444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-this-outside-of-class.md
7730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
7445
7731
  */
7446
7732
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7733
+ /**
7734
+ * Disallow assigning to top-level variables from inside functions.
7735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
7736
+ */
7737
+ 'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7738
+ /**
7739
+ * Disallow top-level side effects in exported modules.
7740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
7741
+ */
7742
+ 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7447
7743
  /**
7448
7744
  * Disallow comparing `undefined` using `typeof`.
7449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-typeof-undefined.md
7745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
7450
7746
  */
7451
7747
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7748
+ /**
7749
+ * Disallow referencing methods without calling them.
7750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
7751
+ */
7752
+ 'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7753
+ /**
7754
+ * Require class members to be declared.
7755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
7756
+ */
7757
+ 'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7452
7758
  /**
7453
7759
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7455
7761
  */
7456
7762
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7457
7763
  /**
7458
7764
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-array-splice-count.md
7765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
7460
7766
  */
7461
7767
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7462
7768
  /**
7463
7769
  * Disallow awaiting non-promise values.
7464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-await.md
7770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
7465
7771
  */
7466
7772
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7773
+ /**
7774
+ * Disallow unnecessary comparisons against boolean literals.
7775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7776
+ */
7777
+ 'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7778
+ /**
7779
+ * Disallow unnecessary `globalThis` references.
7780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
7781
+ */
7782
+ 'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7467
7783
  /**
7468
7784
  * Disallow unnecessary nested ternary expressions.
7469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-nested-ternary.md
7785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
7470
7786
  */
7471
7787
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7472
7788
  /**
7473
7789
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-polyfills.md
7790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
7475
7791
  */
7476
7792
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7477
7793
  /**
7478
7794
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unnecessary-slice-end.md
7795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
7480
7796
  */
7481
7797
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7798
+ /**
7799
+ * Disallow `Array#splice()` when simpler alternatives exist.
7800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
7801
+ */
7802
+ 'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7482
7803
  /**
7483
7804
  * Disallow unreadable array destructuring.
7484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unreadable-array-destructuring.md
7805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
7806
+ */
7807
+ 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7808
+ /**
7809
+ * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
7485
7811
  */
7486
- 'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
7812
+ 'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7487
7813
  /**
7488
7814
  * Disallow unreadable IIFEs.
7489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unreadable-iife.md
7815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
7490
7816
  */
7491
7817
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7818
+ /**
7819
+ * Disallow unreadable `new` expressions.
7820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
7821
+ */
7822
+ 'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7823
+ /**
7824
+ * Disallow unreadable object destructuring.
7825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
7826
+ */
7827
+ 'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7828
+ /**
7829
+ * Prevent unsafe use of ArrayBuffer view `.buffer`.
7830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
7831
+ */
7832
+ 'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7833
+ /**
7834
+ * Disallow unsafe DOM HTML APIs.
7835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
7836
+ */
7837
+ 'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7838
+ /**
7839
+ * Disallow unsafe values as property keys.
7840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
7841
+ */
7842
+ 'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7843
+ /**
7844
+ * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
7846
+ */
7847
+ 'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7492
7848
  /**
7493
7849
  * Disallow ignoring the return value of selected array methods.
7494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unused-array-method-return.md
7850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
7495
7851
  */
7496
7852
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7497
7853
  /**
7498
7854
  * Disallow unused object properties.
7499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-unused-properties.md
7855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
7500
7856
  */
7501
7857
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7858
+ /**
7859
+ * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
7861
+ */
7862
+ 'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7863
+ /**
7864
+ * Disallow useless type coercions of values that are already of the target type.
7865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
7866
+ */
7867
+ 'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7502
7868
  /**
7503
7869
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-collection-argument.md
7870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
7505
7871
  */
7506
7872
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7873
+ /**
7874
+ * Disallow useless compound assignments such as `x += 0`.
7875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
7876
+ */
7877
+ 'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7878
+ /**
7879
+ * Disallow useless concatenation of literals.
7880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
7881
+ */
7882
+ 'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7883
+ /**
7884
+ * Disallow useless `continue` statements.
7885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
7886
+ */
7887
+ 'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7888
+ /**
7889
+ * Disallow unnecessary existence checks before deletion.
7890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
7891
+ */
7892
+ 'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7893
+ /**
7894
+ * Disallow `else` after a statement that exits.
7895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
7896
+ */
7897
+ 'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7507
7898
  /**
7508
7899
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7510
7901
  */
7511
7902
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7512
7903
  /**
7513
7904
  * Disallow useless fallback when spreading in object literals.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-fallback-in-spread.md
7905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
7515
7906
  */
7516
7907
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7517
7908
  /**
7518
7909
  * Disallow unnecessary `.toArray()` on iterators.
7519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-iterator-to-array.md
7910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
7520
7911
  */
7521
7912
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7522
7913
  /**
7523
7914
  * Disallow useless array length check.
7524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-length-check.md
7915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
7525
7916
  */
7526
7917
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7918
+ /**
7919
+ * Disallow unnecessary operands in logical expressions involving boolean literals.
7920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
7921
+ */
7922
+ 'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7923
+ /**
7924
+ * Disallow useless overrides of class methods.
7925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
7926
+ */
7927
+ 'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7527
7928
  /**
7528
7929
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-promise-resolve-reject.md
7930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
7530
7931
  */
7531
7932
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7933
+ /**
7934
+ * Disallow simple recursive function calls that can be replaced with a loop.
7935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
7936
+ */
7937
+ 'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7532
7938
  /**
7533
7939
  * Disallow unnecessary spread.
7534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-spread.md
7940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
7535
7941
  */
7536
7942
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7537
7943
  /**
7538
7944
  * Disallow useless case in switch statements.
7539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-switch-case.md
7945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
7540
7946
  */
7541
7947
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7948
+ /**
7949
+ * Disallow useless template literal expressions.
7950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
7951
+ */
7952
+ 'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7542
7953
  /**
7543
7954
  * Disallow useless `undefined`.
7544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-useless-undefined.md
7955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
7545
7956
  */
7546
7957
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7958
+ /**
7959
+ * Disallow the bitwise XOR operator where exponentiation was likely intended.
7960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
7961
+ */
7962
+ 'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7547
7963
  /**
7548
7964
  * Disallow number literals with zero fractions or dangling dots.
7549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/no-zero-fractions.md
7965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
7550
7966
  */
7551
7967
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7552
7968
  /**
7553
7969
  * Enforce proper case for numeric literals.
7554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/number-literal-case.md
7970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
7555
7971
  */
7556
7972
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7557
7973
  /**
7558
7974
  * Enforce the style of numeric separators by correctly grouping digits.
7559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/numeric-separators-style.md
7975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
7560
7976
  */
7561
7977
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7978
+ /**
7979
+ * Require assignment operator shorthand where possible.
7980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
7981
+ */
7982
+ 'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7983
+ /**
7984
+ * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
7986
+ */
7987
+ 'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7562
7988
  /**
7563
7989
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-add-event-listener.md
7990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
7565
7991
  */
7566
7992
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7993
+ /**
7994
+ * Prefer an options object over a boolean in `.addEventListener()`.
7995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
7996
+ */
7997
+ 'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7998
+ /**
7999
+ * Prefer `AggregateError` when throwing collected errors.
8000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
8001
+ */
8002
+ 'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7567
8003
  /**
7568
8004
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-find.md
8005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
7570
8006
  */
7571
8007
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7572
8008
  /**
7573
8009
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-flat.md
8010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
7575
8011
  */
7576
8012
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7577
8013
  /**
7578
- * Prefer `.flatMap(…)` over `.map(…).flat()`.
7579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-flat-map.md
8014
+ * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
7580
8016
  */
7581
8017
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8018
+ /**
8019
+ * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
8021
+ */
8022
+ 'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8023
+ /**
8024
+ * Prefer using the `Array.from()` mapping function argument.
8025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
8026
+ */
8027
+ 'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7582
8028
  /**
7583
8029
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-index-of.md
8030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
7585
8031
  */
7586
8032
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8033
+ /**
8034
+ * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
8036
+ */
8037
+ 'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7587
8038
  /**
7588
8039
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-last-methods.md
8040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
7590
8041
  */
7591
8042
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8043
+ /**
8044
+ * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
8046
+ */
8047
+ 'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7592
8048
  /**
7593
8049
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-array-some.md
8050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
7595
8051
  */
7596
8052
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7597
8053
  /**
7598
8054
  * Prefer `.at()` method for index access and `String#charAt()`.
7599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-at.md
8055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
7600
8056
  */
7601
8057
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8058
+ /**
8059
+ * Prefer `await` over promise chaining.
8060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
8061
+ */
8062
+ 'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7602
8063
  /**
7603
8064
  * Prefer `BigInt` literals over the constructor.
7604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-bigint-literals.md
8065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
7605
8066
  */
7606
8067
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7607
8068
  /**
7608
8069
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-blob-reading-methods.md
8070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
7610
8071
  */
7611
8072
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8073
+ /**
8074
+ * Prefer directly returning boolean expressions over `if` statements.
8075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
8076
+ */
8077
+ 'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7612
8078
  /**
7613
8079
  * Prefer class field declarations over `this` assignments in constructors.
7614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-class-fields.md
8080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
7615
8081
  */
7616
8082
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7617
8083
  /**
7618
8084
  * Prefer using `Element#classList.toggle()` to toggle class names.
7619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-classlist-toggle.md
8085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
7620
8086
  */
7621
8087
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7622
8088
  /**
7623
8089
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-code-point.md
8090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
7625
8091
  */
7626
8092
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8093
+ /**
8094
+ * Prefer early continues over whole-loop conditional wrapping.
8095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
8096
+ */
8097
+ 'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7627
8098
  /**
7628
8099
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-date-now.md
8100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
7630
8101
  */
7631
8102
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7632
8103
  /**
7633
8104
  * Prefer default parameters over reassignment.
7634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-default-parameters.md
8105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
7635
8106
  */
7636
8107
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8108
+ /**
8109
+ * Prefer direct iteration over default iterator method calls.
8110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
8111
+ */
8112
+ 'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8113
+ /**
8114
+ * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
8116
+ */
8117
+ 'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
7637
8118
  /**
7638
8119
  * Prefer `Element#append()` over `Node#appendChild()`.
7639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-dom-node-append.md
8120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
7640
8121
  */
7641
8122
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7642
8123
  /**
7643
8124
  * Renamed to `unicorn/dom-node-dataset`.
7644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7645
8126
  * @deprecated
7646
8127
  */
7647
8128
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8129
+ /**
8130
+ * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
8132
+ */
8133
+ 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
7648
8134
  /**
7649
8135
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-dom-node-remove.md
8136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
7651
8137
  */
7652
8138
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8139
+ /**
8140
+ * Prefer `.replaceChildren()` when emptying DOM children.
8141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
8142
+ */
8143
+ 'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7653
8144
  /**
7654
8145
  * Prefer `.textContent` over `.innerText`.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-dom-node-text-content.md
8146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
7656
8147
  */
7657
8148
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8149
+ /**
8150
+ * Prefer early returns over full-function conditional wrapping.
8151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
8152
+ */
8153
+ 'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8154
+ /**
8155
+ * Prefer `else if` over adjacent `if` statements with related conditions.
8156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
8157
+ */
8158
+ 'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8159
+ /**
8160
+ * Prefer `Error.isError()` when checking for errors.
8161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
8162
+ */
8163
+ 'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7658
8164
  /**
7659
8165
  * Prefer `EventTarget` over `EventEmitter`.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-event-target.md
8166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
7661
8167
  */
7662
8168
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7663
8169
  /**
7664
8170
  * Prefer `export…from` when re-exporting.
7665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-export-from.md
8171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
7666
8172
  */
7667
8173
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8174
+ /**
8175
+ * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
8177
+ */
8178
+ 'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
7668
8179
  /**
7669
8180
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
7670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-get-or-insert-computed.md
8181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
7671
8182
  */
7672
8183
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8184
+ /**
8185
+ * Prefer global numeric constants over `Number` static properties.
8186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
8187
+ */
8188
+ 'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7673
8189
  /**
7674
8190
  * Prefer `globalThis` over `window`, `self`, and `global`.
7675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-global-this.md
8191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
7676
8192
  */
7677
8193
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8194
+ /**
8195
+ * Prefer `.has()` when checking existence.
8196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
8197
+ */
8198
+ 'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8199
+ /**
8200
+ * Prefer moving code shared by all branches of an `if` statement out of the branches.
8201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
8202
+ */
8203
+ 'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
7678
8204
  /**
7679
8205
  * Prefer HTTPS over HTTP.
7680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-https.md
8206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
7681
8207
  */
7682
8208
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
8209
+ /**
8210
+ * Prefer identifiers over string literals in import and export specifiers.
8211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8212
+ */
8213
+ 'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7683
8214
  /**
7684
8215
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-import-meta-properties.md
8216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
7686
8217
  */
7687
8218
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7688
8219
  /**
7689
8220
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-includes.md
8221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
7691
8222
  */
7692
8223
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7693
8224
  /**
7694
8225
  * Prefer `.includes()` over repeated equality comparisons.
7695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7696
8227
  */
7697
8228
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8229
+ /**
8230
+ * Prefer passing iterables directly to constructors instead of filling empty collections.
8231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
8232
+ */
8233
+ 'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
7698
8234
  /**
7699
8235
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
7700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-iterator-concat.md
8236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
7701
8237
  */
7702
8238
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8239
+ /**
8240
+ * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
8242
+ */
8243
+ 'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
7703
8244
  /**
7704
8245
  * Prefer moving `.toArray()` to the end of iterator helper chains.
7705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7706
8247
  */
7707
8248
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
7708
8249
  /**
7709
8250
  * Renamed to `unicorn/consistent-json-file-read`.
7710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7711
8252
  * @deprecated
7712
8253
  */
7713
8254
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7714
8255
  /**
7715
8256
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-keyboard-event-key.md
8257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
7717
8258
  */
7718
8259
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8260
+ /**
8261
+ * Prefer `location.assign()` over assigning to `location.href`.
8262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
8263
+ */
8264
+ 'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7719
8265
  /**
7720
8266
  * Prefer using a logical operator over a ternary.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7722
8268
  */
7723
8269
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8270
+ /**
8271
+ * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
8273
+ */
8274
+ 'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
7724
8275
  /**
7725
8276
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-math-abs.md
8277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
7727
8278
  */
7728
8279
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8280
+ /**
8281
+ * Prefer `Math` constants over their approximate numeric values.
8282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
8283
+ */
8284
+ 'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7729
8285
  /**
7730
8286
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-math-min-max.md
8287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
7732
8288
  */
7733
8289
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7734
8290
  /**
7735
- * Enforce the use of `Math.trunc` instead of bitwise operators.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-math-trunc.md
8291
+ * Prefer `Math.trunc()` for truncating numbers.
8292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
7737
8293
  */
7738
8294
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7739
8295
  /**
7740
- * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-modern-dom-apis.md
8296
+ * Prefer moving ternaries into the minimal varying part of an expression.
8297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
8298
+ */
8299
+ 'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8300
+ /**
8301
+ * Prefer modern DOM APIs.
8302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
7742
8303
  */
7743
8304
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7744
8305
  /**
7745
8306
  * Prefer modern `Math` APIs over legacy patterns.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-modern-math-apis.md
8307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
7747
8308
  */
7748
8309
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7749
8310
  /**
7750
8311
  * Prefer JavaScript modules (ESM) over CommonJS.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-module.md
8312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
7752
8313
  */
7753
8314
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7754
8315
  /**
7755
8316
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-native-coercion-functions.md
8317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
7757
8318
  */
7758
8319
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7759
8320
  /**
7760
8321
  * Prefer negative index over `.length - index` when possible.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-negative-index.md
8322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
7762
8323
  */
7763
8324
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7764
8325
  /**
7765
8326
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-node-protocol.md
8327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
7767
8328
  */
7768
8329
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7769
8330
  /**
7770
- * Prefer `Number` static properties over global ones.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-number-properties.md
8331
+ * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
8333
+ */
8334
+ 'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8335
+ /**
8336
+ * Prefer `Number.isSafeInteger()` over integer checks.
8337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
8338
+ */
8339
+ 'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8340
+ /**
8341
+ * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
7772
8343
  */
7773
8344
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8345
+ /**
8346
+ * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
8348
+ */
8349
+ 'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8350
+ /**
8351
+ * Prefer object destructuring defaults over default object literals with spread.
8352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
8353
+ */
8354
+ 'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7774
8355
  /**
7775
8356
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-object-from-entries.md
8357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
7777
8358
  */
7778
8359
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8360
+ /**
8361
+ * Prefer the most specific `Object` iterable method.
8362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
8363
+ */
8364
+ 'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8365
+ /**
8366
+ * Prefer observer APIs over resize and scroll listeners with layout reads.
8367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
8368
+ */
8369
+ 'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
7779
8370
  /**
7780
8371
  * Prefer omitting the `catch` binding parameter.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-optional-catch-binding.md
8372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
7782
8373
  */
7783
8374
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8375
+ /**
8376
+ * Prefer `Path2D` for repeatedly drawn canvas paths.
8377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
8378
+ */
8379
+ 'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8380
+ /**
8381
+ * Prefer private class fields over the underscore-prefix convention.
8382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
8383
+ */
8384
+ 'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8385
+ /**
8386
+ * Prefer `Promise.try()` over promise-wrapping boilerplate.
8387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
8388
+ */
8389
+ 'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8390
+ /**
8391
+ * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
8393
+ */
8394
+ 'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
7784
8395
  /**
7785
8396
  * Prefer borrowing methods from the prototype instead of the instance.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-prototype-methods.md
8397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
7787
8398
  */
7788
8399
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7789
8400
  /**
7790
8401
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-query-selector.md
8402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
7792
8403
  */
7793
8404
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
7794
8405
  /**
7795
8406
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-queue-microtask.md
8407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
7797
8408
  */
7798
8409
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
7799
8410
  /**
7800
8411
  * Prefer `Reflect.apply()` over `Function#apply()`.
7801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-reflect-apply.md
8412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
7802
8413
  */
7803
8414
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7804
8415
  /**
7805
- * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-regexp-test.md
8416
+ * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
8418
+ */
8419
+ 'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8420
+ /**
8421
+ * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
7807
8423
  */
7808
8424
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7809
8425
  /**
7810
8426
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-response-static-json.md
8427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
7812
8428
  */
7813
8429
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8430
+ /**
8431
+ * Prefer `:scope` when using element query selector methods.
8432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
8433
+ */
8434
+ 'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
7814
8435
  /**
7815
8436
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-set-has.md
8437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
7817
8438
  */
7818
8439
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8440
+ /**
8441
+ * Prefer `Set` methods for Set operations.
8442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
8443
+ */
8444
+ 'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
7819
8445
  /**
7820
8446
  * Prefer using `Set#size` instead of `Array#length`.
7821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-set-size.md
8447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
7822
8448
  */
7823
8449
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8450
+ /**
8451
+ * Prefer arrow function properties over methods with a single return.
8452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
8453
+ */
8454
+ 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
7824
8455
  /**
7825
8456
  * Prefer simple conditions first in logical expressions.
7826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-simple-condition-first.md
8457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
7827
8458
  */
7828
8459
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8460
+ /**
8461
+ * Prefer a simple comparison function for `Array#sort()`.
8462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
8463
+ */
8464
+ 'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8465
+ /**
8466
+ * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
8468
+ */
8469
+ 'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
7829
8470
  /**
7830
8471
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-single-call.md
8472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
7832
8473
  */
7833
8474
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8475
+ /**
8476
+ * Prefer a single object destructuring declaration per local const source.
8477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
8478
+ */
8479
+ 'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8480
+ /**
8481
+ * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
8483
+ */
8484
+ 'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8485
+ /**
8486
+ * Prefer declaring variables in the smallest possible scope.
8487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
8488
+ */
8489
+ 'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
7834
8490
  /**
7835
8491
  * Prefer `String#split()` with a limit.
7836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-split-limit.md
8492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
7837
8493
  */
7838
8494
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
7839
8495
  /**
7840
- * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-spread.md
8496
+ * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
7842
8498
  */
7843
8499
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7844
8500
  /**
7845
8501
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
7846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-match-all.md
8502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
7847
8503
  */
7848
8504
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
7849
8505
  /**
7850
8506
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
7851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-pad-start-end.md
8507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
7852
8508
  */
7853
8509
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
7854
8510
  /**
7855
8511
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-raw.md
8512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
7857
8513
  */
7858
8514
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7859
8515
  /**
7860
8516
  * Prefer `String#repeat()` for repeated whitespace.
7861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-repeat.md
8517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
7862
8518
  */
7863
8519
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
7864
8520
  /**
7865
8521
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
7866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-replace-all.md
8522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
7867
8523
  */
7868
8524
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7869
8525
  /**
7870
8526
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-slice.md
8527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
7872
8528
  */
7873
8529
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7874
8530
  /**
7875
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-starts-ends-with.md
8531
+ * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
8532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
7877
8533
  */
7878
8534
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7879
8535
  /**
7880
8536
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-string-trim-start-end.md
8537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
7882
8538
  */
7883
8539
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7884
8540
  /**
7885
8541
  * Prefer using `structuredClone` to create a deep clone.
7886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-structured-clone.md
8542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
7887
8543
  */
7888
8544
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7889
8545
  /**
7890
8546
  * Prefer `switch` over multiple `else-if`.
7891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-switch.md
8547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
7892
8548
  */
7893
8549
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7894
8550
  /**
7895
- * Prefer ternary expressions over simple `if-else` statements.
7896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-ternary.md
8551
+ * Prefer `Temporal` over `Date`.
8552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
8553
+ */
8554
+ 'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8555
+ /**
8556
+ * Prefer ternary expressions over simple `if` statements that return or assign values.
8557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
7897
8558
  */
7898
8559
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8560
+ /**
8561
+ * Prefer using `Element#toggleAttribute()` to toggle attributes.
8562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
8563
+ */
8564
+ 'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
7899
8565
  /**
7900
8566
  * Prefer top-level await over top-level promises and async function calls.
7901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-top-level-await.md
8567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
7902
8568
  */
7903
8569
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7904
8570
  /**
7905
8571
  * Enforce throwing `TypeError` in type checking conditions.
7906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prefer-type-error.md
8572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
7907
8573
  */
7908
8574
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7909
8575
  /**
7910
- * Prevent abbreviations.
7911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/prevent-abbreviations.md
8576
+ * Require type literals to be last in union types.
8577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
8578
+ */
8579
+ 'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8580
+ /**
8581
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
8583
+ */
8584
+ 'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8585
+ /**
8586
+ * Prefer the unary minus operator over multiplying or dividing by `-1`.
8587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
8588
+ */
8589
+ 'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8590
+ /**
8591
+ * Prefer Unicode code point escapes over legacy escape sequences.
8592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
7912
8593
  */
7913
- 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
8594
+ 'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8595
+ /**
8596
+ * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
8598
+ */
8599
+ 'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8600
+ /**
8601
+ * Prefer `URL#href` over stringifying a `URL`.
8602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
8603
+ */
8604
+ 'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8605
+ /**
8606
+ * Prefer `URLSearchParams` over manually splitting query strings.
8607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
8608
+ */
8609
+ 'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8610
+ /**
8611
+ * Prefer putting the condition in the while statement.
8612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
8613
+ */
8614
+ 'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8615
+ /**
8616
+ * Renamed to `unicorn/name-replacements`.
8617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8618
+ * @deprecated
8619
+ */
8620
+ 'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
7914
8621
  /**
7915
8622
  * Enforce consistent relative URL style.
7916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/relative-url-style.md
8623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
7917
8624
  */
7918
8625
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
7919
8626
  /**
7920
8627
  * Enforce using the separator argument with `Array#join()`.
7921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-array-join-separator.md
8628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
7922
8629
  */
7923
8630
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8631
+ /**
8632
+ * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
8634
+ */
8635
+ 'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
7924
8636
  /**
7925
8637
  * Require `CSS.escape()` for interpolated values in CSS selectors.
7926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-css-escape.md
8638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
7927
8639
  */
7928
8640
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
7929
8641
  /**
7930
8642
  * Require non-empty module attributes for imports and exports
7931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-module-attributes.md
8643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
7932
8644
  */
7933
8645
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
7934
8646
  /**
7935
8647
  * Require non-empty specifier list in import and export statements.
7936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-module-specifiers.md
8648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
7937
8649
  */
7938
8650
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
7939
8651
  /**
7940
8652
  * Enforce using the digits argument with `Number#toFixed()`.
7941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7942
8654
  */
7943
8655
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
7944
8656
  /**
7945
8657
  * Require passive event listeners for high-frequency events.
7946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-passive-events.md
8658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
7947
8659
  */
7948
8660
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
7949
8661
  /**
7950
8662
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/require-post-message-target-origin.md
8663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
7952
8664
  */
7953
8665
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8666
+ /**
8667
+ * Require boolean-returning Proxy traps to return booleans.
8668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
8669
+ */
8670
+ 'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
7954
8671
  /**
7955
8672
  * Enforce better string content.
7956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/string-content.md
8673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
7957
8674
  */
7958
8675
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
7959
8676
  /**
7960
8677
  * Enforce consistent brace style for `case` clauses.
7961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/switch-case-braces.md
8678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
7962
8679
  */
7963
8680
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
7964
8681
  /**
7965
8682
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
7966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/switch-case-break-position.md
8683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
7967
8684
  */
7968
8685
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
7969
8686
  /**
7970
8687
  * Fix whitespace-insensitive template indentation.
7971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/template-indent.md
8688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
7972
8689
  */
7973
8690
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
7974
8691
  /**
7975
8692
  * Enforce consistent case for text encoding identifiers.
7976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/text-encoding-identifier-case.md
8693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
7977
8694
  */
7978
8695
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
7979
8696
  /**
7980
8697
  * Require `new` when creating an error.
7981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/throw-new-error.md
8698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
7982
8699
  */
7983
8700
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
7984
8701
  /**
7985
8702
  * Limit the complexity of `try` blocks.
7986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v65.0.0/docs/rules/try-complexity.md
8703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
7987
8704
  */
7988
8705
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
7989
8706
  /**
@@ -9500,6 +10217,11 @@ interface RuleOptions {
9500
10217
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-tab-indent.html
9501
10218
  */
9502
10219
  'yaml/no-tab-indent'?: Linter.RuleEntry<[]>;
10220
+ /**
10221
+ * disallow trailing whitespace at the end of lines
10222
+ * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-spaces.html
10223
+ */
10224
+ 'yaml/no-trailing-spaces'?: Linter.RuleEntry<YamlNoTrailingSpaces>;
9503
10225
  /**
9504
10226
  * disallow trailing zeros for floats
9505
10227
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-zeros.html
@@ -17679,6 +18401,30 @@ type UnicodeBom = [] | [("always" | "never")]; // ----- unicorn/catch-error-name
17679
18401
  type UnicornCatchErrorName = [] | [{
17680
18402
  name?: string;
17681
18403
  ignore?: unknown[];
18404
+ }]; // ----- unicorn/class-reference-in-static-methods -----
18405
+ type UnicornClassReferenceInStaticMethods = [] | [{
18406
+ preferThis?: boolean;
18407
+ preferSuper?: boolean;
18408
+ }]; // ----- unicorn/comment-content -----
18409
+ type UnicornCommentContent = [] | [{
18410
+ checkUniformCase?: boolean;
18411
+ extendDefaultReplacements?: boolean;
18412
+ replacements?: {
18413
+ [k: string]: (false | string | {
18414
+ replacement: string;
18415
+ caseSensitive?: boolean;
18416
+ }) | undefined;
18417
+ };
18418
+ }]; // ----- unicorn/consistent-boolean-name -----
18419
+ type UnicornConsistentBooleanName = [] | [{
18420
+ checkProperties?: boolean;
18421
+ prefixes?: {
18422
+ [k: string]: boolean | undefined;
18423
+ };
18424
+ ignore?: unknown[];
18425
+ }]; // ----- unicorn/consistent-class-member-order -----
18426
+ type UnicornConsistentClassMemberOrder = [] | [{
18427
+ order?: [("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method"), ("static-field" | "static-block" | "static-method" | "private-field" | "public-field" | "constructor" | "private-method" | "public-method")];
17682
18428
  }]; // ----- unicorn/consistent-compound-words -----
17683
18429
  type UnicornConsistentCompoundWords = [] | [{
17684
18430
  checkProperties?: boolean;
@@ -17695,11 +18441,26 @@ interface _UnicornConsistentCompoundWords_Replacements {
17695
18441
  }
17696
18442
  interface _UnicornConsistentCompoundWords_TrueObject {
17697
18443
  [k: string]: true | undefined;
17698
- } // ----- unicorn/consistent-function-scoping -----
18444
+ } // ----- unicorn/consistent-conditional-object-spread -----
18445
+ type UnicornConsistentConditionalObjectSpread = [] | [("logical" | "ternary")]; // ----- unicorn/consistent-export-decorator-position -----
18446
+ type UnicornConsistentExportDecoratorPosition = [] | [("above" | "before" | "after")]; // ----- unicorn/consistent-function-scoping -----
17699
18447
  type UnicornConsistentFunctionScoping = [] | [{
17700
18448
  checkArrowFunctions?: boolean;
18449
+ }]; // ----- unicorn/consistent-function-style -----
18450
+ type UnicornConsistentFunctionStyle = [] | [{
18451
+ default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18452
+ namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18453
+ namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18454
+ callbacks?: ("function-expression" | "arrow-function" | "ignore");
18455
+ objectProperties?: ("method" | "function-expression" | "arrow-function" | "ignore");
18456
+ reassignedVariables?: ("function-expression" | "arrow-function" | "ignore");
18457
+ typedVariables?: ("function-expression" | "arrow-function" | "ignore");
17701
18458
  }]; // ----- unicorn/consistent-json-file-read -----
17702
- type UnicornConsistentJsonFileRead = [] | [("string" | "buffer")]; // ----- unicorn/dom-node-dataset -----
18459
+ type UnicornConsistentJsonFileRead = [] | [("string" | "buffer")]; // ----- unicorn/default-export-style -----
18460
+ type UnicornDefaultExportStyle = [] | [{
18461
+ functions?: ("inline" | "separate" | "ignore");
18462
+ classes?: ("inline" | "separate" | "ignore");
18463
+ }]; // ----- unicorn/dom-node-dataset -----
17703
18464
  type UnicornDomNodeDataset = [] | [{
17704
18465
  preferAttributes?: boolean;
17705
18466
  }]; // ----- unicorn/escape-case -----
@@ -17714,15 +18475,17 @@ type UnicornExpiringTodoComments = [] | [{
17714
18475
  }]; // ----- unicorn/explicit-length-check -----
17715
18476
  type UnicornExplicitLengthCheck = [] | [{
17716
18477
  "non-zero"?: ("greater-than" | "not-equal");
17717
- }]; // ----- unicorn/filename-case -----
18478
+ }]; // ----- unicorn/explicit-timer-delay -----
18479
+ type UnicornExplicitTimerDelay = [] | [("always" | "never")]; // ----- unicorn/filename-case -----
17718
18480
  type UnicornFilenameCase = [] | [({
17719
- case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
18481
+ case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
17720
18482
  ignore?: unknown[];
17721
18483
  multipleFileExtensions?: boolean;
17722
18484
  checkDirectories?: boolean;
17723
18485
  } | {
17724
18486
  cases?: {
17725
18487
  camelCase?: boolean;
18488
+ camelCaseWithAcronyms?: boolean;
17726
18489
  snakeCase?: boolean;
17727
18490
  kebabCase?: boolean;
17728
18491
  pascalCase?: boolean;
@@ -17730,7 +18493,14 @@ type UnicornFilenameCase = [] | [({
17730
18493
  ignore?: unknown[];
17731
18494
  multipleFileExtensions?: boolean;
17732
18495
  checkDirectories?: boolean;
17733
- })]; // ----- unicorn/import-style -----
18496
+ })]; // ----- unicorn/id-match -----
18497
+ type UnicornIdMatch = [] | [string] | [string, {
18498
+ properties?: boolean;
18499
+ classFields?: boolean;
18500
+ onlyDeclarations?: boolean;
18501
+ ignoreDestructuring?: boolean;
18502
+ checkNamedSpecifiers?: boolean;
18503
+ }]; // ----- unicorn/import-style -----
17734
18504
  type UnicornImportStyle = [] | [{
17735
18505
  checkImport?: boolean;
17736
18506
  checkDynamicImport?: boolean;
@@ -17753,7 +18523,36 @@ type UnicornIsolatedFunctions = [] | [{
17753
18523
  functions?: string[];
17754
18524
  selectors?: string[];
17755
18525
  comments?: string[];
17756
- }]; // ----- unicorn/no-array-callback-reference -----
18526
+ }]; // ----- unicorn/logical-assignment-operators -----
18527
+ type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
18528
+ enforceForIfStatements?: boolean;
18529
+ }] | ["never"]) & unknown[]); // ----- unicorn/max-nested-calls -----
18530
+ type UnicornMaxNestedCalls = [] | [{
18531
+ max?: number;
18532
+ }]; // ----- unicorn/name-replacements -----
18533
+ type UnicornNameReplacements = [] | [{
18534
+ checkProperties?: boolean;
18535
+ checkVariables?: boolean;
18536
+ checkDefaultAndNamespaceImports?: (boolean | string);
18537
+ checkShorthandImports?: (boolean | string);
18538
+ checkShorthandProperties?: boolean;
18539
+ checkFilenames?: boolean;
18540
+ extendDefaultReplacements?: boolean;
18541
+ replacements?: _UnicornNameReplacements_NameReplacements;
18542
+ extendDefaultAllowList?: boolean;
18543
+ allowList?: _UnicornNameReplacements_BooleanObject;
18544
+ ignore?: unknown[];
18545
+ }];
18546
+ type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
18547
+ interface _UnicornNameReplacements_NameReplacements {
18548
+ [k: string]: _UnicornNameReplacementsReplacements | undefined;
18549
+ }
18550
+ interface _UnicornNameReplacements_BooleanObject {
18551
+ [k: string]: boolean | undefined;
18552
+ }
18553
+ interface _UnicornNameReplacements_BooleanObject {
18554
+ [k: string]: boolean | undefined;
18555
+ } // ----- unicorn/no-array-callback-reference -----
17757
18556
  type UnicornNoArrayCallbackReference = [] | [{
17758
18557
  ignore?: string[];
17759
18558
  }]; // ----- unicorn/no-array-reduce -----
@@ -17774,11 +18573,23 @@ type UnicornNoInstanceofBuiltins = [] | [{
17774
18573
  strategy?: ("loose" | "strict");
17775
18574
  include?: string[];
17776
18575
  exclude?: string[];
18576
+ }]; // ----- unicorn/no-invalid-argument-count -----
18577
+ type UnicornNoInvalidArgumentCount = [] | [{
18578
+ [k: string]: (number | [number, ...(number)[]] | {
18579
+ min?: number;
18580
+ max?: number;
18581
+ }) | undefined;
17777
18582
  }]; // ----- unicorn/no-keyword-prefix -----
17778
18583
  type UnicornNoKeywordPrefix = [] | [{
17779
18584
  disallowedPrefixes?: [] | [string];
17780
18585
  checkProperties?: boolean;
17781
18586
  onlyCamelCase?: boolean;
18587
+ }]; // ----- unicorn/no-negated-comparison -----
18588
+ type UnicornNoNegatedComparison = [] | [{
18589
+ checkLogicalExpressions?: boolean;
18590
+ }]; // ----- unicorn/no-non-function-verb-prefix -----
18591
+ type UnicornNoNonFunctionVerbPrefix = [] | [{
18592
+ verbs?: string[];
17782
18593
  }]; // ----- unicorn/no-null -----
17783
18594
  type UnicornNoNull = [] | [{
17784
18595
  checkArguments?: boolean;
@@ -17791,6 +18602,9 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
17791
18602
  targets?: (string | unknown[] | {
17792
18603
  [k: string]: unknown | undefined;
17793
18604
  });
18605
+ }]; // ----- unicorn/no-unreadable-array-destructuring -----
18606
+ type UnicornNoUnreadableArrayDestructuring = [] | [{
18607
+ maximumIgnoredElements?: number;
17794
18608
  }]; // ----- unicorn/no-useless-undefined -----
17795
18609
  type UnicornNoUselessUndefined = [] | [{
17796
18610
  checkArguments?: boolean;
@@ -17822,7 +18636,8 @@ type UnicornNumericSeparatorsStyle = [] | [{
17822
18636
  fractionGroupLength?: number;
17823
18637
  };
17824
18638
  onlyIfContainsSeparator?: boolean;
17825
- }]; // ----- unicorn/prefer-add-event-listener -----
18639
+ }]; // ----- unicorn/operator-assignment -----
18640
+ type UnicornOperatorAssignment = [] | [("always" | "never")]; // ----- unicorn/prefer-add-event-listener -----
17826
18641
  type UnicornPreferAddEventListener = [] | [{
17827
18642
  excludedPackages?: string[];
17828
18643
  }]; // ----- unicorn/prefer-array-find -----
@@ -17835,12 +18650,22 @@ type UnicornPreferArrayFlat = [] | [{
17835
18650
  type UnicornPreferAt = [] | [{
17836
18651
  getLastElementFunctions?: unknown[];
17837
18652
  checkAllIndexAccess?: boolean;
18653
+ }]; // ----- unicorn/prefer-continue -----
18654
+ type UnicornPreferContinue = [] | [{
18655
+ maximumStatements?: number;
18656
+ }]; // ----- unicorn/prefer-early-return -----
18657
+ type UnicornPreferEarlyReturn = [] | [{
18658
+ maximumStatements?: number;
17838
18659
  }]; // ----- unicorn/prefer-export-from -----
17839
18660
  type UnicornPreferExportFrom = [] | [{
17840
18661
  checkUsedVariables?: boolean;
17841
18662
  }]; // ----- unicorn/prefer-includes-over-repeated-comparisons -----
17842
18663
  type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
17843
18664
  minimumComparisons?: number;
18665
+ }]; // ----- unicorn/prefer-minimal-ternary -----
18666
+ type UnicornPreferMinimalTernary = [] | [{
18667
+ checkVaryingCallee?: boolean;
18668
+ checkComputedMemberAccess?: boolean;
17844
18669
  }]; // ----- unicorn/prefer-number-properties -----
17845
18670
  type UnicornPreferNumberProperties = [] | [{
17846
18671
  checkInfinity?: boolean;
@@ -17871,31 +18696,13 @@ type UnicornPreferStructuredClone = [] | [{
17871
18696
  type UnicornPreferSwitch = [] | [{
17872
18697
  minimumCases?: number;
17873
18698
  emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case");
18699
+ }]; // ----- unicorn/prefer-temporal -----
18700
+ type UnicornPreferTemporal = [] | [{
18701
+ checkDateNow?: boolean;
18702
+ checkReferences?: boolean;
18703
+ checkMethods?: boolean;
17874
18704
  }]; // ----- unicorn/prefer-ternary -----
17875
- type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/prevent-abbreviations -----
17876
- type UnicornPreventAbbreviations = [] | [{
17877
- checkProperties?: boolean;
17878
- checkVariables?: boolean;
17879
- checkDefaultAndNamespaceImports?: (boolean | string);
17880
- checkShorthandImports?: (boolean | string);
17881
- checkShorthandProperties?: boolean;
17882
- checkFilenames?: boolean;
17883
- extendDefaultReplacements?: boolean;
17884
- replacements?: _UnicornPreventAbbreviations_Abbreviations;
17885
- extendDefaultAllowList?: boolean;
17886
- allowList?: _UnicornPreventAbbreviations_BooleanObject;
17887
- ignore?: unknown[];
17888
- }];
17889
- type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined;
17890
- interface _UnicornPreventAbbreviations_Abbreviations {
17891
- [k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
17892
- }
17893
- interface _UnicornPreventAbbreviations_BooleanObject {
17894
- [k: string]: boolean | undefined;
17895
- }
17896
- interface _UnicornPreventAbbreviations_BooleanObject {
17897
- [k: string]: boolean | undefined;
17898
- } // ----- unicorn/relative-url-style -----
18705
+ type UnicornPreferTernary = [] | [("always" | "only-single-line")]; // ----- unicorn/relative-url-style -----
17899
18706
  type UnicornRelativeUrlStyle = [] | [("never" | "always")]; // ----- unicorn/require-css-escape -----
17900
18707
  type UnicornRequireCssEscape = [] | [{
17901
18708
  checkAllSelectors?: boolean;
@@ -17911,7 +18718,7 @@ type UnicornStringContent = [] | [{
17911
18718
  };
17912
18719
  selectors?: string[];
17913
18720
  }]; // ----- unicorn/switch-case-braces -----
17914
- type UnicornSwitchCaseBraces = [] | [("always" | "avoid")]; // ----- unicorn/template-indent -----
18721
+ type UnicornSwitchCaseBraces = [] | [("always" | "avoid" | "single-statement")]; // ----- unicorn/template-indent -----
17915
18722
  type UnicornTemplateIndent = [] | [{
17916
18723
  indent?: (string | number);
17917
18724
  tags?: string[];
@@ -19265,6 +20072,10 @@ type YamlNoMultipleEmptyLines = [] | [{
19265
20072
  max: number;
19266
20073
  maxEOF?: number;
19267
20074
  maxBOF?: number;
20075
+ }]; // ----- yaml/no-trailing-spaces -----
20076
+ type YamlNoTrailingSpaces = [] | [{
20077
+ skipBlankLines?: boolean;
20078
+ ignoreComments?: boolean;
19268
20079
  }]; // ----- yaml/plain-scalar -----
19269
20080
  type YamlPlainScalar = [] | [("always" | "never")] | [("always" | "never"), {
19270
20081
  ignorePatterns?: string[];
@@ -19359,7 +20170,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
19359
20170
  exceptRange?: boolean;
19360
20171
  onlyEquality?: boolean;
19361
20172
  }]; // Names of all the configs
19362
- type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/unicorn' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/test/setup' | 'config/test/rules' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss/rules' | 'config/astro/setup' | 'config/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables/code' | 'config/formatters/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
20173
+ type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/node/setup' | 'config/node/rules' | 'config/jsdoc/setup' | 'config/jsdoc/rules' | 'config/imports/rules' | 'config/unicorn/setup' | 'config/unicorn/rules' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/test/setup' | 'config/test/rules' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss/rules' | 'config/astro/setup' | 'config/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables/code' | 'config/formatters/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
19363
20174
  //#endregion
19364
20175
  //#region src/vender/prettier-types.d.ts
19365
20176
  /**