@kitschpatrol/eslint-config 8.1.0 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -322,6 +322,7 @@ interface RuleOptions {
322
322
  /**
323
323
  * Disallow omitted end tags
324
324
  *
325
+ * @deprecated
325
326
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-omitted-end-tags/
326
327
  */
327
328
  'astro/no-omitted-end-tags'?: Linter.RuleEntry<[]>;
@@ -394,6 +395,7 @@ interface RuleOptions {
394
395
  /**
395
396
  * Disallow warnings when compiling.
396
397
  *
398
+ * @deprecated
397
399
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
398
400
  */
399
401
  'astro/valid-compile'?: Linter.RuleEntry<[]>;
@@ -1769,6 +1771,12 @@ interface RuleOptions {
1769
1771
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1770
1772
  */
1771
1773
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1774
+ /**
1775
+ * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1776
+ *
1777
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
1778
+ */
1779
+ 'jsdoc/normalize-see-links'?: Linter.RuleEntry<JsdocNormalizeSeeLinks>;
1772
1780
  /**
1773
1781
  * Prefer `@import` tags to inline `import()` statements.
1774
1782
  *
@@ -7303,6 +7311,20 @@ interface RuleOptions {
7303
7311
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-at-html-tags/
7304
7312
  */
7305
7313
  'svelte/no-at-html-tags'?: Linter.RuleEntry<[]>;
7314
+ /**
7315
+ * Disallow useless `bind:value` on `<input type="checkbox">` and `<input
7316
+ * type="radio">`
7317
+ *
7318
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-bind-value-on-checkable-inputs/
7319
+ */
7320
+ 'svelte/no-bind-value-on-checkable-inputs'?: Linter.RuleEntry<[]>;
7321
+ /**
7322
+ * Disallow a `.svelte` component and a same-named runes module (e.g.
7323
+ * `Foo.svelte` and `Foo.svelte.ts`) from coexisting
7324
+ *
7325
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-conflicting-module-names/
7326
+ */
7327
+ 'svelte/no-conflicting-module-names'?: Linter.RuleEntry<[]>;
7306
7328
  /**
7307
7329
  * Disallow DOM manipulating
7308
7330
  *
@@ -8650,6 +8672,7 @@ interface RuleOptions {
8650
8672
  * Disallow function declarations that contain unsafe references inside loop
8651
8673
  * statements
8652
8674
  *
8675
+ * @deprecated
8653
8676
  * @see https://typescript-eslint.io/rules/no-loop-func
8654
8677
  */
8655
8678
  'ts/no-loop-func'?: Linter.RuleEntry<[]>;
@@ -9205,501 +9228,501 @@ interface RuleOptions {
9205
9228
  /**
9206
9229
  * Prefer better DOM traversal APIs.
9207
9230
  *
9208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/better-dom-traversing.md
9231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
9209
9232
  */
9210
9233
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
9211
9234
  /**
9212
9235
  * Removed. Prefer `eslint-plugin-regexp`
9213
9236
  *
9214
9237
  * @deprecated
9215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#better-regex
9238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
9216
9239
  */
9217
9240
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
9218
9241
  /**
9219
9242
  * Enforce a specific parameter name in catch clauses.
9220
9243
  *
9221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/catch-error-name.md
9244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
9222
9245
  */
9223
9246
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
9224
9247
  /**
9225
9248
  * Enforce consistent class references in static methods.
9226
9249
  *
9227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/class-reference-in-static-methods.md
9250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
9228
9251
  */
9229
9252
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
9230
9253
  /**
9231
9254
  * Enforce better comment content.
9232
9255
  *
9233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/comment-content.md
9256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
9234
9257
  */
9235
9258
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
9236
9259
  /**
9237
9260
  * Enforce consistent assertion style with `node:assert`.
9238
9261
  *
9239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-assert.md
9262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
9240
9263
  */
9241
9264
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
9242
9265
  /**
9243
9266
  * Enforce consistent naming for boolean names.
9244
9267
  *
9245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-boolean-name.md
9268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
9246
9269
  */
9247
9270
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
9248
9271
  /**
9249
9272
  * Enforce consistent class member order.
9250
9273
  *
9251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-class-member-order.md
9274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
9252
9275
  */
9253
9276
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
9254
9277
  /**
9255
9278
  * Enforce consistent spelling of compound words in identifiers.
9256
9279
  *
9257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-compound-words.md
9280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
9258
9281
  */
9259
9282
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
9260
9283
  /**
9261
9284
  * Enforce consistent conditional object spread style.
9262
9285
  *
9263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-conditional-object-spread.md
9286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
9264
9287
  */
9265
9288
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
9266
9289
  /**
9267
9290
  * Prefer passing `Date` directly to the constructor when cloning.
9268
9291
  *
9269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-date-clone.md
9292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
9270
9293
  */
9271
9294
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
9272
9295
  /**
9273
9296
  * Use destructured variables over properties.
9274
9297
  *
9275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-destructuring.md
9298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
9276
9299
  */
9277
9300
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
9278
9301
  /**
9279
9302
  * Prefer consistent types when spreading a ternary in an array literal.
9280
9303
  *
9281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-empty-array-spread.md
9304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
9282
9305
  */
9283
9306
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
9284
9307
  /**
9285
9308
  * Enforce consistent style for element existence checks with `indexOf()`,
9286
9309
  * `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
9287
9310
  *
9288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-existence-index-check.md
9311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
9289
9312
  */
9290
9313
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
9291
9314
  /**
9292
9315
  * Enforce consistent decorator position on exported classes.
9293
9316
  *
9294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-export-decorator-position.md
9317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
9295
9318
  */
9296
9319
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
9297
9320
  /**
9298
9321
  * Move function definitions to the highest possible scope.
9299
9322
  *
9300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-scoping.md
9323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
9301
9324
  */
9302
9325
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
9303
9326
  /**
9304
9327
  * Enforce function syntax by role.
9305
9328
  *
9306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-style.md
9329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
9307
9330
  */
9308
9331
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
9309
9332
  /**
9310
9333
  * Enforce consistent JSON file reads before `JSON.parse()`.
9311
9334
  *
9312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-json-file-read.md
9335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
9313
9336
  */
9314
9337
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
9315
9338
  /**
9316
9339
  * Enforce consistent optional chaining for same-base member access.
9317
9340
  *
9318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-optional-chaining.md
9341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
9319
9342
  */
9320
9343
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
9321
9344
  /**
9322
9345
  * Enforce consistent style for escaping `${` in template literals.
9323
9346
  *
9324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-template-literal-escape.md
9347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
9325
9348
  */
9326
9349
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
9327
9350
  /**
9328
9351
  * Enforce consistent labels on tuple type elements.
9329
9352
  *
9330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-tuple-labels.md
9353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
9331
9354
  */
9332
9355
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
9333
9356
  /**
9334
9357
  * Enforce correct `Error` subclassing.
9335
9358
  *
9336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/custom-error-definition.md
9359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
9337
9360
  */
9338
9361
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
9339
9362
  /**
9340
9363
  * Enforce consistent default export declarations.
9341
9364
  *
9342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/default-export-style.md
9365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
9343
9366
  */
9344
9367
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
9345
9368
  /**
9346
9369
  * Enforce consistent style for DOM element dataset access.
9347
9370
  *
9348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/dom-node-dataset.md
9371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
9349
9372
  */
9350
9373
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
9351
9374
  /**
9352
9375
  * Enforce no spaces between braces.
9353
9376
  *
9354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/empty-brace-spaces.md
9377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
9355
9378
  */
9356
9379
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
9357
9380
  /**
9358
9381
  * Enforce passing a `message` value when creating a built-in error.
9359
9382
  *
9360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/error-message.md
9383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
9361
9384
  */
9362
9385
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
9363
9386
  /**
9364
9387
  * Require escape sequences to use uppercase or lowercase values.
9365
9388
  *
9366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/escape-case.md
9389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
9367
9390
  */
9368
9391
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
9369
9392
  /**
9370
9393
  * Add expiration conditions to TODO comments.
9371
9394
  *
9372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/expiring-todo-comments.md
9395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
9373
9396
  */
9374
9397
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
9375
9398
  /**
9376
9399
  * Enforce explicitly comparing the `length` or `size` property of a value.
9377
9400
  *
9378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-length-check.md
9401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
9379
9402
  */
9380
9403
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
9381
9404
  /**
9382
9405
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and
9383
9406
  * `setInterval()`.
9384
9407
  *
9385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-timer-delay.md
9408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
9386
9409
  */
9387
9410
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
9388
9411
  /**
9389
9412
  * Enforce a case style for filenames and directory names.
9390
9413
  *
9391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/filename-case.md
9414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
9392
9415
  */
9393
9416
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
9394
9417
  /**
9395
9418
  * Require identifiers to match a specified regular expression.
9396
9419
  *
9397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/id-match.md
9420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
9398
9421
  */
9399
9422
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
9400
9423
  /**
9401
9424
  * Enforce specific import styles per module.
9402
9425
  *
9403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/import-style.md
9426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
9404
9427
  */
9405
9428
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
9406
9429
  /**
9407
9430
  * Prevent usage of variables from outside the scope of isolated functions.
9408
9431
  *
9409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/isolated-functions.md
9432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
9410
9433
  */
9411
9434
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
9412
9435
  /**
9413
9436
  * Require or disallow logical assignment operator shorthand
9414
9437
  *
9415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/logical-assignment-operators.md
9438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
9416
9439
  */
9417
9440
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
9418
9441
  /**
9419
9442
  * Limit the depth of nested calls.
9420
9443
  *
9421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/max-nested-calls.md
9444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
9422
9445
  */
9423
9446
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
9424
9447
  /**
9425
9448
  * Enforce replacements for variable, property, and filenames.
9426
9449
  *
9427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/name-replacements.md
9450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
9428
9451
  */
9429
9452
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
9430
9453
  /**
9431
9454
  * Enforce correct use of `new` for builtin constructors.
9432
9455
  *
9433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/new-for-builtins.md
9456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
9434
9457
  */
9435
9458
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
9436
9459
  /**
9437
9460
  * Enforce specifying rules to disable in `eslint-disable` comments.
9438
9461
  *
9439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-abusive-eslint-disable.md
9462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
9440
9463
  */
9441
9464
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
9442
9465
  /**
9443
9466
  * Disallow recursive access to `this` within getters and setters.
9444
9467
  *
9445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accessor-recursion.md
9468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
9446
9469
  */
9447
9470
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
9448
9471
  /**
9449
9472
  * Disallow bitwise operators where a logical operator was likely intended.
9450
9473
  *
9451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accidental-bitwise-operator.md
9474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
9452
9475
  */
9453
9476
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
9454
9477
  /**
9455
9478
  * Disallow anonymous functions and classes as the default export.
9456
9479
  *
9457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-anonymous-default-export.md
9480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
9458
9481
  */
9459
9482
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
9460
9483
  /**
9461
9484
  * Prevent passing a function reference directly to iterator methods.
9462
9485
  *
9463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-callback-reference.md
9486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
9464
9487
  */
9465
9488
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
9466
9489
  /**
9467
9490
  * Disallow array accumulation with `Array#concat()` in loops.
9468
9491
  *
9469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-concat-in-loop.md
9492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
9470
9493
  */
9471
9494
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
9472
9495
  /**
9473
9496
  * Disallow using reference values as `Array#fill()` values.
9474
9497
  *
9475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-fill-with-reference-type.md
9498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
9476
9499
  */
9477
9500
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
9478
9501
  /**
9479
9502
  * Disallow `.fill()` after `Array.from({length: …})`.
9480
9503
  *
9481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-from-fill.md
9504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
9482
9505
  */
9483
9506
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
9484
9507
  /**
9485
9508
  * Disallow front-of-array mutation.
9486
9509
  *
9487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-front-mutation.md
9510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
9488
9511
  */
9489
9512
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
9490
9513
  /**
9491
9514
  * Disallow using the `this` argument in array methods.
9492
9515
  *
9493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-method-this-argument.md
9516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
9494
9517
  */
9495
9518
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
9496
9519
  /**
9497
9520
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
9498
9521
  *
9499
9522
  * @deprecated
9500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9501
9524
  */
9502
9525
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
9503
9526
  /**
9504
9527
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
9505
9528
  *
9506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reduce.md
9529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
9507
9530
  */
9508
9531
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
9509
9532
  /**
9510
9533
  * Prefer `Array#toReversed()` over `Array#reverse()`.
9511
9534
  *
9512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reverse.md
9535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
9513
9536
  */
9514
9537
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
9515
9538
  /**
9516
9539
  * Prefer `Array#toSorted()` over `Array#sort()`.
9517
9540
  *
9518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort.md
9541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
9519
9542
  */
9520
9543
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
9521
9544
  /**
9522
9545
  * Disallow sorting arrays to get the minimum or maximum value.
9523
9546
  *
9524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort-for-min-max.md
9547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
9525
9548
  */
9526
9549
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
9527
9550
  /**
9528
9551
  * Prefer `Array#toSpliced()` over `Array#splice()`.
9529
9552
  *
9530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-splice.md
9553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
9531
9554
  */
9532
9555
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
9533
9556
  /**
9534
9557
  * Disallow asterisk prefixes in documentation comments.
9535
9558
  *
9536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9537
9560
  */
9538
9561
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
9539
9562
  /**
9540
9563
  * Disallow async functions as `Promise#finally()` callbacks.
9541
9564
  *
9542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-async-promise-finally.md
9565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
9543
9566
  */
9544
9567
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
9545
9568
  /**
9546
9569
  * Disallow member access from await expression.
9547
9570
  *
9548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-expression-member.md
9571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
9549
9572
  */
9550
9573
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
9551
9574
  /**
9552
9575
  * Disallow using `await` in `Promise` method parameters.
9553
9576
  *
9554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-in-promise-methods.md
9577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
9555
9578
  */
9556
9579
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
9557
9580
  /**
9558
9581
  * Disallow unnecessary `Blob` to `File` conversion.
9559
9582
  *
9560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-blob-to-file.md
9583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
9561
9584
  */
9562
9585
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
9563
9586
  /**
9564
9587
  * Disallow boolean-returning sort comparators.
9565
9588
  *
9566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-boolean-sort-comparator.md
9589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
9567
9590
  */
9568
9591
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
9569
9592
  /**
9570
9593
  * Disallow `break` and `continue` in nested loops and switches inside loops.
9571
9594
  *
9572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-break-in-nested-loop.md
9595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
9573
9596
  */
9574
9597
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
9575
9598
  /**
9576
9599
  * Prefer drawing canvases directly instead of converting them to images.
9577
9600
  *
9578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-canvas-to-image.md
9601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
9579
9602
  */
9580
9603
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
9581
9604
  /**
9582
9605
  * Disallow chained comparisons such as `a < b < c`.
9583
9606
  *
9584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-chained-comparison.md
9607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
9585
9608
  */
9586
9609
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
9587
9610
  /**
9588
9611
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with
9589
9612
  * bracket notation.
9590
9613
  *
9591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-collection-bracket-access.md
9614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
9592
9615
  */
9593
9616
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
9594
9617
  /**
9595
9618
  * Disallow dynamic object property existence checks.
9596
9619
  *
9597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-computed-property-existence-check.md
9620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
9598
9621
  */
9599
9622
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
9600
9623
  /**
9601
9624
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
9602
9625
  *
9603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-splice.md
9626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
9604
9627
  */
9605
9628
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
9606
9629
  /**
9607
9630
  * Disallow confusing uses of `Array#with()`.
9608
9631
  *
9609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-with.md
9632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
9610
9633
  */
9611
9634
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
9612
9635
  /**
9613
9636
  * Do not use leading/trailing space between `console.log` parameters.
9614
9637
  *
9615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-console-spaces.md
9638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
9616
9639
  */
9617
9640
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
9618
9641
  /**
9619
9642
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
9620
9643
  *
9621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-constant-zero-expression.md
9644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
9622
9645
  */
9623
9646
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
9624
9647
  /**
9625
9648
  * Disallow declarations before conditional early exits when they are only
9626
9649
  * used after the exit.
9627
9650
  *
9628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-declarations-before-early-exit.md
9651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
9629
9652
  */
9630
9653
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
9631
9654
  /**
9632
9655
  * Do not use `document.cookie` directly.
9633
9656
  *
9634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-document-cookie.md
9657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
9635
9658
  */
9636
9659
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
9637
9660
  /**
9638
9661
  * Disallow two comparisons of the same operands that can be combined into
9639
9662
  * one.
9640
9663
  *
9641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-double-comparison.md
9664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
9642
9665
  */
9643
9666
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
9644
9667
  /**
9645
9668
  * Disallow duplicate adjacent branches in if chains.
9646
9669
  *
9647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-if-branches.md
9670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
9648
9671
  */
9649
9672
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
9650
9673
  /**
9651
9674
  * Disallow adjacent duplicate operands in logical expressions.
9652
9675
  *
9653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-logical-operands.md
9676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
9654
9677
  */
9655
9678
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
9656
9679
  /**
9657
9680
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop
9658
9681
  * headers.
9659
9682
  *
9660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-loops.md
9683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
9661
9684
  */
9662
9685
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
9663
9686
  /**
9664
9687
  * Disallow duplicate values in `Set` constructor array literals.
9665
9688
  *
9666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-set-values.md
9689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
9667
9690
  */
9668
9691
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
9669
9692
  /**
9670
9693
  * Disallow empty files.
9671
9694
  *
9672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-empty-file.md
9695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
9673
9696
  */
9674
9697
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
9675
9698
  /**
9676
9699
  * Disallow assigning to built-in error properties.
9677
9700
  *
9678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-error-property-assignment.md
9701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
9679
9702
  */
9680
9703
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
9681
9704
  /**
9682
9705
  * Disallow exports in scripts.
9683
9706
  *
9684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-exports-in-scripts.md
9707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
9685
9708
  */
9686
9709
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
9687
9710
  /**
9688
9711
  * Prefer `for…of` over the `forEach` method.
9689
9712
  *
9690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-each.md
9713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
9691
9714
  */
9692
9715
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
9693
9716
  /**
9694
9717
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
9695
9718
  *
9696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-loop.md
9719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
9697
9720
  */
9698
9721
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
9699
9722
  /**
9700
9723
  * Disallow assigning properties on the global object.
9701
9724
  *
9702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-global-object-property-assignment.md
9725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
9703
9726
  */
9704
9727
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
9705
9728
  /**
@@ -9707,1566 +9730,1622 @@ interface RuleOptions {
9707
9730
  * cases.
9708
9731
  *
9709
9732
  * @deprecated
9710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9711
9734
  */
9712
9735
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
9713
9736
  /**
9714
9737
  * Disallow immediate mutation after variable assignment.
9715
9738
  *
9716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-immediate-mutation.md
9739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
9717
9740
  */
9718
9741
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
9719
9742
  /**
9720
9743
  * Disallow impossible comparisons against `.length` or `.size`.
9721
9744
  *
9722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-impossible-length-comparison.md
9745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
9723
9746
  */
9724
9747
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
9725
9748
  /**
9726
9749
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
9727
9750
  *
9728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-query-selector.md
9751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
9729
9752
  */
9730
9753
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
9731
9754
  /**
9732
9755
  * Disallow incorrect template literal interpolation syntax.
9733
9756
  *
9734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-template-string-interpolation.md
9757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
9735
9758
  */
9736
9759
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
9737
9760
  /**
9738
9761
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
9739
9762
  *
9740
9763
  * @deprecated
9741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9742
9765
  */
9743
9766
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
9744
9767
  /**
9745
9768
  * Disallow `instanceof` with built-in objects
9746
9769
  *
9747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-instanceof-builtins.md
9770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
9748
9771
  */
9749
9772
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
9750
9773
  /**
9751
9774
  * Disallow calling functions and constructors with an invalid number of
9752
9775
  * arguments.
9753
9776
  *
9754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-argument-count.md
9777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
9755
9778
  */
9756
9779
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
9757
9780
  /**
9758
9781
  * Disallow comparing a single character from a string to a multi-character
9759
9782
  * string.
9760
9783
  *
9761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-character-comparison.md
9784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
9762
9785
  */
9763
9786
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
9764
9787
  /**
9765
9788
  * Disallow invalid options in `fetch()` and `new Request()`.
9766
9789
  *
9767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-fetch-options.md
9790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
9768
9791
  */
9769
9792
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
9770
9793
  /**
9771
9794
  * Disallow invalid `accept` values on file inputs.
9772
9795
  *
9773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-file-input-accept.md
9796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
9774
9797
  */
9775
9798
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
9776
9799
  /**
9777
9800
  * Prevent calling `EventTarget#removeEventListener()` with the result of an
9778
9801
  * expression.
9779
9802
  *
9780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-remove-event-listener.md
9803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
9781
9804
  */
9782
9805
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
9783
9806
  /**
9784
9807
  * Disallow invalid implementations of well-known symbol methods.
9785
9808
  *
9786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-well-known-symbol-methods.md
9809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
9787
9810
  */
9788
9811
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
9789
9812
  /**
9790
9813
  * Disallow identifiers starting with `new` or `class`.
9791
9814
  *
9792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-keyword-prefix.md
9815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
9793
9816
  */
9794
9817
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
9795
9818
  /**
9796
9819
  * Disallow accessing `event.currentTarget` after the synchronous event
9797
9820
  * dispatch has finished.
9798
9821
  *
9799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-current-target-access.md
9822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
9800
9823
  */
9801
9824
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
9802
9825
  /**
9803
9826
  * Disallow event-control method calls after the synchronous event dispatch
9804
9827
  * has finished.
9805
9828
  *
9806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-event-control.md
9829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
9807
9830
  */
9808
9831
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
9809
9832
  /**
9810
9833
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
9811
9834
  *
9812
9835
  * @deprecated
9813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
9836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
9814
9837
  */
9815
9838
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
9816
9839
  /**
9817
9840
  * Disallow `if` statements as the only statement in `if` blocks without
9818
9841
  * `else`.
9819
9842
  *
9820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-lonely-if.md
9843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
9821
9844
  */
9822
9845
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
9823
9846
  /**
9824
9847
  * Disallow mutating a loop iterable during iteration.
9825
9848
  *
9826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-loop-iterable-mutation.md
9849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
9827
9850
  */
9828
9851
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
9829
9852
  /**
9830
9853
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
9831
9854
  *
9832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-magic-array-flat-depth.md
9855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
9833
9856
  */
9834
9857
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
9835
9858
  /**
9836
9859
  * Disallow manually wrapped comments.
9837
9860
  *
9838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-manually-wrapped-comments.md
9861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
9839
9862
  */
9840
9863
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
9841
9864
  /**
9842
9865
  * Disallow checking a Map key before accessing a different key.
9843
9866
  *
9844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-mismatched-map-key.md
9867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
9845
9868
  */
9846
9869
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
9847
9870
  /**
9848
9871
  * Disallow misrefactored compound assignments where the target is duplicated
9849
9872
  * in the right-hand side.
9850
9873
  *
9851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-misrefactored-assignment.md
9874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
9852
9875
  */
9853
9876
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
9877
+ /**
9878
+ * Disallow references to missing local resources.
9879
+ *
9880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
9881
+ */
9882
+ 'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
9883
+ /**
9884
+ * Disallow calling Promise executor resolver functions more than once on the
9885
+ * same execution path.
9886
+ *
9887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
9888
+ */
9889
+ 'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
9854
9890
  /**
9855
9891
  * Disallow named usage of default import and export.
9856
9892
  *
9857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-named-default.md
9893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
9858
9894
  */
9859
9895
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
9860
9896
  /**
9861
9897
  * Disallow negated array predicate calls.
9862
9898
  *
9863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-array-predicate.md
9899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
9864
9900
  */
9865
9901
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
9866
9902
  /**
9867
9903
  * Disallow negated comparisons.
9868
9904
  *
9869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-comparison.md
9905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
9870
9906
  */
9871
9907
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
9872
9908
  /**
9873
9909
  * Disallow negated conditions.
9874
9910
  *
9875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-condition.md
9911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
9876
9912
  */
9877
9913
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
9878
9914
  /**
9879
9915
  * Disallow negated expression in equality check.
9880
9916
  *
9881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negation-in-equality-check.md
9917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
9882
9918
  */
9883
9919
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
9884
9920
  /**
9885
9921
  * Disallow nested ternary expressions.
9886
9922
  *
9887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nested-ternary.md
9923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
9888
9924
  */
9889
9925
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
9890
9926
  /**
9891
9927
  * Disallow `new Array()`.
9892
9928
  *
9893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-array.md
9929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
9894
9930
  */
9895
9931
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
9896
9932
  /**
9897
9933
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the
9898
9934
  * deprecated `new Buffer()`.
9899
9935
  *
9900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-buffer.md
9936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
9901
9937
  */
9902
9938
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
9903
9939
  /**
9904
9940
  * Disallow non-function values with function-style verb prefixes.
9905
9941
  *
9906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-non-function-verb-prefix.md
9942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
9907
9943
  */
9908
9944
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
9909
9945
  /**
9910
9946
  * Disallow non-standard properties on built-in objects.
9911
9947
  *
9912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nonstandard-builtin-properties.md
9948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
9913
9949
  */
9914
9950
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
9915
9951
  /**
9916
9952
  * Disallow the use of the `null` literal.
9917
9953
  *
9918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-null.md
9954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
9919
9955
  */
9920
9956
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
9921
9957
  /**
9922
9958
  * Disallow the use of objects as default parameters.
9923
9959
  *
9924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-as-default-parameter.md
9960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
9925
9961
  */
9926
9962
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
9927
9963
  /**
9928
9964
  * Disallow `Object` methods with `Map` or `Set`.
9929
9965
  *
9930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-methods-with-collections.md
9966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
9931
9967
  */
9932
9968
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
9933
9969
  /**
9934
9970
  * Disallow optional chaining on undeclared variables.
9935
9971
  *
9936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
9972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
9937
9973
  */
9938
9974
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
9939
9975
  /**
9940
9976
  * Disallow `process.exit()`.
9941
9977
  *
9942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-process-exit.md
9978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
9943
9979
  */
9944
9980
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
9945
9981
  /**
9946
9982
  * Disallow comparisons made redundant by an equality check in the same
9947
9983
  * logical AND.
9948
9984
  *
9949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-redundant-comparison.md
9985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
9950
9986
  */
9951
9987
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
9952
9988
  /**
9953
9989
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
9954
9990
  *
9955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-return-array-push.md
9991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
9956
9992
  */
9957
9993
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
9958
9994
  /**
9959
9995
  * Disallow selector syntax in DOM names.
9960
9996
  *
9961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-selector-as-dom-name.md
9997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
9962
9998
  */
9963
9999
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
10000
+ /**
10001
+ * Disallow shorthand properties that override related longhand properties.
10002
+ *
10003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
10004
+ */
10005
+ 'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
9964
10006
  /**
9965
10007
  * Disallow passing single-element arrays to `Promise` methods.
9966
10008
  *
9967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-single-promise-in-promise-methods.md
10009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
9968
10010
  */
9969
10011
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
9970
10012
  /**
9971
10013
  * Disallow classes that only have static members.
9972
10014
  *
9973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-static-only-class.md
10015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
9974
10016
  */
9975
10017
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
9976
10018
  /**
9977
10019
  * Prefer comparing values directly over subtracting and comparing to `0`.
9978
10020
  *
9979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-subtraction-comparison.md
10021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
9980
10022
  */
9981
10023
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
9982
10024
  /**
9983
10025
  * Disallow `then` property.
9984
10026
  *
9985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-thenable.md
10027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
9986
10028
  */
9987
10029
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
9988
10030
  /**
9989
10031
  * Disallow assigning `this` to a variable.
9990
10032
  *
9991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-assignment.md
10033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
9992
10034
  */
9993
10035
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
9994
10036
  /**
9995
10037
  * Disallow `this` outside of classes.
9996
10038
  *
9997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-outside-of-class.md
10039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
9998
10040
  */
9999
10041
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
10000
10042
  /**
10001
10043
  * Disallow assigning to top-level variables from inside functions.
10002
10044
  *
10003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-assignment-in-function.md
10045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
10004
10046
  */
10005
10047
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
10006
10048
  /**
10007
10049
  * Disallow top-level side effects in exported modules.
10008
10050
  *
10009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-side-effects.md
10051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
10010
10052
  */
10011
10053
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
10054
+ /**
10055
+ * Disallow `all` as a transition property.
10056
+ *
10057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
10058
+ */
10059
+ 'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
10012
10060
  /**
10013
10061
  * Disallow comparing `undefined` using `typeof`.
10014
10062
  *
10015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-typeof-undefined.md
10063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
10016
10064
  */
10017
10065
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
10018
10066
  /**
10019
10067
  * Disallow referencing methods without calling them.
10020
10068
  *
10021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-uncalled-method.md
10069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
10022
10070
  */
10023
10071
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
10024
10072
  /**
10025
10073
  * Require class members to be declared.
10026
10074
  *
10027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-undeclared-class-members.md
10075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
10028
10076
  */
10029
10077
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
10030
10078
  /**
10031
10079
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
10032
10080
  *
10033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-depth.md
10081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
10034
10082
  */
10035
10083
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
10036
10084
  /**
10037
10085
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
10038
10086
  *
10039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-map.md
10087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
10040
10088
  */
10041
10089
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
10042
10090
  /**
10043
10091
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount`
10044
10092
  * argument of `Array#{splice,toSpliced}()`.
10045
10093
  *
10046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-splice-count.md
10094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
10047
10095
  */
10048
10096
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
10049
10097
  /**
10050
10098
  * Disallow awaiting non-promise values.
10051
10099
  *
10052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-await.md
10100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
10053
10101
  */
10054
10102
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
10055
10103
  /**
10056
10104
  * Disallow unnecessary comparisons against boolean literals.
10057
10105
  *
10058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-boolean-comparison.md
10106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
10059
10107
  */
10060
10108
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
10061
10109
  /**
10062
10110
  * Disallow unnecessary options in `fetch()` and `new Request()`.
10063
10111
  *
10064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-fetch-options.md
10112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
10065
10113
  */
10066
10114
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
10067
10115
  /**
10068
10116
  * Disallow unnecessary `globalThis` references.
10069
10117
  *
10070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-global-this.md
10118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
10071
10119
  */
10072
10120
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
10073
10121
  /**
10074
10122
  * Disallow unnecessary nested ternary expressions.
10075
10123
  *
10076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-nested-ternary.md
10124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
10077
10125
  */
10078
10126
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
10079
10127
  /**
10080
10128
  * Enforce the use of built-in methods instead of unnecessary polyfills.
10081
10129
  *
10082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-polyfills.md
10130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
10083
10131
  */
10084
10132
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
10085
10133
  /**
10086
10134
  * Disallow using `.length` or `Infinity` as the `end` argument of
10087
10135
  * `{Array,String,TypedArray}#slice()`.
10088
10136
  *
10089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-slice-end.md
10137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
10090
10138
  */
10091
10139
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
10092
10140
  /**
10093
10141
  * Disallow `Array#splice()` when simpler alternatives exist.
10094
10142
  *
10095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-splice.md
10143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
10096
10144
  */
10097
10145
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
10146
+ /**
10147
+ * Disallow `String#trim()` before `String#startsWith()` or
10148
+ * `String#endsWith()`.
10149
+ *
10150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
10151
+ */
10152
+ 'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
10098
10153
  /**
10099
10154
  * Disallow unreadable array destructuring.
10100
10155
  *
10101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-array-destructuring.md
10156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
10102
10157
  */
10103
10158
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
10104
10159
  /**
10105
10160
  * Disallow unreadable iterable expressions in `for…of` and `for await…of`
10106
10161
  * loop headers.
10107
10162
  *
10108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-for-of-expression.md
10163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
10109
10164
  */
10110
10165
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
10111
10166
  /**
10112
10167
  * Disallow unreadable IIFEs.
10113
10168
  *
10114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-iife.md
10169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
10115
10170
  */
10116
10171
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
10117
10172
  /**
10118
10173
  * Disallow unreadable `new` expressions.
10119
10174
  *
10120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-new-expression.md
10175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
10121
10176
  */
10122
10177
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
10123
10178
  /**
10124
10179
  * Disallow unreadable object destructuring.
10125
10180
  *
10126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-object-destructuring.md
10181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
10127
10182
  */
10128
10183
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
10129
10184
  /**
10130
10185
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
10131
10186
  *
10132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-buffer-conversion.md
10187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
10133
10188
  */
10134
10189
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
10135
10190
  /**
10136
10191
  * Disallow unsafe DOM HTML APIs.
10137
10192
  *
10138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-dom-html.md
10193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
10139
10194
  */
10140
10195
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
10141
10196
  /**
10142
10197
  * Disallow reading `.value` from `Promise.allSettled()` results without a
10143
10198
  * fulfilled status guard.
10144
10199
  *
10145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-promise-all-settled-values.md
10200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
10146
10201
  */
10147
10202
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
10148
10203
  /**
10149
10204
  * Disallow unsafe values as property keys.
10150
10205
  *
10151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-property-key.md
10206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
10152
10207
  */
10153
10208
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
10154
10209
  /**
10155
10210
  * Disallow non-literal replacement values in `String#replace()` and
10156
10211
  * `String#replaceAll()`.
10157
10212
  *
10158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-string-replacement.md
10213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
10159
10214
  */
10160
10215
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
10161
10216
  /**
10162
10217
  * Disallow ignoring the return value of selected array methods.
10163
10218
  *
10164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-array-method-return.md
10219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
10165
10220
  */
10166
10221
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
10167
10222
  /**
10168
10223
  * Disallow unused object properties.
10169
10224
  *
10170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-properties.md
10225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
10171
10226
  */
10172
10227
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
10173
10228
  /**
10174
10229
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
10175
10230
  *
10176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-boolean-cast.md
10231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
10177
10232
  */
10178
10233
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
10179
10234
  /**
10180
10235
  * Disallow useless type coercions of values that are already of the target
10181
10236
  * type.
10182
10237
  *
10183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-coercion.md
10238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
10184
10239
  */
10185
10240
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
10186
10241
  /**
10187
10242
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or
10188
10243
  * `WeakMap`.
10189
10244
  *
10190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-collection-argument.md
10245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
10191
10246
  */
10192
10247
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
10193
10248
  /**
10194
10249
  * Disallow useless compound assignments such as `x += 0`.
10195
10250
  *
10196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-compound-assignment.md
10251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
10197
10252
  */
10198
10253
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
10199
10254
  /**
10200
10255
  * Disallow useless concatenation of literals.
10201
10256
  *
10202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-concat.md
10257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
10203
10258
  */
10204
10259
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
10205
10260
  /**
10206
10261
  * Disallow useless `continue` statements.
10207
10262
  *
10208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-continue.md
10263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
10209
10264
  */
10210
10265
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
10211
10266
  /**
10212
10267
  * Disallow unnecessary existence checks before deletion.
10213
10268
  *
10214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-delete-check.md
10269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
10215
10270
  */
10216
10271
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
10217
10272
  /**
10218
10273
  * Disallow `else` after a statement that exits.
10219
10274
  *
10220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-else.md
10275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
10221
10276
  */
10222
10277
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
10223
10278
  /**
10224
10279
  * Disallow unnecessary `Error.captureStackTrace(…)`.
10225
10280
  *
10226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-error-capture-stack-trace.md
10281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
10227
10282
  */
10228
10283
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
10229
10284
  /**
10230
10285
  * Disallow useless fallback when spreading in object literals.
10231
10286
  *
10232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-fallback-in-spread.md
10287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
10233
10288
  */
10234
10289
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
10235
10290
  /**
10236
10291
  * Disallow unnecessary `.toArray()` on iterators.
10237
10292
  *
10238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-iterator-to-array.md
10293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
10239
10294
  */
10240
10295
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
10241
10296
  /**
10242
10297
  * Disallow useless array length check.
10243
10298
  *
10244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-length-check.md
10299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
10245
10300
  */
10246
10301
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
10247
10302
  /**
10248
10303
  * Disallow unnecessary operands in logical expressions involving boolean
10249
10304
  * literals.
10250
10305
  *
10251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-logical-operand.md
10306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
10252
10307
  */
10253
10308
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
10254
10309
  /**
10255
10310
  * Disallow useless overrides of class methods.
10256
10311
  *
10257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-override.md
10312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
10258
10313
  */
10259
10314
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
10260
10315
  /**
10261
10316
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions
10262
10317
  * or promise callbacks
10263
10318
  *
10264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-promise-resolve-reject.md
10319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
10265
10320
  */
10266
10321
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
10322
+ /**
10323
+ * Disallow redundant re-exports.
10324
+ *
10325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
10326
+ */
10327
+ 'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
10267
10328
  /**
10268
10329
  * Disallow simple recursive function calls that can be replaced with a loop.
10269
10330
  *
10270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-recursion.md
10331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
10271
10332
  */
10272
10333
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
10273
10334
  /**
10274
10335
  * Disallow unnecessary spread.
10275
10336
  *
10276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-spread.md
10337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
10277
10338
  */
10278
10339
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
10279
10340
  /**
10280
10341
  * Disallow useless case in switch statements.
10281
10342
  *
10282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-switch-case.md
10343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
10283
10344
  */
10284
10345
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
10285
10346
  /**
10286
10347
  * Disallow useless template literal expressions.
10287
10348
  *
10288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-template-literals.md
10349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
10289
10350
  */
10290
10351
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
10291
10352
  /**
10292
10353
  * Disallow useless `undefined`.
10293
10354
  *
10294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-undefined.md
10355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
10295
10356
  */
10296
10357
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
10297
10358
  /**
10298
10359
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
10299
10360
  *
10300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-xor-as-exponentiation.md
10361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
10301
10362
  */
10302
10363
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
10303
10364
  /**
10304
10365
  * Disallow number literals with zero fractions or dangling dots.
10305
10366
  *
10306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-zero-fractions.md
10367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
10307
10368
  */
10308
10369
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
10309
10370
  /**
10310
10371
  * Enforce proper case for numeric literals.
10311
10372
  *
10312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/number-literal-case.md
10373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
10313
10374
  */
10314
10375
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
10315
10376
  /**
10316
10377
  * Enforce the style of numeric separators by correctly grouping digits.
10317
10378
  *
10318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/numeric-separators-style.md
10379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
10319
10380
  */
10320
10381
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
10321
10382
  /**
10322
10383
  * Require assignment operator shorthand where possible.
10323
10384
  *
10324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/operator-assignment.md
10385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
10325
10386
  */
10326
10387
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
10327
10388
  /**
10328
10389
  * Prefer `AbortSignal.any()` over manually forwarding abort events between
10329
10390
  * signals.
10330
10391
  *
10331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-any.md
10392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
10332
10393
  */
10333
10394
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
10334
10395
  /**
10335
10396
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController`
10336
10397
  * with `setTimeout()`.
10337
10398
  *
10338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-timeout.md
10399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
10339
10400
  */
10340
10401
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
10341
10402
  /**
10342
10403
  * Prefer `.addEventListener()` and `.removeEventListener()` over
10343
10404
  * `on`-functions.
10344
10405
  *
10345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener.md
10406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
10346
10407
  */
10347
10408
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
10348
10409
  /**
10349
10410
  * Prefer an options object over a boolean in `.addEventListener()`.
10350
10411
  *
10351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener-options.md
10412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
10352
10413
  */
10353
10414
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
10354
10415
  /**
10355
10416
  * Prefer `AggregateError` when throwing collected errors.
10356
10417
  *
10357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-aggregate-error.md
10418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
10358
10419
  */
10359
10420
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
10360
10421
  /**
10361
10422
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from
10362
10423
  * `.filter(…)`.
10363
10424
  *
10364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-find.md
10425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
10365
10426
  */
10366
10427
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
10367
10428
  /**
10368
10429
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
10369
10430
  *
10370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat.md
10431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
10371
10432
  */
10372
10433
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
10373
10434
  /**
10374
10435
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
10375
10436
  *
10376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat-map.md
10437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
10377
10438
  */
10378
10439
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
10379
10440
  /**
10380
10441
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
10381
10442
  *
10382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-async.md
10443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
10383
10444
  */
10384
10445
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
10385
10446
  /**
10386
10447
  * Prefer using the `Array.from()` mapping function argument.
10387
10448
  *
10388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-map.md
10449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
10389
10450
  */
10390
10451
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
10391
10452
  /**
10392
10453
  * Prefer `Array.from({length}, …)` when creating range arrays.
10393
10454
  *
10394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-range.md
10455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
10395
10456
  */
10396
10457
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
10397
10458
  /**
10398
10459
  * Prefer `Array#{indexOf,lastIndexOf}()` over
10399
10460
  * `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
10400
10461
  *
10401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-index-of.md
10462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
10402
10463
  */
10403
10464
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
10404
10465
  /**
10405
10466
  * Prefer iterating an array directly or with `Array#keys()` over
10406
10467
  * `Array#entries()` when the index or value is unused.
10407
10468
  *
10408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-iterable-methods.md
10469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
10409
10470
  */
10410
10471
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
10411
10472
  /**
10412
10473
  * Prefer last-oriented array methods over `Array#reverse()` or
10413
10474
  * `Array#toReversed()` followed by a method.
10414
10475
  *
10415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-last-methods.md
10476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
10416
10477
  */
10417
10478
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
10418
10479
  /**
10419
10480
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned
10420
10481
  * array.
10421
10482
  *
10422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-slice.md
10483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
10423
10484
  */
10424
10485
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
10425
10486
  /**
10426
10487
  * Prefer `.some(…)` over `.filter(…).length` check and
10427
10488
  * `.{find,findLast,findIndex,findLastIndex}(…)`.
10428
10489
  *
10429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-some.md
10490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
10430
10491
  */
10431
10492
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
10432
10493
  /**
10433
10494
  * Prefer `.at()` method for index access and `String#charAt()`.
10434
10495
  *
10435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-at.md
10496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
10436
10497
  */
10437
10498
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
10438
10499
  /**
10439
10500
  * Prefer `await` over promise chaining.
10440
10501
  *
10441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-await.md
10502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
10442
10503
  */
10443
10504
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
10444
10505
  /**
10445
10506
  * Prefer `BigInt` literals over the constructor.
10446
10507
  *
10447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-bigint-literals.md
10508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
10448
10509
  */
10449
10510
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
10450
10511
  /**
10451
10512
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and
10452
10513
  * `Blob#text()` over `FileReader#readAsText(…)`.
10453
10514
  *
10454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-blob-reading-methods.md
10515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
10455
10516
  */
10456
10517
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
10457
10518
  /**
10458
10519
  * Prefer block statements over IIFEs used only for scoping.
10459
10520
  *
10460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-block-statement-over-iife.md
10521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
10461
10522
  */
10462
10523
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
10463
10524
  /**
10464
10525
  * Prefer directly returning boolean expressions over `if` statements.
10465
10526
  *
10466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-boolean-return.md
10527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
10467
10528
  */
10468
10529
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
10469
10530
  /**
10470
10531
  * Prefer class field declarations over `this` assignments in constructors.
10471
10532
  *
10472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-class-fields.md
10533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
10473
10534
  */
10474
10535
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
10475
10536
  /**
10476
10537
  * Prefer using `Element#classList.toggle()` to toggle class names.
10477
10538
  *
10478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-classlist-toggle.md
10539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
10479
10540
  */
10480
10541
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
10481
10542
  /**
10482
10543
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and
10483
10544
  * `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
10484
10545
  *
10485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-code-point.md
10546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
10486
10547
  */
10487
10548
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
10488
10549
  /**
10489
10550
  * Prefer early continues over whole-loop conditional wrapping.
10490
10551
  *
10491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-continue.md
10552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
10492
10553
  */
10493
10554
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
10494
10555
  /**
10495
10556
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
10496
10557
  *
10497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-date-now.md
10558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
10498
10559
  */
10499
10560
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
10500
10561
  /**
10501
10562
  * Prefer default parameters over reassignment.
10502
10563
  *
10503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-default-parameters.md
10564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
10504
10565
  */
10505
10566
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
10506
10567
  /**
10507
10568
  * Prefer direct iteration over default iterator method calls.
10508
10569
  *
10509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-direct-iteration.md
10570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
10510
10571
  */
10511
10572
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
10512
10573
  /**
10513
10574
  * Prefer using `using`/`await using` over manual `try`/`finally` resource
10514
10575
  * disposal.
10515
10576
  *
10516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dispose.md
10577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
10517
10578
  */
10518
10579
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
10519
10580
  /**
10520
10581
  * Prefer `Element#append()` over `Node#appendChild()`.
10521
10582
  *
10522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-append.md
10583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
10523
10584
  */
10524
10585
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
10525
10586
  /**
10526
10587
  * Renamed to `unicorn/dom-node-dataset`.
10527
10588
  *
10528
10589
  * @deprecated
10529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10530
10591
  */
10531
10592
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
10532
10593
  /**
10533
10594
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
10534
10595
  *
10535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-html-methods.md
10596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
10536
10597
  */
10537
- 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>;
10598
+ 'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
10538
10599
  /**
10539
10600
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
10540
10601
  *
10541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-remove.md
10602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
10542
10603
  */
10543
10604
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
10544
10605
  /**
10545
10606
  * Prefer `.replaceChildren()` when emptying DOM children.
10546
10607
  *
10547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-replace-children.md
10608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
10548
10609
  */
10549
10610
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
10550
10611
  /**
10551
10612
  * Prefer `.textContent` over `.innerText`.
10552
10613
  *
10553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-text-content.md
10614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
10554
10615
  */
10555
10616
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
10556
10617
  /**
10557
10618
  * Prefer early returns over full-function conditional wrapping.
10558
10619
  *
10559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-early-return.md
10620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
10560
10621
  */
10561
10622
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
10562
10623
  /**
10563
10624
  * Prefer `else if` over adjacent `if` statements with related conditions.
10564
10625
  *
10565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-else-if.md
10626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
10566
10627
  */
10567
10628
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
10568
10629
  /**
10569
10630
  * Prefer `Error.isError()` when checking for errors.
10570
10631
  *
10571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-error-is-error.md
10632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
10572
10633
  */
10573
10634
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
10574
10635
  /**
10575
10636
  * Prefer `EventTarget` over `EventEmitter`.
10576
10637
  *
10577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-event-target.md
10638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
10578
10639
  */
10579
10640
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
10641
+ /**
10642
+ * Prefer explicit viewport units.
10643
+ *
10644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
10645
+ */
10646
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
10580
10647
  /**
10581
10648
  * Prefer `export…from` when re-exporting.
10582
10649
  *
10583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-export-from.md
10650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
10584
10651
  */
10585
10652
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
10586
10653
  /**
10587
10654
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
10588
10655
  *
10589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-flat-math-min-max.md
10656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
10590
10657
  */
10591
10658
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
10592
10659
  /**
10593
10660
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
10594
10661
  *
10595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-get-or-insert-computed.md
10662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
10596
10663
  */
10597
10664
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
10598
10665
  /**
10599
10666
  * Prefer global numeric constants over `Number` static properties.
10600
10667
  *
10601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-number-constants.md
10668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
10602
10669
  */
10603
10670
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
10604
10671
  /**
10605
10672
  * Prefer `globalThis` over `window`, `self`, and `global`.
10606
10673
  *
10607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-this.md
10674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
10608
10675
  */
10609
10676
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
10610
10677
  /**
10611
10678
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
10612
10679
  *
10613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-group-by.md
10680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
10614
10681
  */
10615
10682
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
10616
10683
  /**
10617
10684
  * Prefer `.has()` when checking existence.
10618
10685
  *
10619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-has-check.md
10686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
10620
10687
  */
10621
10688
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
10622
10689
  /**
10623
10690
  * Prefer moving code shared by all branches of an `if` statement out of the
10624
10691
  * branches.
10625
10692
  *
10626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-hoisting-branch-code.md
10693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
10627
10694
  */
10628
10695
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
10629
10696
  /**
10630
10697
  * Prefer HTTPS over HTTP.
10631
10698
  *
10632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-https.md
10699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
10633
10700
  */
10634
10701
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
10635
10702
  /**
10636
10703
  * Prefer identifiers over string literals in import and export specifiers.
10637
10704
  *
10638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-identifier-import-export-specifiers.md
10705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
10639
10706
  */
10640
10707
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
10641
10708
  /**
10642
10709
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting
10643
10710
  * file paths.
10644
10711
  *
10645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-import-meta-properties.md
10712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
10646
10713
  */
10647
10714
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
10648
10715
  /**
10649
10716
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and
10650
10717
  * `Array#some()` when checking for existence or non-existence.
10651
10718
  *
10652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes.md
10719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
10653
10720
  */
10654
10721
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
10655
10722
  /**
10656
10723
  * Prefer `.includes()` over repeated equality comparisons.
10657
10724
  *
10658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes-over-repeated-comparisons.md
10725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
10659
10726
  */
10660
10727
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
10661
10728
  /**
10662
10729
  * Prefer passing iterables directly to constructors instead of filling empty
10663
10730
  * collections.
10664
10731
  *
10665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterable-in-constructor.md
10732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
10666
10733
  */
10667
10734
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
10668
10735
  /**
10669
10736
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
10670
10737
  *
10671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-concat.md
10738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
10672
10739
  */
10673
10740
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
10674
10741
  /**
10675
10742
  * Prefer iterator helpers over temporary arrays from iterators.
10676
10743
  *
10677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-helpers.md
10744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
10678
10745
  */
10679
10746
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
10680
10747
  /**
10681
10748
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
10682
10749
  *
10683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array.md
10750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
10684
10751
  */
10685
10752
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
10686
10753
  /**
10687
10754
  * Prefer moving `.toArray()` to the end of iterator helper chains.
10688
10755
  *
10689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array-at-end.md
10756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
10690
10757
  */
10691
10758
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
10692
10759
  /**
10693
10760
  * Renamed to `unicorn/consistent-json-file-read`.
10694
10761
  *
10695
10762
  * @deprecated
10696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
10763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
10697
10764
  */
10698
10765
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
10699
10766
  /**
10700
10767
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
10701
10768
  *
10702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-keyboard-event-key.md
10769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
10703
10770
  */
10704
10771
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
10705
10772
  /**
10706
10773
  * Prefer `location.assign()` over assigning to `location.href`.
10707
10774
  *
10708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-location-assign.md
10775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
10709
10776
  */
10710
10777
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
10711
10778
  /**
10712
10779
  * Prefer using a logical operator over a ternary.
10713
10780
  *
10714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-logical-operator-over-ternary.md
10781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
10715
10782
  */
10716
10783
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
10717
10784
  /**
10718
10785
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a
10719
10786
  * map.
10720
10787
  *
10721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-map-from-entries.md
10788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
10722
10789
  */
10723
10790
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
10724
10791
  /**
10725
10792
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric
10726
10793
  * range checks.
10727
10794
  *
10728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-abs.md
10795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
10729
10796
  */
10730
10797
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
10731
10798
  /**
10732
10799
  * Prefer `Math` constants over their approximate numeric values.
10733
10800
  *
10734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-constants.md
10801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
10735
10802
  */
10736
10803
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
10737
10804
  /**
10738
10805
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
10739
10806
  *
10740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-min-max.md
10807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
10741
10808
  */
10742
10809
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
10743
10810
  /**
10744
10811
  * Prefer `Math.trunc()` for truncating numbers.
10745
10812
  *
10746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-trunc.md
10813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
10747
10814
  */
10748
10815
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
10749
10816
  /**
10750
10817
  * Prefer moving ternaries into the minimal varying part of an expression.
10751
10818
  *
10752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-minimal-ternary.md
10819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
10753
10820
  */
10754
10821
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
10755
10822
  /**
10756
10823
  * Prefer modern DOM APIs.
10757
10824
  *
10758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-dom-apis.md
10825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
10759
10826
  */
10760
10827
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
10761
10828
  /**
10762
10829
  * Prefer modern `Math` APIs over legacy patterns.
10763
10830
  *
10764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-math-apis.md
10831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
10765
10832
  */
10766
10833
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
10767
10834
  /**
10768
10835
  * Prefer JavaScript modules (ESM) over CommonJS.
10769
10836
  *
10770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-module.md
10837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
10771
10838
  */
10772
10839
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
10773
10840
  /**
10774
10841
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol`
10775
10842
  * directly.
10776
10843
  *
10777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-native-coercion-functions.md
10844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
10778
10845
  */
10779
10846
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
10780
10847
  /**
10781
10848
  * Prefer negative index over `.length - index` when possible.
10782
10849
  *
10783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-negative-index.md
10850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
10784
10851
  */
10785
10852
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
10786
10853
  /**
10787
10854
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
10788
10855
  *
10789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-node-protocol.md
10856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
10790
10857
  */
10791
10858
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
10792
10859
  /**
10793
10860
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
10794
10861
  *
10795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-coercion.md
10862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
10796
10863
  */
10797
10864
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
10798
10865
  /**
10799
10866
  * Prefer `Number.isSafeInteger()` over integer checks.
10800
10867
  *
10801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-is-safe-integer.md
10868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
10802
10869
  */
10803
10870
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
10804
10871
  /**
10805
10872
  * Prefer `Number` static methods over global functions and optionally static
10806
10873
  * properties over global constants.
10807
10874
  *
10808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-properties.md
10875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
10809
10876
  */
10810
10877
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
10811
10878
  /**
10812
10879
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()`
10813
10880
  * calls.
10814
10881
  *
10815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-define-properties.md
10882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
10816
10883
  */
10817
10884
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
10818
10885
  /**
10819
10886
  * Prefer object destructuring defaults over default object literals with
10820
10887
  * spread.
10821
10888
  *
10822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-destructuring-defaults.md
10889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
10823
10890
  */
10824
10891
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
10825
10892
  /**
10826
10893
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs
10827
10894
  * into an object.
10828
10895
  *
10829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-from-entries.md
10896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
10830
10897
  */
10831
10898
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
10832
10899
  /**
10833
10900
  * Prefer the most specific `Object` iterable method.
10834
10901
  *
10835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-iterable-methods.md
10902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
10836
10903
  */
10837
10904
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
10838
10905
  /**
10839
10906
  * Prefer observer APIs over resize and scroll listeners with layout reads.
10840
10907
  *
10841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-observer-apis.md
10908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
10842
10909
  */
10843
10910
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
10844
10911
  /**
10845
10912
  * Prefer omitting the `catch` binding parameter.
10846
10913
  *
10847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-optional-catch-binding.md
10914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
10848
10915
  */
10849
10916
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
10850
10917
  /**
10851
10918
  * Prefer `Path2D` for repeatedly drawn canvas paths.
10852
10919
  *
10853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-path2d.md
10920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
10854
10921
  */
10855
10922
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
10856
10923
  /**
10857
10924
  * Prefer private class fields over the underscore-prefix convention.
10858
10925
  *
10859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-private-class-fields.md
10926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
10860
10927
  */
10861
10928
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
10862
10929
  /**
10863
10930
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
10864
10931
  *
10865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-try.md
10932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
10866
10933
  */
10867
10934
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
10868
10935
  /**
10869
10936
  * Prefer `Promise.withResolvers()` when extracting resolver functions from
10870
10937
  * `new Promise()`.
10871
10938
  *
10872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-with-resolvers.md
10939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
10873
10940
  */
10874
10941
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
10875
10942
  /**
10876
10943
  * Prefer borrowing methods from the prototype instead of the instance.
10877
10944
  *
10878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-prototype-methods.md
10945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
10879
10946
  */
10880
10947
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
10881
10948
  /**
10882
10949
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query
10883
10950
  * methods.
10884
10951
  *
10885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-query-selector.md
10952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
10886
10953
  */
10887
10954
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
10888
10955
  /**
10889
10956
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and
10890
10957
  * `setTimeout(…, 0)`.
10891
10958
  *
10892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-queue-microtask.md
10959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
10893
10960
  */
10894
10961
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
10895
10962
  /**
10896
10963
  * Prefer `Reflect.apply()` over `Function#apply()`.
10897
10964
  *
10898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-reflect-apply.md
10965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
10899
10966
  */
10900
10967
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
10901
10968
  /**
10902
10969
  * Prefer `RegExp.escape()` for escaping strings to use in regular
10903
10970
  * expressions.
10904
10971
  *
10905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-escape.md
10972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
10906
10973
  */
10907
10974
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
10908
10975
  /**
10909
10976
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and
10910
10977
  * `RegExp#exec()`.
10911
10978
  *
10912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-test.md
10979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
10913
10980
  */
10914
10981
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
10915
10982
  /**
10916
10983
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
10917
10984
  *
10918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-response-static-json.md
10985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
10919
10986
  */
10920
10987
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
10921
10988
  /**
10922
10989
  * Prefer `:scope` when using element query selector methods.
10923
10990
  *
10924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-scoped-selector.md
10991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
10925
10992
  */
10926
10993
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
10927
10994
  /**
10928
10995
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or
10929
10996
  * non-existence.
10930
10997
  *
10931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-has.md
10998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
10932
10999
  */
10933
11000
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
10934
11001
  /**
10935
11002
  * Prefer `Set` methods for Set operations.
10936
11003
  *
10937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-methods.md
11004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
10938
11005
  */
10939
11006
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
10940
11007
  /**
10941
11008
  * Prefer using `Set#size` instead of `Array#length`.
10942
11009
  *
10943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-size.md
11010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
10944
11011
  */
10945
11012
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
10946
11013
  /**
10947
11014
  * Prefer arrow function properties over methods with a single return.
10948
11015
  *
10949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-short-arrow-method.md
11016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
10950
11017
  */
10951
- 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>;
11018
+ 'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
10952
11019
  /**
10953
11020
  * Prefer simple conditions first in logical expressions.
10954
11021
  *
10955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-condition-first.md
11022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
10956
11023
  */
10957
11024
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
10958
11025
  /**
10959
11026
  * Prefer a simple comparison function for `Array#sort()`.
10960
11027
  *
10961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-sort-comparator.md
11028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
10962
11029
  */
10963
11030
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
10964
11031
  /**
10965
11032
  * Prefer simplified conditions.
10966
11033
  *
10967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simplified-conditions.md
11034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
10968
11035
  */
10969
11036
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
10970
11037
  /**
10971
11038
  * Prefer a single `Array#some()` or `Array#every()` with a combined
10972
11039
  * predicate.
10973
11040
  *
10974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-array-predicate.md
11041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
10975
11042
  */
10976
11043
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
10977
11044
  /**
10978
11045
  * Enforce combining multiple `Array#{push,unshift}()`,
10979
11046
  * `Element#classList.{add,remove}()`, and `importScripts()` into one call.
10980
11047
  *
10981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-call.md
11048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
10982
11049
  */
10983
11050
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
10984
11051
  /**
10985
11052
  * Prefer a single object destructuring declaration per local const source.
10986
11053
  *
10987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-object-destructuring.md
11054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
10988
11055
  */
10989
11056
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
10990
11057
  /**
10991
11058
  * Enforce combining multiple single-character replacements into a single
10992
11059
  * `String#replaceAll()` with a regular expression.
10993
11060
  *
10994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-replace.md
11061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
10995
11062
  */
10996
11063
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
10997
11064
  /**
10998
11065
  * Prefer declaring variables in the smallest possible scope.
10999
11066
  *
11000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-smaller-scope.md
11067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
11001
11068
  */
11002
11069
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
11003
11070
  /**
11004
11071
  * Prefer `String#split()` with a limit.
11005
11072
  *
11006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-split-limit.md
11073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
11007
11074
  */
11008
11075
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
11009
11076
  /**
11010
11077
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`,
11011
11078
  * `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
11012
11079
  *
11013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-spread.md
11080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
11014
11081
  */
11015
11082
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
11016
11083
  /**
11017
11084
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
11018
11085
  *
11019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-match-all.md
11086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
11020
11087
  */
11021
11088
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
11022
11089
  /**
11023
11090
  * Prefer `String#padStart()` and `String#padEnd()` over manual string
11024
11091
  * padding.
11025
11092
  *
11026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-pad-start-end.md
11093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
11027
11094
  */
11028
11095
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
11029
11096
  /**
11030
11097
  * Prefer using the `String.raw` tag to avoid escaping `\`.
11031
11098
  *
11032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-raw.md
11099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
11033
11100
  */
11034
11101
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
11035
11102
  /**
11036
11103
  * Prefer `String#repeat()` for repeated whitespace.
11037
11104
  *
11038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-repeat.md
11105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
11039
11106
  */
11040
11107
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
11041
11108
  /**
11042
11109
  * Prefer `String#replaceAll()` over regex searches with the global flag and
11043
11110
  * `String#split().join()`.
11044
11111
  *
11045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-replace-all.md
11112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
11046
11113
  */
11047
11114
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
11048
11115
  /**
11049
11116
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
11050
11117
  *
11051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-slice.md
11118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
11052
11119
  */
11053
11120
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
11054
11121
  /**
11055
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and
11056
- * `String#indexOf() === 0`.
11122
+ * Prefer `String#startsWith()` & `String#endsWith()` over regexes,
11123
+ * `String#indexOf() === 0`, and slice checks.
11057
11124
  *
11058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-starts-ends-with.md
11125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
11059
11126
  */
11060
11127
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
11061
11128
  /**
11062
11129
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` /
11063
11130
  * `String#trimRight()`.
11064
11131
  *
11065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-trim-start-end.md
11132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
11066
11133
  */
11067
11134
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
11068
11135
  /**
11069
11136
  * Prefer using `structuredClone` to create a deep clone.
11070
11137
  *
11071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-structured-clone.md
11138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
11072
11139
  */
11073
11140
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
11074
11141
  /**
11075
11142
  * Prefer `switch` over multiple `else-if`.
11076
11143
  *
11077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-switch.md
11144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
11078
11145
  */
11079
11146
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
11080
11147
  /**
11081
11148
  * Prefer `Temporal` over `Date`.
11082
11149
  *
11083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-temporal.md
11150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
11084
11151
  */
11085
11152
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
11086
11153
  /**
11087
11154
  * Prefer ternary expressions over simple `if` statements that return or
11088
11155
  * assign values.
11089
11156
  *
11090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-ternary.md
11157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
11091
11158
  */
11092
11159
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
11160
+ /**
11161
+ * Prefer `.then().catch()` over `.then(…, …)` for error handling.
11162
+ *
11163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
11164
+ */
11165
+ 'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
11093
11166
  /**
11094
11167
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
11095
11168
  *
11096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-toggle-attribute.md
11169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
11097
11170
  */
11098
11171
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
11099
11172
  /**
11100
11173
  * Prefer top-level await over top-level promises and async function calls.
11101
11174
  *
11102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-top-level-await.md
11175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
11103
11176
  */
11104
11177
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
11105
11178
  /**
11106
11179
  * Enforce throwing `TypeError` in type checking conditions.
11107
11180
  *
11108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-error.md
11181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
11109
11182
  */
11110
11183
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
11111
11184
  /**
11112
11185
  * Require type literals to be last in union types.
11113
11186
  *
11114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-literal-last.md
11187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
11115
11188
  */
11116
11189
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
11117
11190
  /**
11118
11191
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`,
11119
11192
  * `btoa()`, and `Buffer` base64 conversions.
11120
11193
  *
11121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-uint8array-base64.md
11194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
11122
11195
  */
11123
11196
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
11124
11197
  /**
11125
11198
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
11126
11199
  *
11127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unary-minus.md
11200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
11128
11201
  */
11129
11202
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
11130
11203
  /**
11131
11204
  * Prefer Unicode code point escapes over legacy escape sequences.
11132
11205
  *
11133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unicode-code-point-escapes.md
11206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
11134
11207
  */
11135
11208
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
11136
11209
  /**
11137
11210
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for
11138
11211
  * validation.
11139
11212
  *
11140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-can-parse.md
11213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
11141
11214
  */
11142
11215
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
11143
11216
  /**
11144
11217
  * Prefer `URL#href` over stringifying a `URL`.
11145
11218
  *
11146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-href.md
11219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
11147
11220
  */
11148
11221
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
11149
11222
  /**
11150
11223
  * Prefer `URLSearchParams` over manually splitting query strings.
11151
11224
  *
11152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-search-parameters.md
11225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
11153
11226
  */
11154
11227
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
11155
11228
  /**
11156
11229
  * Prefer putting the condition in the while statement.
11157
11230
  *
11158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-while-loop-condition.md
11231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
11159
11232
  */
11160
11233
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
11161
11234
  /**
11162
11235
  * Renamed to `unicorn/name-replacements`.
11163
11236
  *
11164
11237
  * @deprecated
11165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11166
11239
  */
11167
11240
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
11168
11241
  /**
11169
11242
  * Enforce consistent relative URL style.
11170
11243
  *
11171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/relative-url-style.md
11244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
11172
11245
  */
11173
11246
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
11174
11247
  /**
11175
11248
  * Enforce using the separator argument with `Array#join()`.
11176
11249
  *
11177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-join-separator.md
11250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
11178
11251
  */
11179
11252
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
11180
11253
  /**
11181
11254
  * Require a compare function when calling `Array#sort()` or
11182
11255
  * `Array#toSorted()`.
11183
11256
  *
11184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-sort-compare.md
11257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
11185
11258
  */
11186
11259
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
11187
11260
  /**
11188
11261
  * Require `CSS.escape()` for interpolated values in CSS selectors.
11189
11262
  *
11190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-css-escape.md
11263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
11191
11264
  */
11192
11265
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
11266
+ /**
11267
+ * Require configured YAML frontmatter fields.
11268
+ *
11269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
11270
+ */
11271
+ 'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
11193
11272
  /**
11194
11273
  * Require non-empty module attributes for imports and exports
11195
11274
  *
11196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-attributes.md
11275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
11197
11276
  */
11198
11277
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
11199
11278
  /**
11200
11279
  * Require non-empty specifier list in import and export statements.
11201
11280
  *
11202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-specifiers.md
11281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
11203
11282
  */
11204
11283
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
11205
11284
  /**
11206
11285
  * Enforce using the digits argument with `Number#toFixed()`.
11207
11286
  *
11208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-number-to-fixed-digits-argument.md
11287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
11209
11288
  */
11210
11289
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
11211
11290
  /**
11212
11291
  * Require passive event listeners for high-frequency events.
11213
11292
  *
11214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-passive-events.md
11293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
11215
11294
  */
11216
11295
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
11217
11296
  /**
11218
11297
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
11219
11298
  *
11220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-post-message-target-origin.md
11299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
11221
11300
  */
11222
11301
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
11223
11302
  /**
11224
11303
  * Require boolean-returning Proxy traps to return booleans.
11225
11304
  *
11226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-proxy-trap-boolean-return.md
11305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
11227
11306
  */
11228
11307
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
11229
11308
  /**
11230
11309
  * Enforce better string content.
11231
11310
  *
11232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/string-content.md
11311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
11233
11312
  */
11234
11313
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
11235
11314
  /**
11236
11315
  * Enforce consistent brace style for `case` clauses.
11237
11316
  *
11238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-braces.md
11317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
11239
11318
  */
11240
11319
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
11241
11320
  /**
11242
11321
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case`
11243
11322
  * clauses.
11244
11323
  *
11245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-break-position.md
11324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
11246
11325
  */
11247
11326
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
11248
11327
  /**
11249
11328
  * Fix whitespace-insensitive template indentation.
11250
11329
  *
11251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/template-indent.md
11330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
11252
11331
  */
11253
11332
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
11254
11333
  /**
11255
11334
  * Enforce consistent case for text encoding identifiers.
11256
11335
  *
11257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/text-encoding-identifier-case.md
11336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
11258
11337
  */
11259
11338
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
11260
11339
  /**
11261
11340
  * Require `new` when creating an error.
11262
11341
  *
11263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/throw-new-error.md
11342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
11264
11343
  */
11265
11344
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
11266
11345
  /**
11267
11346
  * Limit the complexity of `try` blocks.
11268
11347
  *
11269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/try-complexity.md
11348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
11270
11349
  */
11271
11350
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
11272
11351
  /**
@@ -12623,6 +12702,11 @@ type JsdocNoUndefinedTypes = [] | [{
12623
12702
  disableReporting?: boolean;
12624
12703
  markVariablesAsUsed?: boolean;
12625
12704
  }];
12705
+ // ----- jsdoc/normalize-see-links -----
12706
+ type JsdocNormalizeSeeLinks = [] | [{
12707
+ canonicalForm?: 'pipe' | 'prefix';
12708
+ enableFixer?: boolean;
12709
+ }];
12626
12710
  // ----- jsdoc/prefer-import-tag -----
12627
12711
  type JsdocPreferImportTag = [] | [{
12628
12712
  enableFixer?: boolean;
@@ -14112,6 +14196,7 @@ type MaxLinesPerFunction = [] | [{
14112
14196
  type MaxNestedCallbacks = [] | [number | {
14113
14197
  maximum?: number;
14114
14198
  max?: number;
14199
+ checkConstructorCallCallbacks?: boolean;
14115
14200
  }];
14116
14201
  // ----- max-params -----
14117
14202
  type MaxParams = [] | [number | {
@@ -17702,6 +17787,10 @@ type PreferRegexLiterals = [] | [{
17702
17787
  // ----- preserve-caught-error -----
17703
17788
  type PreserveCaughtError = [] | [{
17704
17789
  requireCatchParameter?: boolean;
17790
+ errorClassNames?: (string | {
17791
+ name: string;
17792
+ argumentPosition: number;
17793
+ })[];
17705
17794
  }];
17706
17795
  // ----- quote-props -----
17707
17796
  type QuoteProps = [] | ['always' | 'as-needed' | 'consistent' | 'consistent-as-needed'] | [] | ['always' | 'as-needed' | 'consistent' | 'consistent-as-needed'] | ['always' | 'as-needed' | 'consistent' | 'consistent-as-needed', {
@@ -19528,6 +19617,7 @@ type TestPreferExpectAssertions = [] | [{
19528
19617
  onlyFunctionsWithAsyncKeyword?: boolean;
19529
19618
  onlyFunctionsWithExpectInLoop?: boolean;
19530
19619
  onlyFunctionsWithExpectInCallback?: boolean;
19620
+ disallowHasAssertions?: boolean;
19531
19621
  }];
19532
19622
  // ----- test/prefer-import-in-mock -----
19533
19623
  type TestPreferImportInMock = [] | [{
@@ -20987,10 +21077,19 @@ type UnicornPreferAt = [] | [{
20987
21077
  type UnicornPreferContinue = [] | [{
20988
21078
  maximumStatements?: number;
20989
21079
  }];
21080
+ // ----- unicorn/prefer-dom-node-html-methods -----
21081
+ type UnicornPreferDomNodeHtmlMethods = [] | [{
21082
+ checkGetHTML?: boolean;
21083
+ checkSetHTML?: boolean;
21084
+ }];
20990
21085
  // ----- unicorn/prefer-early-return -----
20991
21086
  type UnicornPreferEarlyReturn = [] | [{
20992
21087
  maximumStatements?: number;
20993
21088
  }];
21089
+ // ----- unicorn/prefer-explicit-viewport-units -----
21090
+ type UnicornPreferExplicitViewportUnits = [] | [{
21091
+ unit?: 'dvh' | 'svh' | 'lvh';
21092
+ }];
20994
21093
  // ----- unicorn/prefer-export-from -----
20995
21094
  type UnicornPreferExportFrom = [] | [{
20996
21095
  checkUsedVariables?: boolean;
@@ -21001,7 +21100,7 @@ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
21001
21100
  }];
21002
21101
  // ----- unicorn/prefer-minimal-ternary -----
21003
21102
  type UnicornPreferMinimalTernary = [] | [{
21004
- checkVaryingCallee?: boolean;
21103
+ checkVaryingBase?: boolean;
21005
21104
  checkComputedMemberAccess?: boolean;
21006
21105
  }];
21007
21106
  // ----- unicorn/prefer-number-properties -----
@@ -21026,6 +21125,8 @@ type UnicornPreferQueueMicrotask = [] | [{
21026
21125
  type UnicornPreferSetHas = [] | [{
21027
21126
  minimumItems?: number;
21028
21127
  }];
21128
+ // ----- unicorn/prefer-short-arrow-method -----
21129
+ type UnicornPreferShortArrowMethod = [] | ['always' | 'consistent-as-needed'];
21029
21130
  // ----- unicorn/prefer-single-call -----
21030
21131
  type UnicornPreferSingleCall = [] | [{
21031
21132
  ignore?: unknown[];
@@ -21057,6 +21158,10 @@ type UnicornRelativeUrlStyle = [] | ['never' | 'always'];
21057
21158
  type UnicornRequireCssEscape = [] | [{
21058
21159
  checkAllSelectors?: boolean;
21059
21160
  }];
21161
+ // ----- unicorn/require-frontmatter-fields -----
21162
+ type UnicornRequireFrontmatterFields = [] | [{
21163
+ fields?: string[];
21164
+ }];
21060
21165
  // ----- unicorn/string-content -----
21061
21166
  type UnicornStringContent = [] | [{
21062
21167
  patterns?: {
@@ -21446,7 +21551,7 @@ type OptionsTypeAware = {
21446
21551
  };
21447
21552
  };
21448
21553
  type Rules = RuleOptions;
21449
- type TypedFlatConfigItem = Omit<Linter.Config, 'plugins'> & {
21554
+ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins'> & {
21450
21555
  /**
21451
21556
  * An object containing a name-value mapping of plugin names to plugin
21452
21557
  * objects. When `files` is specified, these plugins are only available to the