@pengzhanbo/eslint-config 2.8.2 → 2.8.3

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 (2) hide show
  1. package/dist/index.d.ts +445 -364
  2. package/package.json +13 -13
package/dist/index.d.ts CHANGED
@@ -2287,6 +2287,11 @@ interface RuleOptions {
2287
2287
  * @see https://nextjs.org/docs/messages/no-img-element
2288
2288
  */
2289
2289
  'next/no-img-element'?: Linter.RuleEntry<[]>;
2290
+ /**
2291
+ * Prevent usage of `location.assign` or `location.href` assignment to navigate to internal Next.js pages.
2292
+ * @see https://nextjs.org/docs/messages/no-location-assign-relative-destination
2293
+ */
2294
+ 'next/no-location-assign-relative-destination'?: Linter.RuleEntry<[]>;
2290
2295
  /**
2291
2296
  * Prevent page-only custom fonts.
2292
2297
  * @see https://nextjs.org/docs/messages/no-page-custom-font
@@ -7130,1715 +7135,1740 @@ interface RuleOptions {
7130
7135
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7131
7136
  /**
7132
7137
  * Prefer better DOM traversal APIs.
7133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
7138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
7134
7139
  */
7135
7140
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7136
7141
  /**
7137
7142
  * Removed. Prefer `eslint-plugin-regexp`
7138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7139
7144
  * @deprecated
7140
7145
  */
7141
7146
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7142
7147
  /**
7143
7148
  * Enforce a specific parameter name in catch clauses.
7144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
7149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
7145
7150
  */
7146
7151
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7147
7152
  /**
7148
7153
  * Enforce consistent class references in static methods.
7149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
7154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
7150
7155
  */
7151
7156
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7152
7157
  /**
7153
7158
  * Enforce better comment content.
7154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
7159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
7155
7160
  */
7156
7161
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7162
+ /**
7163
+ * Enforce a consistent return style for multiline arrow function bodies.
7164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
7165
+ */
7166
+ 'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7157
7167
  /**
7158
7168
  * Enforce consistent assertion style with `node:assert`.
7159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
7169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
7160
7170
  */
7161
7171
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7162
7172
  /**
7163
7173
  * Enforce consistent naming for boolean names.
7164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
7174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
7165
7175
  */
7166
7176
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7167
7177
  /**
7168
7178
  * Enforce consistent class member order.
7169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
7179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
7170
7180
  */
7171
7181
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7172
7182
  /**
7173
7183
  * Enforce consistent spelling of compound words in identifiers.
7174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
7184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
7175
7185
  */
7176
7186
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7177
7187
  /**
7178
7188
  * Enforce consistent conditional object spread style.
7179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
7189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
7180
7190
  */
7181
7191
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7182
7192
  /**
7183
7193
  * Prefer passing `Date` directly to the constructor when cloning.
7184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
7194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
7185
7195
  */
7186
7196
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7187
7197
  /**
7188
7198
  * Use destructured variables over properties.
7189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
7199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
7190
7200
  */
7191
7201
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7192
7202
  /**
7193
7203
  * Prefer consistent types when spreading a ternary in an array literal.
7194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
7204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
7195
7205
  */
7196
7206
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7197
7207
  /**
7198
7208
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
7209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
7200
7210
  */
7201
7211
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7202
7212
  /**
7203
7213
  * Enforce consistent decorator position on exported classes.
7204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
7214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
7205
7215
  */
7206
7216
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7207
7217
  /**
7208
7218
  * Move function definitions to the highest possible scope.
7209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
7219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
7210
7220
  */
7211
7221
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7212
7222
  /**
7213
7223
  * Enforce function syntax by role.
7214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
7224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
7215
7225
  */
7216
7226
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7217
7227
  /**
7218
7228
  * Enforce consistent JSON file reads before `JSON.parse()`.
7219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
7229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
7220
7230
  */
7221
7231
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7222
7232
  /**
7223
7233
  * Enforce consistent optional chaining for same-base member access.
7224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
7234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
7225
7235
  */
7226
7236
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7227
7237
  /**
7228
7238
  * Enforce consistent style for escaping `${` in template literals.
7229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
7239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
7230
7240
  */
7231
7241
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7232
7242
  /**
7233
7243
  * Enforce consistent labels on tuple type elements.
7234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
7244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
7235
7245
  */
7236
7246
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7237
7247
  /**
7238
7248
  * Enforce correct `Error` subclassing.
7239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
7249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
7240
7250
  */
7241
7251
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7242
7252
  /**
7243
7253
  * Enforce consistent default export declarations.
7244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
7254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
7245
7255
  */
7246
7256
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7247
7257
  /**
7248
7258
  * Enforce consistent style for DOM element dataset access.
7249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
7259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
7250
7260
  */
7251
7261
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7252
7262
  /**
7253
7263
  * Enforce no spaces between braces.
7254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
7264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
7255
7265
  */
7256
7266
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7257
7267
  /**
7258
7268
  * Enforce passing a `message` value when creating a built-in error.
7259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
7269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
7260
7270
  */
7261
7271
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7262
7272
  /**
7263
7273
  * Require escape sequences to use uppercase or lowercase values.
7264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
7274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
7265
7275
  */
7266
7276
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7267
7277
  /**
7268
7278
  * Add expiration conditions to TODO comments.
7269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
7279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
7270
7280
  */
7271
7281
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7272
7282
  /**
7273
7283
  * Enforce explicitly comparing the `length` or `size` property of a value.
7274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
7284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
7275
7285
  */
7276
7286
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7277
7287
  /**
7278
7288
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
7289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
7280
7290
  */
7281
7291
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7282
7292
  /**
7283
7293
  * Enforce a case style for filenames and directory names.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
7294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
7285
7295
  */
7286
7296
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7287
7297
  /**
7288
7298
  * Require identifiers to match a specified regular expression.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
7299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
7290
7300
  */
7291
7301
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7292
7302
  /**
7293
7303
  * Enforce specific import styles per module.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
7304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
7295
7305
  */
7296
7306
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7297
7307
  /**
7298
7308
  * Prevent usage of variables from outside the scope of isolated functions.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
7309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
7300
7310
  */
7301
7311
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7312
+ /**
7313
+ * Enforce a consistent style for optional loop sources.
7314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
7315
+ */
7316
+ 'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7302
7317
  /**
7303
7318
  * Require or disallow logical assignment operator shorthand
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
7319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
7305
7320
  */
7306
7321
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7307
7322
  /**
7308
7323
  * Limit the depth of nested calls.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
7324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
7310
7325
  */
7311
7326
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7312
7327
  /**
7313
7328
  * Enforce replacements for variable, property, and filenames.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
7329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
7315
7330
  */
7316
7331
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7317
7332
  /**
7318
7333
  * Enforce correct use of `new` for builtin constructors.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
7334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
7320
7335
  */
7321
7336
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7322
7337
  /**
7323
7338
  * Enforce specifying rules to disable in `eslint-disable` comments.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
7339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
7325
7340
  */
7326
7341
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7327
7342
  /**
7328
7343
  * Disallow recursive access to `this` within getters and setters.
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
7344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
7330
7345
  */
7331
7346
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7332
7347
  /**
7333
7348
  * Disallow bitwise operators where a logical operator was likely intended.
7334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
7349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
7335
7350
  */
7336
7351
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7337
7352
  /**
7338
7353
  * Disallow anonymous functions and classes as the default export.
7339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
7354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
7340
7355
  */
7341
7356
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7342
7357
  /**
7343
7358
  * Prevent passing a function reference directly to iterator methods.
7344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
7359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
7345
7360
  */
7346
7361
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7347
7362
  /**
7348
7363
  * Disallow array accumulation with `Array#concat()` in loops.
7349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
7364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
7350
7365
  */
7351
7366
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7352
7367
  /**
7353
7368
  * Disallow using reference values as `Array#fill()` values.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
7369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
7355
7370
  */
7356
7371
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7357
7372
  /**
7358
7373
  * Disallow `.fill()` after `Array.from({length: …})`.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
7374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
7360
7375
  */
7361
7376
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7362
7377
  /**
7363
7378
  * Disallow front-of-array mutation.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
7379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
7365
7380
  */
7366
7381
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7367
7382
  /**
7368
7383
  * Disallow using the `this` argument in array methods.
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
7384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
7370
7385
  */
7371
7386
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7372
7387
  /**
7373
7388
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7375
7390
  * @deprecated
7376
7391
  */
7377
7392
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7378
7393
  /**
7379
7394
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
7395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
7381
7396
  */
7382
7397
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7383
7398
  /**
7384
7399
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
7400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
7386
7401
  */
7387
7402
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7388
7403
  /**
7389
7404
  * Prefer `Array#toSorted()` over `Array#sort()`.
7390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
7405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
7391
7406
  */
7392
7407
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7393
7408
  /**
7394
7409
  * Disallow sorting arrays to get the minimum or maximum value.
7395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
7410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
7396
7411
  */
7397
7412
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7398
7413
  /**
7399
7414
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
7415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
7401
7416
  */
7402
7417
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7403
7418
  /**
7404
7419
  * Disallow asterisk prefixes in documentation comments.
7405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7406
7421
  */
7407
7422
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7408
7423
  /**
7409
7424
  * Disallow async functions as `Promise#finally()` callbacks.
7410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
7425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
7411
7426
  */
7412
7427
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7413
7428
  /**
7414
7429
  * Disallow member access from await expression.
7415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
7430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
7416
7431
  */
7417
7432
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7418
7433
  /**
7419
7434
  * Disallow using `await` in `Promise` method parameters.
7420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
7435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
7421
7436
  */
7422
7437
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7438
+ /**
7439
+ * Disallow barrel files.
7440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
7441
+ */
7442
+ 'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7423
7443
  /**
7424
7444
  * Disallow unnecessary `Blob` to `File` conversion.
7425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
7445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
7426
7446
  */
7427
7447
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7428
7448
  /**
7429
7449
  * Disallow boolean-returning sort comparators.
7430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
7450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
7431
7451
  */
7432
7452
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7433
7453
  /**
7434
7454
  * Disallow `break` and `continue` in nested loops and switches inside loops.
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
7455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
7436
7456
  */
7437
7457
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7438
7458
  /**
7439
7459
  * Prefer drawing canvases directly instead of converting them to images.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
7460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
7441
7461
  */
7442
7462
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7443
7463
  /**
7444
7464
  * Disallow chained comparisons such as `a < b < c`.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
7465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
7446
7466
  */
7447
7467
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7448
7468
  /**
7449
7469
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
7470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
7451
7471
  */
7452
7472
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7453
7473
  /**
7454
7474
  * Disallow dynamic object property existence checks.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
7475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
7456
7476
  */
7457
7477
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7458
7478
  /**
7459
7479
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
7480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
7461
7481
  */
7462
7482
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7463
7483
  /**
7464
7484
  * Disallow confusing uses of `Array#with()`.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
7485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
7466
7486
  */
7467
7487
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7468
7488
  /**
7469
7489
  * Do not use leading/trailing space between `console.log` parameters.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
7490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
7471
7491
  */
7472
7492
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7473
7493
  /**
7474
7494
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
7495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
7476
7496
  */
7477
7497
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7478
7498
  /**
7479
7499
  * Disallow declarations before conditional early exits when they are only used after the exit.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
7500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
7481
7501
  */
7482
7502
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7483
7503
  /**
7484
7504
  * Do not use `document.cookie` directly.
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
7505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
7486
7506
  */
7487
7507
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7488
7508
  /**
7489
7509
  * Disallow two comparisons of the same operands that can be combined into one.
7490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
7510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
7491
7511
  */
7492
7512
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7493
7513
  /**
7494
7514
  * Disallow duplicate adjacent branches in if chains.
7495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
7515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
7496
7516
  */
7497
7517
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7498
7518
  /**
7499
7519
  * Disallow adjacent duplicate operands in logical expressions.
7500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
7520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
7501
7521
  */
7502
7522
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7503
7523
  /**
7504
7524
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
7525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
7506
7526
  */
7507
7527
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7508
7528
  /**
7509
7529
  * Disallow duplicate values in `Set` constructor array literals.
7510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
7530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
7511
7531
  */
7512
7532
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7513
7533
  /**
7514
7534
  * Disallow empty files.
7515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
7535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
7516
7536
  */
7517
7537
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7518
7538
  /**
7519
7539
  * Disallow assigning to built-in error properties.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
7540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
7521
7541
  */
7522
7542
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7523
7543
  /**
7524
7544
  * Disallow exports in scripts.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
7545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
7526
7546
  */
7527
7547
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7528
7548
  /**
7529
7549
  * Prefer `for…of` over the `forEach` method.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
7550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
7531
7551
  */
7532
7552
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7533
7553
  /**
7534
7554
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
7555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
7536
7556
  */
7537
7557
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7538
7558
  /**
7539
7559
  * Disallow assigning properties on the global object.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
7560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
7541
7561
  */
7542
7562
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7543
7563
  /**
7544
7564
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7546
7566
  * @deprecated
7547
7567
  */
7548
7568
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7549
7569
  /**
7550
7570
  * Disallow immediate mutation after variable assignment.
7551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
7571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
7552
7572
  */
7553
7573
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
7554
7574
  /**
7555
7575
  * Disallow impossible comparisons against `.length` or `.size`.
7556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
7576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
7557
7577
  */
7558
7578
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7559
7579
  /**
7560
7580
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
7581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
7562
7582
  */
7563
7583
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7564
7584
  /**
7565
7585
  * Disallow incorrect template literal interpolation syntax.
7566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7567
7587
  */
7568
7588
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7569
7589
  /**
7570
7590
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7572
7592
  * @deprecated
7573
7593
  */
7574
7594
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7575
7595
  /**
7576
7596
  * Disallow `instanceof` with built-in objects
7577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
7597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
7578
7598
  */
7579
7599
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7580
7600
  /**
7581
7601
  * Disallow calling functions and constructors with an invalid number of arguments.
7582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
7602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
7583
7603
  */
7584
7604
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7585
7605
  /**
7586
7606
  * Disallow comparing a single character from a string to a multi-character string.
7587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
7607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
7588
7608
  */
7589
7609
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7590
7610
  /**
7591
7611
  * Disallow invalid options in `fetch()` and `new Request()`.
7592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
7612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
7593
7613
  */
7594
7614
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7595
7615
  /**
7596
7616
  * Disallow invalid `accept` values on file inputs.
7597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
7617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
7598
7618
  */
7599
7619
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7600
7620
  /**
7601
7621
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
7622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
7603
7623
  */
7604
7624
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7605
7625
  /**
7606
7626
  * Disallow invalid implementations of well-known symbol methods.
7607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7608
7628
  */
7609
7629
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7610
7630
  /**
7611
7631
  * Disallow identifiers starting with `new` or `class`.
7612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
7632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
7613
7633
  */
7614
7634
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7615
7635
  /**
7616
7636
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
7637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
7618
7638
  */
7619
7639
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7620
7640
  /**
7621
7641
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
7642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
7623
7643
  */
7624
7644
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7625
7645
  /**
7626
7646
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7628
7648
  * @deprecated
7629
7649
  */
7630
7650
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7631
7651
  /**
7632
7652
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
7634
7654
  */
7635
7655
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7636
7656
  /**
7637
7657
  * Disallow mutating a loop iterable during iteration.
7638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
7658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
7639
7659
  */
7640
7660
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7641
7661
  /**
7642
7662
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
7663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
7644
7664
  */
7645
7665
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7646
7666
  /**
7647
7667
  * Disallow manually wrapped comments.
7648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
7668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
7649
7669
  */
7650
7670
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7651
7671
  /**
7652
7672
  * Disallow checking a Map key before accessing a different key.
7653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
7654
7674
  */
7655
7675
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7656
7676
  /**
7657
7677
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
7678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
7659
7679
  */
7660
7680
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7661
7681
  /**
7662
7682
  * Disallow references to missing local resources.
7663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
7683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
7664
7684
  */
7665
7685
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7666
7686
  /**
7667
7687
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7669
7689
  */
7670
7690
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7671
7691
  /**
7672
7692
  * Disallow named usage of default import and export.
7673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
7693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
7674
7694
  */
7675
7695
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7676
7696
  /**
7677
7697
  * Disallow negated array predicate calls.
7678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
7698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
7679
7699
  */
7680
7700
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7681
7701
  /**
7682
7702
  * Disallow negated comparisons.
7683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
7703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
7684
7704
  */
7685
7705
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7686
7706
  /**
7687
7707
  * Disallow negated conditions.
7688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
7708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
7689
7709
  */
7690
7710
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7691
7711
  /**
7692
7712
  * Disallow negated expression in equality check.
7693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
7713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
7694
7714
  */
7695
7715
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7696
7716
  /**
7697
7717
  * Disallow nested ternary expressions.
7698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
7718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
7699
7719
  */
7700
7720
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7701
7721
  /**
7702
7722
  * Disallow `new Array()`.
7703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
7723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
7704
7724
  */
7705
7725
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7706
7726
  /**
7707
7727
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
7728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
7709
7729
  */
7710
7730
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7711
7731
  /**
7712
7732
  * Disallow non-function values with function-style verb prefixes.
7713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
7733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
7714
7734
  */
7715
7735
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7716
7736
  /**
7717
7737
  * Disallow non-standard properties on built-in objects.
7718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
7738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
7719
7739
  */
7720
7740
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7721
7741
  /**
7722
7742
  * Disallow the use of the `null` literal.
7723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
7743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
7724
7744
  */
7725
7745
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7726
7746
  /**
7727
7747
  * Disallow the use of objects as default parameters.
7728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
7748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
7729
7749
  */
7730
7750
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7731
7751
  /**
7732
7752
  * Disallow `Object` methods with `Map` or `Set`.
7733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
7753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
7734
7754
  */
7735
7755
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7736
7756
  /**
7737
7757
  * Disallow optional chaining on undeclared variables.
7738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7739
7759
  */
7740
7760
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7741
7761
  /**
7742
7762
  * Disallow `process.exit()`.
7743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
7763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
7744
7764
  */
7745
7765
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7746
7766
  /**
7747
7767
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
7768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
7749
7769
  */
7750
7770
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7751
7771
  /**
7752
7772
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
7773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
7754
7774
  */
7755
7775
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7756
7776
  /**
7757
7777
  * Disallow selector syntax in DOM names.
7758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
7778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
7759
7779
  */
7760
7780
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7761
7781
  /**
7762
7782
  * Disallow shorthand properties that override related longhand properties.
7763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
7783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
7764
7784
  */
7765
7785
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7766
7786
  /**
7767
7787
  * Disallow passing single-element arrays to `Promise` methods.
7768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
7788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
7769
7789
  */
7770
7790
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7771
7791
  /**
7772
7792
  * Disallow classes that only have static members.
7773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
7793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
7774
7794
  */
7775
7795
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7776
7796
  /**
7777
7797
  * Prefer comparing values directly over subtracting and comparing to `0`.
7778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
7798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
7779
7799
  */
7780
7800
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7781
7801
  /**
7782
7802
  * Disallow `then` property.
7783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
7803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
7784
7804
  */
7785
7805
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7786
7806
  /**
7787
7807
  * Disallow assigning `this` to a variable.
7788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
7808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
7789
7809
  */
7790
7810
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7791
7811
  /**
7792
7812
  * Disallow `this` outside of classes.
7793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
7813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
7794
7814
  */
7795
7815
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7796
7816
  /**
7797
7817
  * Disallow assigning to top-level variables from inside functions.
7798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
7818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
7799
7819
  */
7800
7820
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7801
7821
  /**
7802
7822
  * Disallow top-level side effects in exported modules.
7803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
7823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
7804
7824
  */
7805
7825
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7806
7826
  /**
7807
7827
  * Disallow `all` as a transition property.
7808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
7828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
7809
7829
  */
7810
7830
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7811
7831
  /**
7812
7832
  * Disallow comparing `undefined` using `typeof`.
7813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
7833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
7814
7834
  */
7815
7835
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7816
7836
  /**
7817
7837
  * Disallow referencing methods without calling them.
7818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
7838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
7819
7839
  */
7820
7840
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7821
7841
  /**
7822
7842
  * Require class members to be declared.
7823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
7843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
7824
7844
  */
7825
7845
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7826
7846
  /**
7827
7847
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7829
7849
  */
7830
7850
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7831
7851
  /**
7832
7852
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
7853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
7834
7854
  */
7835
7855
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7836
7856
  /**
7837
7857
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
7858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
7839
7859
  */
7840
7860
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7841
7861
  /**
7842
7862
  * Disallow awaiting non-promise values.
7843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
7863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
7844
7864
  */
7845
7865
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7846
7866
  /**
7847
7867
  * Disallow unnecessary comparisons against boolean literals.
7848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7849
7869
  */
7850
7870
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7851
7871
  /**
7852
7872
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
7873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
7854
7874
  */
7855
7875
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7856
7876
  /**
7857
7877
  * Disallow unnecessary `globalThis` references.
7858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
7878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
7859
7879
  */
7860
7880
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7861
7881
  /**
7862
7882
  * Disallow unnecessary nested ternary expressions.
7863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
7883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
7864
7884
  */
7865
7885
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7866
7886
  /**
7867
7887
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
7888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
7869
7889
  */
7870
7890
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7871
7891
  /**
7872
7892
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
7893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
7874
7894
  */
7875
7895
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7876
7896
  /**
7877
7897
  * Disallow `Array#splice()` when simpler alternatives exist.
7878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
7898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
7879
7899
  */
7880
7900
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7881
7901
  /**
7882
7902
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
7903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
7884
7904
  */
7885
7905
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7886
7906
  /**
7887
7907
  * Disallow unreadable array destructuring.
7888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
7908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
7889
7909
  */
7890
7910
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7891
7911
  /**
7892
7912
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
7913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
7894
7914
  */
7895
7915
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7896
7916
  /**
7897
7917
  * Disallow unreadable IIFEs.
7898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
7918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
7899
7919
  */
7900
7920
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7901
7921
  /**
7902
7922
  * Disallow unreadable `new` expressions.
7903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
7923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
7904
7924
  */
7905
7925
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7906
7926
  /**
7907
7927
  * Disallow unreadable object destructuring.
7908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
7928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
7909
7929
  */
7910
7930
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7911
7931
  /**
7912
7932
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
7933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
7914
7934
  */
7915
7935
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7916
7936
  /**
7917
7937
  * Disallow unsafe DOM HTML APIs.
7918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
7938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
7919
7939
  */
7920
7940
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7921
7941
  /**
7922
7942
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7924
7944
  */
7925
7945
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7926
7946
  /**
7927
7947
  * Disallow unsafe values as property keys.
7928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
7948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
7929
7949
  */
7930
7950
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7951
+ /**
7952
+ * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7954
+ */
7955
+ 'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7931
7956
  /**
7932
7957
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
7958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
7934
7959
  */
7935
7960
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7936
7961
  /**
7937
7962
  * Disallow ignoring the return value of selected array methods.
7938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
7963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
7939
7964
  */
7940
7965
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7941
7966
  /**
7942
7967
  * Disallow unused object properties.
7943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
7968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
7944
7969
  */
7945
7970
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7946
7971
  /**
7947
7972
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
7973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
7949
7974
  */
7950
7975
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7951
7976
  /**
7952
7977
  * Disallow useless type coercions of values that are already of the target type.
7953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
7978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
7954
7979
  */
7955
7980
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7956
7981
  /**
7957
7982
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
7983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
7959
7984
  */
7960
7985
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7961
7986
  /**
7962
7987
  * Disallow useless compound assignments such as `x += 0`.
7963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
7988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
7964
7989
  */
7965
7990
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7966
7991
  /**
7967
7992
  * Disallow useless concatenation of literals.
7968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
7993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
7969
7994
  */
7970
7995
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7971
7996
  /**
7972
7997
  * Disallow useless `continue` statements.
7973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
7998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
7974
7999
  */
7975
8000
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7976
8001
  /**
7977
8002
  * Disallow unnecessary existence checks before deletion.
7978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
8003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
7979
8004
  */
7980
8005
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7981
8006
  /**
7982
8007
  * Disallow `else` after a statement that exits.
7983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
8008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
7984
8009
  */
7985
8010
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7986
8011
  /**
7987
8012
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7989
8014
  */
7990
8015
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7991
8016
  /**
7992
8017
  * Disallow useless fallback when spreading in object literals.
7993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
8018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
7994
8019
  */
7995
8020
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7996
8021
  /**
7997
8022
  * Disallow unnecessary `.toArray()` on iterators.
7998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
8023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
7999
8024
  */
8000
8025
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8001
8026
  /**
8002
8027
  * Disallow useless array length check.
8003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
8028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
8004
8029
  */
8005
8030
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8006
8031
  /**
8007
8032
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
8033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
8009
8034
  */
8010
8035
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8011
8036
  /**
8012
8037
  * Disallow useless overrides of class methods.
8013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
8038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
8014
8039
  */
8015
8040
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8016
8041
  /**
8017
8042
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
8043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
8019
8044
  */
8020
8045
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8021
8046
  /**
8022
8047
  * Disallow redundant re-exports.
8023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
8048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
8024
8049
  */
8025
8050
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8026
8051
  /**
8027
8052
  * Disallow simple recursive function calls that can be replaced with a loop.
8028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
8053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
8029
8054
  */
8030
8055
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8031
8056
  /**
8032
8057
  * Disallow unnecessary spread.
8033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
8058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
8034
8059
  */
8035
8060
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8036
8061
  /**
8037
8062
  * Disallow useless case in switch statements.
8038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
8063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
8039
8064
  */
8040
8065
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8041
8066
  /**
8042
8067
  * Disallow useless template literal expressions.
8043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
8068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
8044
8069
  */
8045
8070
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8046
8071
  /**
8047
8072
  * Disallow useless `undefined`.
8048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
8073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
8049
8074
  */
8050
8075
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8051
8076
  /**
8052
8077
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
8078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
8054
8079
  */
8055
8080
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8056
8081
  /**
8057
8082
  * Disallow number literals with zero fractions or dangling dots.
8058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
8083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
8059
8084
  */
8060
8085
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8061
8086
  /**
8062
8087
  * Enforce proper case for numeric literals.
8063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
8088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
8064
8089
  */
8065
8090
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8066
8091
  /**
8067
8092
  * Enforce the style of numeric separators by correctly grouping digits.
8068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
8093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
8069
8094
  */
8070
8095
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8071
8096
  /**
8072
8097
  * Require assignment operator shorthand where possible.
8073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
8098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
8074
8099
  */
8075
8100
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8076
8101
  /**
8077
8102
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
8103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
8079
8104
  */
8080
8105
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8081
8106
  /**
8082
8107
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
8108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
8084
8109
  */
8085
8110
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8086
8111
  /**
8087
8112
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
8113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
8089
8114
  */
8090
8115
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8091
8116
  /**
8092
8117
  * Prefer an options object over a boolean in `.addEventListener()`.
8093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
8118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
8094
8119
  */
8095
8120
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8096
8121
  /**
8097
8122
  * Prefer `AggregateError` when throwing collected errors.
8098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
8123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
8099
8124
  */
8100
8125
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8101
8126
  /**
8102
8127
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
8128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
8104
8129
  */
8105
8130
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8106
8131
  /**
8107
8132
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
8133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
8109
8134
  */
8110
8135
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8111
8136
  /**
8112
8137
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
8138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
8114
8139
  */
8115
8140
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8116
8141
  /**
8117
8142
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
8143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
8119
8144
  */
8120
8145
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8121
8146
  /**
8122
8147
  * Prefer using the `Array.from()` mapping function argument.
8123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
8124
8149
  */
8125
8150
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8126
8151
  /**
8127
8152
  * Prefer `Array.from({length}, …)` when creating range arrays.
8128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
8129
8154
  */
8130
8155
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8131
8156
  /**
8132
8157
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
8158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
8134
8159
  */
8135
8160
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8136
8161
  /**
8137
8162
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
8139
8164
  */
8140
8165
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8141
8166
  /**
8142
8167
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
8144
8169
  */
8145
8170
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8146
8171
  /**
8147
8172
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
8149
8174
  */
8150
8175
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8151
8176
  /**
8152
8177
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
8154
8179
  */
8155
8180
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8156
8181
  /**
8157
8182
  * Prefer `.at()` method for index access and `String#charAt()`.
8158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
8159
8184
  */
8160
8185
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8161
8186
  /**
8162
8187
  * Prefer `await` over promise chaining.
8163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
8164
8189
  */
8165
8190
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8166
8191
  /**
8167
8192
  * Prefer `BigInt` literals over the constructor.
8168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
8169
8194
  */
8170
8195
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8171
8196
  /**
8172
8197
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
8174
8199
  */
8175
8200
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8176
8201
  /**
8177
8202
  * Prefer block statements over IIFEs used only for scoping.
8178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
8179
8204
  */
8180
8205
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8181
8206
  /**
8182
8207
  * Prefer directly returning boolean expressions over `if` statements.
8183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
8184
8209
  */
8185
8210
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8186
8211
  /**
8187
8212
  * Prefer class field declarations over `this` assignments in constructors.
8188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
8189
8214
  */
8190
8215
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8191
8216
  /**
8192
8217
  * Prefer using `Element#classList.toggle()` to toggle class names.
8193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
8194
8219
  */
8195
8220
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8196
8221
  /**
8197
8222
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
8199
8224
  */
8200
8225
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8201
8226
  /**
8202
8227
  * Prefer early continues over whole-loop conditional wrapping.
8203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
8204
8229
  */
8205
8230
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8206
8231
  /**
8207
8232
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
8209
8234
  */
8210
8235
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8211
8236
  /**
8212
8237
  * Prefer default parameters over reassignment.
8213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
8214
8239
  */
8215
8240
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8216
8241
  /**
8217
8242
  * Prefer direct iteration over default iterator method calls.
8218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
8219
8244
  */
8220
8245
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8221
8246
  /**
8222
8247
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
8224
8249
  */
8225
8250
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8226
8251
  /**
8227
8252
  * Prefer `Element#append()` over `Node#appendChild()`.
8228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
8229
8254
  */
8230
8255
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8231
8256
  /**
8232
8257
  * Renamed to `unicorn/dom-node-dataset`.
8233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8234
8259
  * @deprecated
8235
8260
  */
8236
8261
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8237
8262
  /**
8238
8263
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
8264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
8240
8265
  */
8241
8266
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8242
8267
  /**
8243
8268
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
8269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
8245
8270
  */
8246
8271
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8247
8272
  /**
8248
8273
  * Prefer `.replaceChildren()` when emptying DOM children.
8249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
8274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
8250
8275
  */
8251
8276
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8252
8277
  /**
8253
8278
  * Prefer `.textContent` over `.innerText`.
8254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
8279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
8255
8280
  */
8256
8281
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8257
8282
  /**
8258
8283
  * Prefer early returns over full-function conditional wrapping.
8259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
8284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
8260
8285
  */
8261
8286
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8262
8287
  /**
8263
8288
  * Prefer `else if` over adjacent `if` statements with related conditions.
8264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
8289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
8265
8290
  */
8266
8291
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8267
8292
  /**
8268
8293
  * Prefer `Error.isError()` when checking for errors.
8269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
8294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
8270
8295
  */
8271
8296
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8272
8297
  /**
8273
8298
  * Prefer `EventTarget` over `EventEmitter`.
8274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
8299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
8275
8300
  */
8276
8301
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8277
8302
  /**
8278
8303
  * Prefer explicit viewport units.
8279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
8304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
8280
8305
  */
8281
8306
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8282
8307
  /**
8283
8308
  * Prefer `export…from` when re-exporting.
8284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
8309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
8285
8310
  */
8286
8311
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8287
8312
  /**
8288
8313
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
8314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
8290
8315
  */
8291
8316
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8292
8317
  /**
8293
8318
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
8319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
8295
8320
  */
8296
8321
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8297
8322
  /**
8298
8323
  * Prefer global numeric constants over `Number` static properties.
8299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
8324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
8300
8325
  */
8301
8326
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8302
8327
  /**
8303
8328
  * Prefer `globalThis` over `window`, `self`, and `global`.
8304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
8329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
8305
8330
  */
8306
8331
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8307
8332
  /**
8308
8333
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
8334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
8310
8335
  */
8311
8336
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8312
8337
  /**
8313
8338
  * Prefer `.has()` when checking existence.
8314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
8339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
8315
8340
  */
8316
8341
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8317
8342
  /**
8318
8343
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
8344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
8320
8345
  */
8321
8346
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8322
8347
  /**
8323
8348
  * Prefer HTTPS over HTTP.
8324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
8349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
8325
8350
  */
8326
- 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
8351
+ 'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8327
8352
  /**
8328
8353
  * Prefer identifiers over string literals in import and export specifiers.
8329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8330
8355
  */
8331
8356
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8332
8357
  /**
8333
8358
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
8359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
8335
8360
  */
8336
8361
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8337
8362
  /**
8338
8363
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
8364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
8340
8365
  */
8341
8366
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8342
8367
  /**
8343
8368
  * Prefer `.includes()` over repeated equality comparisons.
8344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8345
8370
  */
8346
8371
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8347
8372
  /**
8348
8373
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
8374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
8350
8375
  */
8351
8376
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8352
8377
  /**
8353
8378
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
8379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
8355
8380
  */
8356
8381
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8357
8382
  /**
8358
8383
  * Prefer iterator helpers over temporary arrays from iterators.
8359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
8384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
8360
8385
  */
8361
8386
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8362
8387
  /**
8363
8388
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
8389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
8365
8390
  */
8366
8391
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8367
8392
  /**
8368
8393
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8370
8395
  */
8371
8396
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8372
8397
  /**
8373
8398
  * Renamed to `unicorn/consistent-json-file-read`.
8374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8375
8400
  * @deprecated
8376
8401
  */
8377
8402
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8378
8403
  /**
8379
8404
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
8405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
8381
8406
  */
8382
8407
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8383
8408
  /**
8384
8409
  * Prefer `location.assign()` over assigning to `location.href`.
8385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
8410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
8386
8411
  */
8387
8412
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8388
8413
  /**
8389
8414
  * Prefer using a logical operator over a ternary.
8390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8391
8416
  */
8392
8417
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8393
8418
  /**
8394
8419
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
8420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
8396
8421
  */
8397
8422
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8398
8423
  /**
8399
8424
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
8425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
8401
8426
  */
8402
8427
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8403
8428
  /**
8404
8429
  * Prefer `Math` constants over their approximate numeric values.
8405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
8430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
8406
8431
  */
8407
8432
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8408
8433
  /**
8409
8434
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
8435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
8411
8436
  */
8412
8437
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8413
8438
  /**
8414
8439
  * Prefer `Math.trunc()` for truncating numbers.
8415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
8440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
8416
8441
  */
8417
8442
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
8418
8443
  /**
8419
8444
  * Prefer moving ternaries into the minimal varying part of an expression.
8420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
8445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
8421
8446
  */
8422
8447
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8423
8448
  /**
8424
8449
  * Prefer modern DOM APIs.
8425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
8450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
8426
8451
  */
8427
8452
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8428
8453
  /**
8429
8454
  * Prefer modern `Math` APIs over legacy patterns.
8430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
8455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
8431
8456
  */
8432
8457
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8433
8458
  /**
8434
8459
  * Prefer JavaScript modules (ESM) over CommonJS.
8435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
8460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
8436
8461
  */
8437
8462
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8438
8463
  /**
8439
8464
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
8465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
8441
8466
  */
8442
8467
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8443
8468
  /**
8444
8469
  * Prefer negative index over `.length - index` when possible.
8445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
8470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
8446
8471
  */
8447
8472
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8448
8473
  /**
8449
8474
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
8475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
8451
8476
  */
8452
8477
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8453
8478
  /**
8454
8479
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
8480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
8456
8481
  */
8457
8482
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8458
8483
  /**
8459
8484
  * Prefer `Number.isSafeInteger()` over integer checks.
8460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
8485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
8461
8486
  */
8462
8487
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8463
8488
  /**
8464
8489
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
8490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
8466
8491
  */
8467
8492
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8468
8493
  /**
8469
8494
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
8495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
8471
8496
  */
8472
8497
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8473
8498
  /**
8474
8499
  * Prefer object destructuring defaults over default object literals with spread.
8475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
8500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
8476
8501
  */
8477
8502
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8478
8503
  /**
8479
8504
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
8505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
8481
8506
  */
8482
8507
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8483
8508
  /**
8484
8509
  * Prefer the most specific `Object` iterable method.
8485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
8510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
8486
8511
  */
8487
8512
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8488
8513
  /**
8489
8514
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
8515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
8491
8516
  */
8492
8517
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8493
8518
  /**
8494
8519
  * Prefer omitting the `catch` binding parameter.
8495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
8520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
8496
8521
  */
8497
8522
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8498
8523
  /**
8499
8524
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
8525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
8501
8526
  */
8502
8527
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8503
8528
  /**
8504
8529
  * Prefer private class fields over the underscore-prefix convention.
8505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
8530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
8506
8531
  */
8507
8532
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8508
8533
  /**
8509
8534
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
8535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
8511
8536
  */
8512
8537
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8513
8538
  /**
8514
8539
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
8540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
8516
8541
  */
8517
8542
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8518
8543
  /**
8519
8544
  * Prefer borrowing methods from the prototype instead of the instance.
8520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
8545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
8521
8546
  */
8522
8547
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8523
8548
  /**
8524
8549
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
8550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
8526
8551
  */
8527
8552
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8528
8553
  /**
8529
8554
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
8555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
8531
8556
  */
8532
8557
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8533
8558
  /**
8534
8559
  * Prefer `Reflect.apply()` over `Function#apply()`.
8535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
8560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
8536
8561
  */
8537
8562
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8538
8563
  /**
8539
8564
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
8565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
8541
8566
  */
8542
8567
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8543
8568
  /**
8544
8569
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
8570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
8546
8571
  */
8547
8572
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8548
8573
  /**
8549
8574
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
8575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
8551
8576
  */
8552
8577
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8553
8578
  /**
8554
8579
  * Prefer `:scope` when using element query selector methods.
8555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
8580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
8556
8581
  */
8557
8582
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8558
8583
  /**
8559
8584
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
8585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
8561
8586
  */
8562
8587
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8563
8588
  /**
8564
8589
  * Prefer `Set` methods for Set operations.
8565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
8590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
8566
8591
  */
8567
8592
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8568
8593
  /**
8569
8594
  * Prefer using `Set#size` instead of `Array#length`.
8570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
8595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
8571
8596
  */
8572
8597
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8573
8598
  /**
8574
8599
  * Prefer arrow function properties over methods with a single return.
8575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
8600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
8576
8601
  */
8577
8602
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8578
8603
  /**
8579
8604
  * Prefer simple conditions first in logical expressions.
8580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
8605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
8581
8606
  */
8582
8607
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8583
8608
  /**
8584
8609
  * Prefer a simple comparison function for `Array#sort()`.
8585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
8610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
8586
8611
  */
8587
8612
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8588
8613
  /**
8589
8614
  * Prefer simplified conditions.
8590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
8615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
8591
8616
  */
8592
8617
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8593
8618
  /**
8594
8619
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
8620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
8596
8621
  */
8597
8622
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8598
8623
  /**
8599
8624
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
8625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
8601
8626
  */
8602
8627
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8603
8628
  /**
8604
8629
  * Prefer a single object destructuring declaration per local const source.
8605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
8606
8631
  */
8607
8632
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8608
8633
  /**
8609
8634
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
8611
8636
  */
8612
8637
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8613
8638
  /**
8614
8639
  * Prefer declaring variables in the smallest possible scope.
8615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
8640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
8616
8641
  */
8617
8642
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8618
8643
  /**
8619
8644
  * Prefer `String#split()` with a limit.
8620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
8645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
8621
8646
  */
8622
8647
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8623
8648
  /**
8624
8649
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
8650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
8626
8651
  */
8627
8652
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8628
8653
  /**
8629
8654
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
8655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
8631
8656
  */
8632
8657
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8633
8658
  /**
8634
8659
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
8660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
8636
8661
  */
8637
8662
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8638
8663
  /**
8639
8664
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
8665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
8641
8666
  */
8642
8667
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8643
8668
  /**
8644
8669
  * Prefer `String#repeat()` for repeated whitespace.
8645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
8670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
8646
8671
  */
8647
8672
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8648
8673
  /**
8649
8674
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
8675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
8651
8676
  */
8652
8677
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8653
8678
  /**
8654
8679
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
8680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
8656
8681
  */
8657
8682
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8658
8683
  /**
8659
8684
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
8685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
8661
8686
  */
8662
8687
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8663
8688
  /**
8664
8689
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
8690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
8666
8691
  */
8667
8692
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8668
8693
  /**
8669
8694
  * Prefer using `structuredClone` to create a deep clone.
8670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
8695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
8671
8696
  */
8672
8697
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8673
8698
  /**
8674
8699
  * Prefer `switch` over multiple `else-if`.
8675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
8700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
8676
8701
  */
8677
8702
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8678
8703
  /**
8679
8704
  * Prefer `Temporal` over `Date`.
8680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
8705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
8681
8706
  */
8682
8707
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8683
8708
  /**
8684
8709
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
8710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
8686
8711
  */
8687
8712
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8688
8713
  /**
8689
8714
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
8715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
8691
8716
  */
8692
8717
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8693
8718
  /**
8694
8719
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
8720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
8696
8721
  */
8697
8722
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8698
8723
  /**
8699
8724
  * Prefer top-level await over top-level promises and async function calls.
8700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
8725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
8701
8726
  */
8702
8727
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8703
8728
  /**
8704
8729
  * Enforce throwing `TypeError` in type checking conditions.
8705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
8730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
8706
8731
  */
8707
8732
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8708
8733
  /**
8709
8734
  * Require type literals to be last in union types.
8710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
8735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
8711
8736
  */
8712
8737
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8713
8738
  /**
8714
8739
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
8740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
8716
8741
  */
8717
8742
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8718
8743
  /**
8719
8744
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
8745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
8721
8746
  */
8722
8747
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8723
8748
  /**
8724
8749
  * Prefer Unicode code point escapes over legacy escape sequences.
8725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8726
8751
  */
8727
8752
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8728
8753
  /**
8729
8754
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
8755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
8731
8756
  */
8732
8757
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8733
8758
  /**
8734
8759
  * Prefer `URL#href` over stringifying a `URL`.
8735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
8760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
8736
8761
  */
8737
8762
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8738
8763
  /**
8739
8764
  * Prefer `URLSearchParams` over manually splitting query strings.
8740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
8765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
8741
8766
  */
8742
8767
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8743
8768
  /**
8744
8769
  * Prefer putting the condition in the while statement.
8745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
8770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
8746
8771
  */
8747
8772
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8748
8773
  /**
8749
8774
  * Renamed to `unicorn/name-replacements`.
8750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8751
8776
  * @deprecated
8752
8777
  */
8753
8778
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8754
8779
  /**
8755
8780
  * Enforce consistent relative URL style.
8756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
8781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
8757
8782
  */
8758
8783
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8759
8784
  /**
8760
8785
  * Enforce using the separator argument with `Array#join()`.
8761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
8786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
8762
8787
  */
8763
8788
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8764
8789
  /**
8765
8790
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
8791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
8767
8792
  */
8768
8793
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8769
8794
  /**
8770
8795
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
8796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
8772
8797
  */
8773
8798
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8774
8799
  /**
8775
8800
  * Require configured YAML frontmatter fields.
8776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
8801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
8777
8802
  */
8778
8803
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8779
8804
  /**
8780
8805
  * Require non-empty module attributes for imports and exports
8781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
8806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
8782
8807
  */
8783
8808
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8784
8809
  /**
8785
8810
  * Require non-empty specifier list in import and export statements.
8786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
8811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
8787
8812
  */
8788
8813
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8789
8814
  /**
8790
8815
  * Enforce using the digits argument with `Number#toFixed()`.
8791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8792
8817
  */
8793
8818
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8794
8819
  /**
8795
8820
  * Require passive event listeners for high-frequency events.
8796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
8821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
8797
8822
  */
8798
8823
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8799
8824
  /**
8800
8825
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
8826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
8802
8827
  */
8803
8828
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8804
8829
  /**
8805
8830
  * Require boolean-returning Proxy traps to return booleans.
8806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
8831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
8807
8832
  */
8808
8833
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8834
+ /**
8835
+ * Enforce a consistent style for single-line block comments.
8836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
8837
+ */
8838
+ 'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8809
8839
  /**
8810
8840
  * Enforce better string content.
8811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
8841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
8812
8842
  */
8813
8843
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8814
8844
  /**
8815
8845
  * Enforce consistent brace style for `case` clauses.
8816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
8846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
8817
8847
  */
8818
8848
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8819
8849
  /**
8820
8850
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
8851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
8822
8852
  */
8823
8853
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8824
8854
  /**
8825
8855
  * Fix whitespace-insensitive template indentation.
8826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
8856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
8827
8857
  */
8828
8858
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8829
8859
  /**
8830
8860
  * Enforce consistent case for text encoding identifiers.
8831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
8861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
8832
8862
  */
8833
8863
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8834
8864
  /**
8835
8865
  * Require `new` when creating an error.
8836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
8866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
8837
8867
  */
8838
8868
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8839
8869
  /**
8840
8870
  * Limit the complexity of `try` blocks.
8841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
8871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
8842
8872
  */
8843
8873
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8844
8874
  /**
@@ -11947,15 +11977,19 @@ type JsoncSortKeys = ([{
11947
11977
  hasProperties?: string[];
11948
11978
  order: ((string | {
11949
11979
  keyPattern?: string;
11950
- order?: {
11980
+ order?: ({
11951
11981
  type?: ("asc" | "desc");
11952
11982
  caseSensitive?: boolean;
11953
11983
  natural?: boolean;
11954
- };
11984
+ } | {
11985
+ type: "ignore";
11986
+ });
11955
11987
  })[] | {
11956
11988
  type?: ("asc" | "desc");
11957
11989
  caseSensitive?: boolean;
11958
11990
  natural?: boolean;
11991
+ } | {
11992
+ type: "ignore";
11959
11993
  });
11960
11994
  minKeys?: number;
11961
11995
  allowLineSeparatedGroups?: boolean;
@@ -11964,15 +11998,19 @@ type JsoncSortKeys = ([{
11964
11998
  hasProperties?: string[];
11965
11999
  order: ((string | {
11966
12000
  keyPattern?: string;
11967
- order?: {
12001
+ order?: ({
11968
12002
  type?: ("asc" | "desc");
11969
12003
  caseSensitive?: boolean;
11970
12004
  natural?: boolean;
11971
- };
12005
+ } | {
12006
+ type: "ignore";
12007
+ });
11972
12008
  })[] | {
11973
12009
  type?: ("asc" | "desc");
11974
12010
  caseSensitive?: boolean;
11975
12011
  natural?: boolean;
12012
+ } | {
12013
+ type: "ignore";
11976
12014
  });
11977
12015
  minKeys?: number;
11978
12016
  allowLineSeparatedGroups?: boolean;
@@ -19404,7 +19442,9 @@ type UnicodeBom = [] | [("always" | "never")];
19404
19442
  // ----- unicorn/catch-error-name -----
19405
19443
  type UnicornCatchErrorName = [] | [{
19406
19444
  name?: string;
19407
- ignore?: unknown[];
19445
+ ignore?: (string | {
19446
+ [k: string]: unknown | undefined;
19447
+ })[];
19408
19448
  }];
19409
19449
  // ----- unicorn/class-reference-in-static-methods -----
19410
19450
  type UnicornClassReferenceInStaticMethods = [] | [{
@@ -19424,11 +19464,19 @@ type UnicornCommentContent = [] | [{
19424
19464
  }];
19425
19465
  // ----- unicorn/consistent-boolean-name -----
19426
19466
  type UnicornConsistentBooleanName = [] | [{
19427
- checkProperties?: boolean;
19467
+ checkVariables?: ("always" | "prohibit" | "never");
19468
+ checkArguments?: ("always" | "prohibit" | "never");
19469
+ checkFunctions?: ("always" | "prohibit" | "never");
19470
+ checkMethods?: ("always" | "prohibit" | "never");
19471
+ checkFields?: ("always" | "prohibit" | "never");
19428
19472
  prefixes?: {
19429
19473
  [k: string]: boolean | undefined;
19430
19474
  };
19475
+ wrappers?: {
19476
+ [k: string]: string | undefined;
19477
+ };
19431
19478
  ignore?: unknown[];
19479
+ [k: string]: unknown;
19432
19480
  }];
19433
19481
  // ----- unicorn/consistent-class-member-order -----
19434
19482
  type UnicornConsistentClassMemberOrder = [] | [{
@@ -19462,6 +19510,7 @@ type UnicornConsistentFunctionScoping = [] | [{
19462
19510
  // ----- unicorn/consistent-function-style -----
19463
19511
  type UnicornConsistentFunctionStyle = [] | [{
19464
19512
  default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19513
+ defaultExport?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19465
19514
  namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19466
19515
  namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
19467
19516
  callbacks?: ("function-expression" | "arrow-function" | "ignore");
@@ -19485,7 +19534,9 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
19485
19534
  // ----- unicorn/expiring-todo-comments -----
19486
19535
  type UnicornExpiringTodoComments = [] | [{
19487
19536
  terms?: string[];
19488
- ignore?: unknown[];
19537
+ ignore?: (string | {
19538
+ [k: string]: unknown | undefined;
19539
+ })[];
19489
19540
  checkDates?: boolean;
19490
19541
  checkDatesOnPullRequests?: boolean;
19491
19542
  allowWarningComments?: boolean;
@@ -19500,7 +19551,9 @@ type UnicornExplicitTimerDelay = [] | [("always" | "never")];
19500
19551
  // ----- unicorn/filename-case -----
19501
19552
  type UnicornFilenameCase = [] | [({
19502
19553
  case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
19503
- ignore?: unknown[];
19554
+ ignore?: (string | {
19555
+ [k: string]: unknown | undefined;
19556
+ })[];
19504
19557
  multipleFileExtensions?: boolean;
19505
19558
  checkDirectories?: boolean;
19506
19559
  } | {
@@ -19511,7 +19564,9 @@ type UnicornFilenameCase = [] | [({
19511
19564
  kebabCase?: boolean;
19512
19565
  pascalCase?: boolean;
19513
19566
  };
19514
- ignore?: unknown[];
19567
+ ignore?: (string | {
19568
+ [k: string]: unknown | undefined;
19569
+ })[];
19515
19570
  multipleFileExtensions?: boolean;
19516
19571
  checkDirectories?: boolean;
19517
19572
  })];
@@ -19548,6 +19603,8 @@ type UnicornIsolatedFunctions = [] | [{
19548
19603
  selectors?: string[];
19549
19604
  comments?: string[];
19550
19605
  }];
19606
+ // ----- unicorn/iteration-fallback-style -----
19607
+ type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
19551
19608
  // ----- unicorn/logical-assignment-operators -----
19552
19609
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
19553
19610
  enforceForIfStatements?: boolean;
@@ -19568,7 +19625,9 @@ type UnicornNameReplacements = [] | [{
19568
19625
  replacements?: _UnicornNameReplacements_NameReplacements;
19569
19626
  extendDefaultAllowList?: boolean;
19570
19627
  allowList?: _UnicornNameReplacements_BooleanObject;
19571
- ignore?: unknown[];
19628
+ ignore?: (string | {
19629
+ [k: string]: unknown | undefined;
19630
+ })[];
19572
19631
  }];
19573
19632
  type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
19574
19633
  interface _UnicornNameReplacements_NameReplacements {
@@ -19616,7 +19675,7 @@ type UnicornNoInvalidArgumentCount = [] | [{
19616
19675
  }];
19617
19676
  // ----- unicorn/no-keyword-prefix -----
19618
19677
  type UnicornNoKeywordPrefix = [] | [{
19619
- disallowedPrefixes?: [] | [string];
19678
+ disallowedPrefixes?: string[];
19620
19679
  checkProperties?: boolean;
19621
19680
  onlyCamelCase?: boolean;
19622
19681
  }];
@@ -19627,7 +19686,9 @@ type UnicornNoNegatedComparison = [] | [{
19627
19686
  // ----- unicorn/no-non-function-verb-prefix -----
19628
19687
  type UnicornNoNonFunctionVerbPrefix = [] | [{
19629
19688
  verbs?: string[];
19630
- ignore?: unknown[];
19689
+ ignore?: (string | {
19690
+ [k: string]: unknown | undefined;
19691
+ })[];
19631
19692
  }];
19632
19693
  // ----- unicorn/no-null -----
19633
19694
  type UnicornNoNull = [] | [{
@@ -19640,7 +19701,7 @@ type UnicornNoTypeofUndefined = [] | [{
19640
19701
  }];
19641
19702
  // ----- unicorn/no-unnecessary-polyfills -----
19642
19703
  type UnicornNoUnnecessaryPolyfills = [] | [{
19643
- targets?: (string | unknown[] | {
19704
+ targets?: (string | string[] | {
19644
19705
  [k: string]: unknown | undefined;
19645
19706
  });
19646
19707
  }];
@@ -19694,11 +19755,11 @@ type UnicornPreferArrayFind = [] | [{
19694
19755
  }];
19695
19756
  // ----- unicorn/prefer-array-flat -----
19696
19757
  type UnicornPreferArrayFlat = [] | [{
19697
- functions?: unknown[];
19758
+ functions?: string[];
19698
19759
  }];
19699
19760
  // ----- unicorn/prefer-at -----
19700
19761
  type UnicornPreferAt = [] | [{
19701
- getLastElementFunctions?: unknown[];
19762
+ getLastElementFunctions?: string[];
19702
19763
  checkAllIndexAccess?: boolean;
19703
19764
  }];
19704
19765
  // ----- unicorn/prefer-continue -----
@@ -19722,6 +19783,12 @@ type UnicornPreferExplicitViewportUnits = [] | [{
19722
19783
  type UnicornPreferExportFrom = [] | [{
19723
19784
  checkUsedVariables?: boolean;
19724
19785
  }];
19786
+ // ----- unicorn/prefer-https -----
19787
+ type UnicornPreferHttps = [] | [{
19788
+ ignore?: (string | {
19789
+ [k: string]: unknown | undefined;
19790
+ })[];
19791
+ }];
19725
19792
  // ----- unicorn/prefer-includes-over-repeated-comparisons -----
19726
19793
  type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
19727
19794
  minimumComparisons?: number;
@@ -19738,7 +19805,7 @@ type UnicornPreferNumberProperties = [] | [{
19738
19805
  }];
19739
19806
  // ----- unicorn/prefer-object-from-entries -----
19740
19807
  type UnicornPreferObjectFromEntries = [] | [{
19741
- functions?: unknown[];
19808
+ functions?: string[];
19742
19809
  }];
19743
19810
  // ----- unicorn/prefer-query-selector -----
19744
19811
  type UnicornPreferQuerySelector = [] | [{
@@ -19757,7 +19824,7 @@ type UnicornPreferSetHas = [] | [{
19757
19824
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
19758
19825
  // ----- unicorn/prefer-single-call -----
19759
19826
  type UnicornPreferSingleCall = [] | [{
19760
- ignore?: unknown[];
19827
+ ignore?: string[];
19761
19828
  }];
19762
19829
  // ----- unicorn/prefer-string-repeat -----
19763
19830
  type UnicornPreferStringRepeat = [] | [{
@@ -19765,7 +19832,7 @@ type UnicornPreferStringRepeat = [] | [{
19765
19832
  }];
19766
19833
  // ----- unicorn/prefer-structured-clone -----
19767
19834
  type UnicornPreferStructuredClone = [] | [{
19768
- functions?: unknown[];
19835
+ functions?: string[];
19769
19836
  }];
19770
19837
  // ----- unicorn/prefer-switch -----
19771
19838
  type UnicornPreferSwitch = [] | [{
@@ -19790,6 +19857,12 @@ type UnicornRequireCssEscape = [] | [{
19790
19857
  type UnicornRequireFrontmatterFields = [] | [{
19791
19858
  fields?: string[];
19792
19859
  }];
19860
+ // ----- unicorn/single-line-block-comment-style -----
19861
+ type UnicornSingleLineBlockCommentStyle = [] | [("multiline" | "single-line")] | [("multiline" | "single-line"), {
19862
+ ignore?: (string | {
19863
+ [k: string]: unknown | undefined;
19864
+ })[];
19865
+ }];
19793
19866
  // ----- unicorn/string-content -----
19794
19867
  type UnicornStringContent = [] | [{
19795
19868
  patterns?: {
@@ -21363,15 +21436,19 @@ type YamlSortKeys = ([{
21363
21436
  hasProperties?: string[];
21364
21437
  order: ((string | {
21365
21438
  keyPattern?: string;
21366
- order?: {
21439
+ order?: ({
21367
21440
  type?: ("asc" | "desc");
21368
21441
  caseSensitive?: boolean;
21369
21442
  natural?: boolean;
21370
- };
21443
+ } | {
21444
+ type: "ignore";
21445
+ });
21371
21446
  })[] | {
21372
21447
  type?: ("asc" | "desc");
21373
21448
  caseSensitive?: boolean;
21374
21449
  natural?: boolean;
21450
+ } | {
21451
+ type: "ignore";
21375
21452
  });
21376
21453
  minKeys?: number;
21377
21454
  allowLineSeparatedGroups?: boolean;
@@ -21380,15 +21457,19 @@ type YamlSortKeys = ([{
21380
21457
  hasProperties?: string[];
21381
21458
  order: ((string | {
21382
21459
  keyPattern?: string;
21383
- order?: {
21460
+ order?: ({
21384
21461
  type?: ("asc" | "desc");
21385
21462
  caseSensitive?: boolean;
21386
21463
  natural?: boolean;
21387
- };
21464
+ } | {
21465
+ type: "ignore";
21466
+ });
21388
21467
  })[] | {
21389
21468
  type?: ("asc" | "desc");
21390
21469
  caseSensitive?: boolean;
21391
21470
  natural?: boolean;
21471
+ } | {
21472
+ type: "ignore";
21392
21473
  });
21393
21474
  minKeys?: number;
21394
21475
  allowLineSeparatedGroups?: boolean;