@jsse/eslint-config 0.9.6 → 0.9.7

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.
@@ -6294,414 +6294,474 @@ type NoOnlyTestsNoOnlyTests = [] | [{
6294
6294
  interface NodeTestRules {
6295
6295
  /**
6296
6296
  * Enforce the correct number of arguments for `node:assert` assertions.
6297
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/assertion-arguments.md
6297
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/assertion-arguments.md
6298
6298
  */
6299
6299
  "node-test/assertion-arguments"?: Linter.RuleEntry<[]>;
6300
6300
  /**
6301
6301
  * Enforce a consistent truthiness assertion style.
6302
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-assert-style.md
6302
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/consistent-assert-style.md
6303
6303
  */
6304
6304
  "node-test/consistent-assert-style"?: Linter.RuleEntry<NodeTestConsistentAssertStyle>;
6305
6305
  /**
6306
6306
  * Enforce a consistent body style for `assert.throws()` arrow callbacks.
6307
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-assert-throws-callback-style.md
6307
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/consistent-assert-throws-callback-style.md
6308
6308
  */
6309
6309
  "node-test/consistent-assert-throws-callback-style"?: Linter.RuleEntry<NodeTestConsistentAssertThrowsCallbackStyle>;
6310
6310
  /**
6311
6311
  * Enforce a consistent style for test modifiers.
6312
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-modifier-style.md
6312
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/consistent-modifier-style.md
6313
6313
  */
6314
6314
  "node-test/consistent-modifier-style"?: Linter.RuleEntry<NodeTestConsistentModifierStyle>;
6315
6315
  /**
6316
6316
  * Enforce a consistent name for the test context parameter.
6317
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-test-context-name.md
6317
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/consistent-test-context-name.md
6318
6318
  */
6319
6319
  "node-test/consistent-test-context-name"?: Linter.RuleEntry<NodeTestConsistentTestContextName>;
6320
6320
  /**
6321
6321
  * Enforce a consistent test file name pattern.
6322
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-test-filename.md
6322
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/consistent-test-filename.md
6323
6323
  */
6324
6324
  "node-test/consistent-test-filename"?: Linter.RuleEntry<NodeTestConsistentTestFilename>;
6325
6325
  /**
6326
6326
  * Enforce consistent use of `test` or `it`.
6327
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-test-it.md
6327
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/consistent-test-it.md
6328
6328
  */
6329
6329
  "node-test/consistent-test-it"?: Linter.RuleEntry<NodeTestConsistentTestIt>;
6330
6330
  /**
6331
6331
  * Enforce a consistent order of hook declarations.
6332
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/hooks-order.md
6332
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/hooks-order.md
6333
6333
  */
6334
6334
  "node-test/hooks-order"?: Linter.RuleEntry<[]>;
6335
6335
  /**
6336
6336
  * Enforce a maximum number of assertions in a test.
6337
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/max-assertions.md
6337
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/max-assertions.md
6338
6338
  */
6339
6339
  "node-test/max-assertions"?: Linter.RuleEntry<NodeTestMaxAssertions>;
6340
6340
  /**
6341
6341
  * Enforce a maximum depth for nested `describe` blocks.
6342
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/max-nested-describe.md
6342
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/max-nested-describe.md
6343
6343
  */
6344
6344
  "node-test/max-nested-describe"?: Linter.RuleEntry<NodeTestMaxNestedDescribe>;
6345
6345
  /**
6346
6346
  * Disallow assertions directly inside a `describe` body.
6347
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-in-describe.md
6347
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-assert-in-describe.md
6348
6348
  */
6349
6349
  "node-test/no-assert-in-describe"?: Linter.RuleEntry<[]>;
6350
6350
  /**
6351
6351
  * Disallow assertions inside hooks.
6352
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-in-hook.md
6352
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-assert-in-hook.md
6353
6353
  */
6354
6354
  "node-test/no-assert-in-hook"?: Linter.RuleEntry<[]>;
6355
6355
  /**
6356
6356
  * Disallow strings as the regexp argument of `assert.match()`/`assert.doesNotMatch()`.
6357
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-match-string.md
6357
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-assert-match-string.md
6358
6358
  */
6359
6359
  "node-test/no-assert-match-string"?: Linter.RuleEntry<[]>;
6360
6360
  /**
6361
6361
  * Disallow passing an async function to `assert.throws()`/`assert.doesNotThrow()`.
6362
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-async.md
6362
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-assert-throws-async.md
6363
6363
  */
6364
6364
  "node-test/no-assert-throws-async"?: Linter.RuleEntry<[]>;
6365
6365
  /**
6366
6366
  * Disallow calling the function passed to `assert.throws()`.
6367
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-call.md
6367
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-assert-throws-call.md
6368
6368
  */
6369
6369
  "node-test/no-assert-throws-call"?: Linter.RuleEntry<[]>;
6370
6370
  /**
6371
6371
  * Disallow multiple statements in `assert.throws()`/`assert.rejects()` callbacks.
6372
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-multiple-statements.md
6372
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-assert-throws-multiple-statements.md
6373
6373
  */
6374
6374
  "node-test/no-assert-throws-multiple-statements"?: Linter.RuleEntry<[]>;
6375
6375
  /**
6376
6376
  * Disallow a string as the error matcher of `assert.throws()`/`assert.rejects()`.
6377
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-string.md
6377
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-assert-throws-string.md
6378
6378
  */
6379
6379
  "node-test/no-assert-throws-string"?: Linter.RuleEntry<[]>;
6380
6380
  /**
6381
6381
  * Disallow `async` `describe` callbacks.
6382
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-async-describe.md
6382
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-async-describe.md
6383
6383
  */
6384
6384
  "node-test/no-async-describe"?: Linter.RuleEntry<[]>;
6385
6385
  /**
6386
6386
  * Disallow async test/hook functions that have no `await` expression.
6387
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-async-fn-without-await.md
6387
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-async-fn-without-await.md
6388
6388
  */
6389
6389
  "node-test/no-async-fn-without-await"?: Linter.RuleEntry<[]>;
6390
6390
  /**
6391
6391
  * Disallow a test or hook from using both a callback and a Promise.
6392
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-callback-and-promise.md
6392
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-callback-and-promise.md
6393
6393
  */
6394
6394
  "node-test/no-callback-and-promise"?: Linter.RuleEntry<[]>;
6395
6395
  /**
6396
6396
  * Disallow commented-out tests.
6397
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-commented-tests.md
6397
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-commented-tests.md
6398
6398
  */
6399
6399
  "node-test/no-commented-tests"?: Linter.RuleEntry<[]>;
6400
6400
  /**
6401
6401
  * Disallow compound truthiness assertions.
6402
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-compound-assertion.md
6402
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-compound-assertion.md
6403
6403
  */
6404
6404
  "node-test/no-compound-assertion"?: Linter.RuleEntry<[]>;
6405
6405
  /**
6406
6406
  * Disallow assertions inside conditional code within a test.
6407
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conditional-assertion.md
6407
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-conditional-assertion.md
6408
6408
  */
6409
6409
  "node-test/no-conditional-assertion"?: Linter.RuleEntry<[]>;
6410
6410
  /**
6411
6411
  * Disallow conditional logic inside tests.
6412
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conditional-in-test.md
6412
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-conditional-in-test.md
6413
6413
  */
6414
6414
  "node-test/no-conditional-in-test"?: Linter.RuleEntry<[]>;
6415
6415
  /**
6416
6416
  * Disallow conditionally registering tests, suites, and hooks.
6417
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conditional-tests.md
6417
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-conditional-tests.md
6418
6418
  */
6419
6419
  "node-test/no-conditional-tests"?: Linter.RuleEntry<[]>;
6420
6420
  /**
6421
- * Disallow conflicting `only`/`skip`/`todo` modifiers.
6422
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conflicting-modifiers.md
6421
+ * Disallow conflicting test modifiers.
6422
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-conflicting-modifiers.md
6423
6423
  */
6424
6424
  "node-test/no-conflicting-modifiers"?: Linter.RuleEntry<[]>;
6425
6425
  /**
6426
6426
  * Disallow assertions with constant outcomes.
6427
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-constant-assertion.md
6427
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-constant-assertion.md
6428
6428
  */
6429
6429
  "node-test/no-constant-assertion"?: Linter.RuleEntry<[]>;
6430
6430
  /**
6431
6431
  * Disallow callback (`done`) parameters in tests and hooks.
6432
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-done-callback.md
6432
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-done-callback.md
6433
6433
  */
6434
6434
  "node-test/no-done-callback"?: Linter.RuleEntry<[]>;
6435
6435
  /**
6436
6436
  * Disallow adjacent duplicate assertions.
6437
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-duplicate-assertions.md
6437
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-duplicate-assertions.md
6438
6438
  */
6439
6439
  "node-test/no-duplicate-assertions"?: Linter.RuleEntry<[]>;
6440
6440
  /**
6441
6441
  * Disallow duplicate hooks within the same scope.
6442
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-duplicate-hooks.md
6442
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-duplicate-hooks.md
6443
6443
  */
6444
6444
  "node-test/no-duplicate-hooks"?: Linter.RuleEntry<[]>;
6445
+ /**
6446
+ * Disallow enabling mock timers more than once without resetting them.
6447
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-duplicate-mock-timers-enable.md
6448
+ */
6449
+ "node-test/no-duplicate-mock-timers-enable"?: Linter.RuleEntry<[]>;
6445
6450
  /**
6446
6451
  * Disallow setting a test plan more than once in the same test.
6447
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-duplicate-plan.md
6452
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-duplicate-plan.md
6448
6453
  */
6449
6454
  "node-test/no-duplicate-plan"?: Linter.RuleEntry<[]>;
6455
+ /**
6456
+ * Require a reason when marking a test or suite as expected to fail.
6457
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-expect-failure-without-reason.md
6458
+ */
6459
+ "node-test/no-expect-failure-without-reason"?: Linter.RuleEntry<[]>;
6450
6460
  /**
6451
6461
  * Disallow exports from test files.
6452
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-export.md
6462
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-export.md
6453
6463
  */
6454
6464
  "node-test/no-export"?: Linter.RuleEntry<[]>;
6455
6465
  /**
6456
6466
  * Disallow comparing a value to itself in an assertion.
6457
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-identical-assertion-arguments.md
6467
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-identical-assertion-arguments.md
6458
6468
  */
6459
6469
  "node-test/no-identical-assertion-arguments"?: Linter.RuleEntry<[]>;
6460
6470
  /**
6461
6471
  * Disallow identical test titles within the same scope.
6462
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-identical-title.md
6472
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-identical-title.md
6463
6473
  */
6464
6474
  "node-test/no-identical-title"?: Linter.RuleEntry<[]>;
6475
+ /**
6476
+ * Disallow imports of Node.js test files.
6477
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-import-test-files.md
6478
+ */
6479
+ "node-test/no-import-test-files"?: Linter.RuleEntry<[]>;
6465
6480
  /**
6466
6481
  * Disallow `deepEqual`/`deepStrictEqual` (and their `notDeep*` variants) when comparing with primitives.
6467
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-incorrect-deep-equal.md
6482
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-incorrect-deep-equal.md
6468
6483
  */
6469
6484
  "node-test/no-incorrect-deep-equal"?: Linter.RuleEntry<[]>;
6470
6485
  /**
6471
6486
  * Disallow `strictEqual`/`equal` (and their `not*` variants) when comparing with an object or array literal.
6472
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-incorrect-strict-equal.md
6487
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-incorrect-strict-equal.md
6473
6488
  */
6474
6489
  "node-test/no-incorrect-strict-equal"?: Linter.RuleEntry<[]>;
6490
+ /**
6491
+ * Disallow test activity inside detached asynchronous callbacks.
6492
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-late-test-activity.md
6493
+ */
6494
+ "node-test/no-late-test-activity"?: Linter.RuleEntry<[]>;
6475
6495
  /**
6476
6496
  * Disallow a static test or suite title inside a loop.
6477
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-loop-static-title.md
6497
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-loop-static-title.md
6478
6498
  */
6479
6499
  "node-test/no-loop-static-title"?: Linter.RuleEntry<[]>;
6480
6500
  /**
6481
6501
  * Disallow the `concurrency` option on a test without subtests.
6482
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-misused-concurrency.md
6502
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-misused-concurrency.md
6483
6503
  */
6484
6504
  "node-test/no-misused-concurrency"?: Linter.RuleEntry<[]>;
6505
+ /**
6506
+ * Disallow context hooks without runnable subtests.
6507
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-misused-context-hook.md
6508
+ */
6509
+ "node-test/no-misused-context-hook"?: Linter.RuleEntry<[]>;
6510
+ /**
6511
+ * Disallow mocking a module after statically importing it.
6512
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-mock-module-after-import.md
6513
+ */
6514
+ "node-test/no-mock-module-after-import"?: Linter.RuleEntry<[]>;
6485
6515
  /**
6486
6516
  * Disallow destructured timer imports when using `mock.timers`.
6487
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-mock-timers-destructured-import.md
6517
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-mock-timers-destructured-import.md
6488
6518
  */
6489
6519
  "node-test/no-mock-timers-destructured-import"?: Linter.RuleEntry<[]>;
6490
6520
  /**
6491
6521
  * Disallow tests and suites nested inside a test body.
6492
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-nested-tests.md
6522
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-nested-tests.md
6493
6523
  */
6494
6524
  "node-test/no-nested-tests"?: Linter.RuleEntry<[]>;
6495
6525
  /**
6496
6526
  * Disallow the `.only` test modifier.
6497
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-only-test.md
6527
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-only-test.md
6498
6528
  */
6499
6529
  "node-test/no-only-test"?: Linter.RuleEntry<[]>;
6500
6530
  /**
6501
6531
  * Disallow references to parent test contexts inside subtests.
6502
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-parent-test-context.md
6532
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-parent-test-context.md
6503
6533
  */
6504
6534
  "node-test/no-parent-test-context"?: Linter.RuleEntry<[]>;
6535
+ /**
6536
+ * Disallow changing the working directory inside tests.
6537
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-process-chdir-in-test.md
6538
+ */
6539
+ "node-test/no-process-chdir-in-test"?: Linter.RuleEntry<[]>;
6505
6540
  /**
6506
6541
  * Disallow mutating `process.env` inside tests.
6507
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-process-env-mutation.md
6542
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-process-env-mutation.md
6508
6543
  */
6509
6544
  "node-test/no-process-env-mutation"?: Linter.RuleEntry<[]>;
6510
6545
  /**
6511
6546
  * Disallow process exit control in test files.
6512
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-process-exit-in-test.md
6547
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-process-exit-in-test.md
6513
6548
  */
6514
6549
  "node-test/no-process-exit-in-test"?: Linter.RuleEntry<[]>;
6515
6550
  /**
6516
6551
  * Disallow the `.skip` test modifier.
6517
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-skip-test.md
6552
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-skip-test.md
6518
6553
  */
6519
6554
  "node-test/no-skip-test"?: Linter.RuleEntry<[]>;
6520
6555
  /**
6521
6556
  * Require a reason when skipping or marking a test as todo.
6522
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-skip-without-reason.md
6557
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-skip-without-reason.md
6523
6558
  */
6524
6559
  "node-test/no-skip-without-reason"?: Linter.RuleEntry<[]>;
6525
6560
  /**
6526
6561
  * Disallow `t.skip()`/`t.todo()` without returning afterwards.
6527
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-skip-without-return.md
6562
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-skip-without-return.md
6528
6563
  */
6529
6564
  "node-test/no-skip-without-return"?: Linter.RuleEntry<[]>;
6530
6565
  /**
6531
6566
  * Disallow sleeping in tests with `setTimeout`.
6532
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-sleep-in-test.md
6567
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-sleep-in-test.md
6533
6568
  */
6534
6569
  "node-test/no-sleep-in-test"?: Linter.RuleEntry<[]>;
6535
6570
  /**
6536
6571
  * Disallow snapshot assertions inside loop bodies.
6537
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-snapshot-in-loop.md
6572
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-snapshot-in-loop.md
6538
6573
  */
6539
6574
  "node-test/no-snapshot-in-loop"?: Linter.RuleEntry<[]>;
6540
6575
  /**
6541
6576
  * Disallow assertions outside of a test.
6542
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-standalone-assert.md
6577
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-standalone-assert.md
6543
6578
  */
6544
6579
  "node-test/no-standalone-assert"?: Linter.RuleEntry<[]>;
6580
+ /**
6581
+ * Disallow process-wide `node:test` configuration inside tests.
6582
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-test-global-configuration.md
6583
+ */
6584
+ "node-test/no-test-global-configuration"?: Linter.RuleEntry<[]>;
6545
6585
  /**
6546
6586
  * Disallow defining tests and suites inside a hook.
6547
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-test-inside-hook.md
6587
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-test-inside-hook.md
6548
6588
  */
6549
6589
  "node-test/no-test-inside-hook"?: Linter.RuleEntry<[]>;
6550
6590
  /**
6551
6591
  * Disallow returning a concrete non-Promise value from a test or hook.
6552
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-test-return-statement.md
6592
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-test-return-statement.md
6553
6593
  */
6554
6594
  "node-test/no-test-return-statement"?: Linter.RuleEntry<[]>;
6555
6595
  /**
6556
6596
  * Disallow the `.todo` test modifier.
6557
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-todo-test.md
6597
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-todo-test.md
6558
6598
  */
6559
6599
  "node-test/no-todo-test"?: Linter.RuleEntry<[]>;
6560
6600
  /**
6561
6601
  * Disallow assertions inside unawaited Promise callbacks.
6562
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unawaited-promise-assertion.md
6602
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-unawaited-promise-assertion.md
6563
6603
  */
6564
6604
  "node-test/no-unawaited-promise-assertion"?: Linter.RuleEntry<[]>;
6565
6605
  /**
6566
6606
  * Require `assert.rejects()`/`assert.doesNotReject()` to be awaited or returned.
6567
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unawaited-rejects.md
6607
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-unawaited-rejects.md
6568
6608
  */
6569
6609
  "node-test/no-unawaited-rejects"?: Linter.RuleEntry<[]>;
6570
6610
  /**
6571
6611
  * Require subtests created with the test context to be awaited or returned.
6572
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unawaited-subtest.md
6612
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-unawaited-subtest.md
6573
6613
  */
6574
6614
  "node-test/no-unawaited-subtest"?: Linter.RuleEntry<[]>;
6575
6615
  /**
6576
6616
  * Disallow unknown options in test and hook option objects.
6577
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unknown-test-options.md
6617
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-unknown-test-options.md
6578
6618
  */
6579
6619
  "node-test/no-unknown-test-options"?: Linter.RuleEntry<[]>;
6620
+ /**
6621
+ * Disallow unneeded async callbacks passed to `assert.rejects()`.
6622
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-unneeded-async-rejects-callback.md
6623
+ */
6624
+ "node-test/no-unneeded-async-rejects-callback"?: Linter.RuleEntry<[]>;
6580
6625
  /**
6581
6626
  * Disallow `assert.doesNotThrow()` and `assert.doesNotReject()`.
6582
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-useless-assertion.md
6627
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/no-useless-assertion.md
6583
6628
  */
6584
6629
  "node-test/no-useless-assertion"?: Linter.RuleEntry<[]>;
6585
6630
  /**
6586
6631
  * Prefer `assert.match()`/`assert.doesNotMatch()` over asserting `RegExp#test()` / `String#match()` results.
6587
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-assert-match.md
6632
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-assert-match.md
6588
6633
  */
6589
6634
  "node-test/prefer-assert-match"?: Linter.RuleEntry<[]>;
6590
6635
  /**
6591
6636
  * Prefer `assert.throws()`/`assert.rejects()` over try/catch with an assertion.
6592
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-assert-throws.md
6637
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-assert-throws.md
6593
6638
  */
6594
6639
  "node-test/prefer-assert-throws"?: Linter.RuleEntry<[]>;
6595
6640
  /**
6596
6641
  * Prefer async/await over returning a Promise.
6597
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-async-await.md
6642
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-async-await.md
6598
6643
  */
6599
6644
  "node-test/prefer-async-await"?: Linter.RuleEntry<[]>;
6600
6645
  /**
6601
6646
  * Prefer the test context `t.mock` over the global `mock`.
6602
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-context-mock.md
6647
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-context-mock.md
6603
6648
  */
6604
6649
  "node-test/prefer-context-mock"?: Linter.RuleEntry<[]>;
6605
6650
  /**
6606
6651
  * Prefer the test context `diagnostic()` over `console` inside tests.
6607
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-diagnostic.md
6652
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-diagnostic.md
6608
6653
  */
6609
6654
  "node-test/prefer-diagnostic"?: Linter.RuleEntry<[]>;
6610
6655
  /**
6611
6656
  * Prefer an equality assertion over a truthiness assertion on a comparison.
6612
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-equality-assertion.md
6657
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-equality-assertion.md
6613
6658
  */
6614
6659
  "node-test/prefer-equality-assertion"?: Linter.RuleEntry<[]>;
6615
6660
  /**
6616
6661
  * Require hooks to be declared before the tests in their scope.
6617
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-hooks-on-top.md
6662
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-hooks-on-top.md
6618
6663
  */
6619
6664
  "node-test/prefer-hooks-on-top"?: Linter.RuleEntry<[]>;
6620
6665
  /**
6621
6666
  * Enforce lowercase test titles.
6622
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-lowercase-title.md
6667
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-lowercase-title.md
6623
6668
  */
6624
6669
  "node-test/prefer-lowercase-title"?: Linter.RuleEntry<NodeTestPreferLowercaseTitle>;
6670
+ /**
6671
+ * Prefer `mock.getter()` and `mock.setter()` over `mock.method()` with accessor options.
6672
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-mock-accessor.md
6673
+ */
6674
+ "node-test/prefer-mock-accessor"?: Linter.RuleEntry<[]>;
6675
+ /**
6676
+ * Prefer `mock.callCount()` over `mock.calls.length`.
6677
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-mock-call-count.md
6678
+ */
6679
+ "node-test/prefer-mock-call-count"?: Linter.RuleEntry<[]>;
6625
6680
  /**
6626
6681
  * Prefer `mock.method()` over assigning `mock.fn()` to an object property.
6627
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-mock-method.md
6682
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-mock-method.md
6628
6683
  */
6629
6684
  "node-test/prefer-mock-method"?: Linter.RuleEntry<[]>;
6630
6685
  /**
6631
6686
  * Prefer strict assertion methods over their legacy loose counterparts.
6632
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-strict-assert.md
6687
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-strict-assert.md
6633
6688
  */
6634
6689
  "node-test/prefer-strict-assert"?: Linter.RuleEntry<[]>;
6635
6690
  /**
6636
6691
  * Prefer the test context `t.assert` over the imported `node:assert`.
6637
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-test-context-assert.md
6692
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-test-context-assert.md
6638
6693
  */
6639
6694
  "node-test/prefer-test-context-assert"?: Linter.RuleEntry<[]>;
6640
6695
  /**
6641
6696
  * Prefer `.todo` for empty placeholder tests.
6642
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-todo.md
6697
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/prefer-todo.md
6643
6698
  */
6644
6699
  "node-test/prefer-todo"?: Linter.RuleEntry<[]>;
6645
6700
  /**
6646
6701
  * Require that each test contains at least one assertion.
6647
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-assertion.md
6702
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-assertion.md
6648
6703
  */
6649
6704
  "node-test/require-assertion"?: Linter.RuleEntry<[]>;
6650
6705
  /**
6651
6706
  * Require subtests created in a loop callback to be awaited.
6652
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-await-concurrent-subtests.md
6707
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-await-concurrent-subtests.md
6653
6708
  */
6654
6709
  "node-test/require-await-concurrent-subtests"?: Linter.RuleEntry<[]>;
6655
6710
  /**
6656
6711
  * Require assertions to use the test context when the test sets a plan.
6657
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-context-assert-with-plan.md
6712
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-context-assert-with-plan.md
6658
6713
  */
6659
6714
  "node-test/require-context-assert-with-plan"?: Linter.RuleEntry<[]>;
6660
6715
  /**
6661
6716
  * Require setup and teardown code to be inside a hook.
6662
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-hook.md
6717
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-hook.md
6663
6718
  */
6664
6719
  "node-test/require-hook"?: Linter.RuleEntry<NodeTestRequireHook>;
6665
6720
  /**
6666
6721
  * Require mock timers to be advanced after enabling timer APIs.
6667
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-mock-timers-advance.md
6722
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-mock-timers-advance.md
6668
6723
  */
6669
6724
  "node-test/require-mock-timers-advance"?: Linter.RuleEntry<[]>;
6670
6725
  /**
6671
6726
  * Require an explicit `apis` option when enabling `mock.timers`.
6672
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-mock-timers-apis.md
6727
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-mock-timers-apis.md
6673
6728
  */
6674
6729
  "node-test/require-mock-timers-apis"?: Linter.RuleEntry<[]>;
6675
6730
  /**
6676
6731
  * Require an error matcher for `assert.throws()`/`assert.rejects()`.
6677
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-throws-expectation.md
6732
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-throws-expectation.md
6678
6733
  */
6679
6734
  "node-test/require-throws-expectation"?: Linter.RuleEntry<[]>;
6680
6735
  /**
6681
6736
  * Require validator functions in `assert.throws()`/`assert.rejects()` to return `true`.
6682
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-throws-validator-return-true.md
6737
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-throws-validator-return-true.md
6683
6738
  */
6684
6739
  "node-test/require-throws-validator-return-true"?: Linter.RuleEntry<[]>;
6685
6740
  /**
6686
6741
  * Require tests and hooks to be inside a top-level `describe`.
6687
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-top-level-describe.md
6742
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/require-top-level-describe.md
6688
6743
  */
6689
6744
  "node-test/require-top-level-describe"?: Linter.RuleEntry<NodeTestRequireTopLevelDescribe>;
6690
6745
  /**
6691
6746
  * Require tests to have a title.
6692
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/test-title.md
6747
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/test-title.md
6693
6748
  */
6694
6749
  "node-test/test-title"?: Linter.RuleEntry<[]>;
6695
6750
  /**
6696
6751
  * Require test titles to match a configured pattern.
6697
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/test-title-format.md
6752
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/test-title-format.md
6698
6753
  */
6699
6754
  "node-test/test-title-format"?: Linter.RuleEntry<NodeTestTestTitleFormat>;
6700
6755
  /**
6701
6756
  * Enforce valid `describe` callbacks.
6702
- * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/valid-describe-callback.md
6757
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/valid-describe-callback.md
6703
6758
  */
6704
6759
  "node-test/valid-describe-callback"?: Linter.RuleEntry<[]>;
6760
+ /**
6761
+ * Require valid test tags.
6762
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.3.0/docs/rules/valid-test-tags.md
6763
+ */
6764
+ "node-test/valid-test-tags"?: Linter.RuleEntry<[]>;
6705
6765
  }
6706
6766
  /* ======= Declarations ======= */
6707
6767
  // ----- node-test/consistent-assert-style -----
@@ -14247,1670 +14307,1715 @@ type ImportPreferDefaultExport = [] | [{
14247
14307
  interface UnicornRules {
14248
14308
  /**
14249
14309
  * Prefer better DOM traversal APIs.
14250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/better-dom-traversing.md
14310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
14251
14311
  */
14252
14312
  "unicorn/better-dom-traversing"?: Linter.RuleEntry<[]>;
14253
14313
  /**
14254
14314
  * Removed. Prefer `eslint-plugin-regexp`
14255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#better-regex
14315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
14256
14316
  * @deprecated
14257
14317
  */
14258
14318
  "unicorn/better-regex"?: Linter.RuleEntry<[]>;
14259
14319
  /**
14260
14320
  * Enforce a specific parameter name in catch clauses.
14261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/catch-error-name.md
14321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
14262
14322
  */
14263
14323
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
14264
14324
  /**
14265
14325
  * Enforce consistent class references in static methods.
14266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/class-reference-in-static-methods.md
14326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
14267
14327
  */
14268
14328
  "unicorn/class-reference-in-static-methods"?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
14269
14329
  /**
14270
14330
  * Enforce better comment content.
14271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/comment-content.md
14331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
14272
14332
  */
14273
14333
  "unicorn/comment-content"?: Linter.RuleEntry<UnicornCommentContent>;
14274
14334
  /**
14275
14335
  * Enforce consistent assertion style with `node:assert`.
14276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-assert.md
14336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
14277
14337
  */
14278
14338
  "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
14279
14339
  /**
14280
14340
  * Enforce consistent naming for boolean names.
14281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-boolean-name.md
14341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
14282
14342
  */
14283
14343
  "unicorn/consistent-boolean-name"?: Linter.RuleEntry<UnicornConsistentBooleanName>;
14284
14344
  /**
14285
14345
  * Enforce consistent class member order.
14286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-class-member-order.md
14346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
14287
14347
  */
14288
14348
  "unicorn/consistent-class-member-order"?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
14289
14349
  /**
14290
14350
  * Enforce consistent spelling of compound words in identifiers.
14291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-compound-words.md
14351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
14292
14352
  */
14293
14353
  "unicorn/consistent-compound-words"?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
14294
14354
  /**
14295
14355
  * Enforce consistent conditional object spread style.
14296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-conditional-object-spread.md
14356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
14297
14357
  */
14298
14358
  "unicorn/consistent-conditional-object-spread"?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
14299
14359
  /**
14300
14360
  * Prefer passing `Date` directly to the constructor when cloning.
14301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-date-clone.md
14361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
14302
14362
  */
14303
14363
  "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
14304
14364
  /**
14305
14365
  * Use destructured variables over properties.
14306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-destructuring.md
14366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
14307
14367
  */
14308
14368
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
14309
14369
  /**
14310
14370
  * Prefer consistent types when spreading a ternary in an array literal.
14311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-empty-array-spread.md
14371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
14312
14372
  */
14313
14373
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
14314
14374
  /**
14315
14375
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
14316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-existence-index-check.md
14376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
14317
14377
  */
14318
14378
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
14319
14379
  /**
14320
14380
  * Enforce consistent decorator position on exported classes.
14321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-export-decorator-position.md
14381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
14322
14382
  */
14323
14383
  "unicorn/consistent-export-decorator-position"?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
14324
14384
  /**
14325
14385
  * Move function definitions to the highest possible scope.
14326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-scoping.md
14386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
14327
14387
  */
14328
14388
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
14329
14389
  /**
14330
14390
  * Enforce function syntax by role.
14331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-style.md
14391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
14332
14392
  */
14333
14393
  "unicorn/consistent-function-style"?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
14334
14394
  /**
14335
14395
  * Enforce consistent JSON file reads before `JSON.parse()`.
14336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-json-file-read.md
14396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
14337
14397
  */
14338
14398
  "unicorn/consistent-json-file-read"?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
14339
14399
  /**
14340
14400
  * Enforce consistent optional chaining for same-base member access.
14341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-optional-chaining.md
14401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
14342
14402
  */
14343
14403
  "unicorn/consistent-optional-chaining"?: Linter.RuleEntry<[]>;
14344
14404
  /**
14345
14405
  * Enforce consistent style for escaping `${` in template literals.
14346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-template-literal-escape.md
14406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
14347
14407
  */
14348
14408
  "unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
14349
14409
  /**
14350
14410
  * Enforce consistent labels on tuple type elements.
14351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-tuple-labels.md
14411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
14352
14412
  */
14353
14413
  "unicorn/consistent-tuple-labels"?: Linter.RuleEntry<[]>;
14354
14414
  /**
14355
14415
  * Enforce correct `Error` subclassing.
14356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/custom-error-definition.md
14416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
14357
14417
  */
14358
14418
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
14359
14419
  /**
14360
14420
  * Enforce consistent default export declarations.
14361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/default-export-style.md
14421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
14362
14422
  */
14363
14423
  "unicorn/default-export-style"?: Linter.RuleEntry<UnicornDefaultExportStyle>;
14364
14424
  /**
14365
14425
  * Enforce consistent style for DOM element dataset access.
14366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/dom-node-dataset.md
14426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
14367
14427
  */
14368
14428
  "unicorn/dom-node-dataset"?: Linter.RuleEntry<UnicornDomNodeDataset>;
14369
14429
  /**
14370
14430
  * Enforce no spaces between braces.
14371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/empty-brace-spaces.md
14431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
14372
14432
  */
14373
14433
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
14374
14434
  /**
14375
14435
  * Enforce passing a `message` value when creating a built-in error.
14376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/error-message.md
14436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
14377
14437
  */
14378
14438
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
14379
14439
  /**
14380
14440
  * Require escape sequences to use uppercase or lowercase values.
14381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/escape-case.md
14441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
14382
14442
  */
14383
14443
  "unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
14384
14444
  /**
14385
14445
  * Add expiration conditions to TODO comments.
14386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/expiring-todo-comments.md
14446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
14387
14447
  */
14388
14448
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
14389
14449
  /**
14390
14450
  * Enforce explicitly comparing the `length` or `size` property of a value.
14391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-length-check.md
14451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
14392
14452
  */
14393
14453
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
14394
14454
  /**
14395
14455
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
14396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-timer-delay.md
14456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
14397
14457
  */
14398
14458
  "unicorn/explicit-timer-delay"?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
14399
14459
  /**
14400
14460
  * Enforce a case style for filenames and directory names.
14401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/filename-case.md
14461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
14402
14462
  */
14403
14463
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
14404
14464
  /**
14405
14465
  * Require identifiers to match a specified regular expression.
14406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/id-match.md
14466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
14407
14467
  */
14408
14468
  "unicorn/id-match"?: Linter.RuleEntry<UnicornIdMatch>;
14409
14469
  /**
14410
14470
  * Enforce specific import styles per module.
14411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/import-style.md
14471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
14412
14472
  */
14413
14473
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
14414
14474
  /**
14415
14475
  * Prevent usage of variables from outside the scope of isolated functions.
14416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/isolated-functions.md
14476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
14417
14477
  */
14418
14478
  "unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
14419
14479
  /**
14420
14480
  * Require or disallow logical assignment operator shorthand
14421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/logical-assignment-operators.md
14481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
14422
14482
  */
14423
14483
  "unicorn/logical-assignment-operators"?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
14424
14484
  /**
14425
14485
  * Limit the depth of nested calls.
14426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/max-nested-calls.md
14486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
14427
14487
  */
14428
14488
  "unicorn/max-nested-calls"?: Linter.RuleEntry<UnicornMaxNestedCalls>;
14429
14489
  /**
14430
14490
  * Enforce replacements for variable, property, and filenames.
14431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/name-replacements.md
14491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
14432
14492
  */
14433
14493
  "unicorn/name-replacements"?: Linter.RuleEntry<UnicornNameReplacements>;
14434
14494
  /**
14435
14495
  * Enforce correct use of `new` for builtin constructors.
14436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/new-for-builtins.md
14496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
14437
14497
  */
14438
14498
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
14439
14499
  /**
14440
14500
  * Enforce specifying rules to disable in `eslint-disable` comments.
14441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-abusive-eslint-disable.md
14501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
14442
14502
  */
14443
14503
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
14444
14504
  /**
14445
14505
  * Disallow recursive access to `this` within getters and setters.
14446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accessor-recursion.md
14506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
14447
14507
  */
14448
14508
  "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
14449
14509
  /**
14450
14510
  * Disallow bitwise operators where a logical operator was likely intended.
14451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accidental-bitwise-operator.md
14511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
14452
14512
  */
14453
14513
  "unicorn/no-accidental-bitwise-operator"?: Linter.RuleEntry<[]>;
14454
14514
  /**
14455
14515
  * Disallow anonymous functions and classes as the default export.
14456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-anonymous-default-export.md
14516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
14457
14517
  */
14458
14518
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
14459
14519
  /**
14460
14520
  * Prevent passing a function reference directly to iterator methods.
14461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-callback-reference.md
14521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
14462
14522
  */
14463
14523
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
14464
14524
  /**
14465
14525
  * Disallow array accumulation with `Array#concat()` in loops.
14466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-concat-in-loop.md
14526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
14467
14527
  */
14468
14528
  "unicorn/no-array-concat-in-loop"?: Linter.RuleEntry<[]>;
14469
14529
  /**
14470
14530
  * Disallow using reference values as `Array#fill()` values.
14471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-fill-with-reference-type.md
14531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
14472
14532
  */
14473
14533
  "unicorn/no-array-fill-with-reference-type"?: Linter.RuleEntry<[]>;
14474
14534
  /**
14475
14535
  * Disallow `.fill()` after `Array.from({length: …})`.
14476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-from-fill.md
14536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
14477
14537
  */
14478
14538
  "unicorn/no-array-from-fill"?: Linter.RuleEntry<[]>;
14479
14539
  /**
14480
14540
  * Disallow front-of-array mutation.
14481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-front-mutation.md
14541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
14482
14542
  */
14483
14543
  "unicorn/no-array-front-mutation"?: Linter.RuleEntry<[]>;
14484
14544
  /**
14485
14545
  * Disallow using the `this` argument in array methods.
14486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-method-this-argument.md
14546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
14487
14547
  */
14488
14548
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
14489
14549
  /**
14490
14550
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
14491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
14551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
14492
14552
  * @deprecated
14493
14553
  */
14494
14554
  "unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
14495
14555
  /**
14496
14556
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
14497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reduce.md
14557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
14498
14558
  */
14499
14559
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
14500
14560
  /**
14501
14561
  * Prefer `Array#toReversed()` over `Array#reverse()`.
14502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reverse.md
14562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
14503
14563
  */
14504
14564
  "unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
14505
14565
  /**
14506
14566
  * Prefer `Array#toSorted()` over `Array#sort()`.
14507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort.md
14567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
14508
14568
  */
14509
14569
  "unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
14510
14570
  /**
14511
14571
  * Disallow sorting arrays to get the minimum or maximum value.
14512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort-for-min-max.md
14572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
14513
14573
  */
14514
14574
  "unicorn/no-array-sort-for-min-max"?: Linter.RuleEntry<[]>;
14515
14575
  /**
14516
14576
  * Prefer `Array#toSpliced()` over `Array#splice()`.
14517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-splice.md
14577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
14518
14578
  */
14519
14579
  "unicorn/no-array-splice"?: Linter.RuleEntry<[]>;
14520
14580
  /**
14521
14581
  * Disallow asterisk prefixes in documentation comments.
14522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
14582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
14523
14583
  */
14524
14584
  "unicorn/no-asterisk-prefix-in-documentation-comments"?: Linter.RuleEntry<[]>;
14525
14585
  /**
14526
14586
  * Disallow async functions as `Promise#finally()` callbacks.
14527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-async-promise-finally.md
14587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
14528
14588
  */
14529
14589
  "unicorn/no-async-promise-finally"?: Linter.RuleEntry<[]>;
14530
14590
  /**
14531
14591
  * Disallow member access from await expression.
14532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-expression-member.md
14592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
14533
14593
  */
14534
14594
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
14535
14595
  /**
14536
14596
  * Disallow using `await` in `Promise` method parameters.
14537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-in-promise-methods.md
14597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
14538
14598
  */
14539
14599
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
14540
14600
  /**
14541
14601
  * Disallow unnecessary `Blob` to `File` conversion.
14542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-blob-to-file.md
14602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
14543
14603
  */
14544
14604
  "unicorn/no-blob-to-file"?: Linter.RuleEntry<[]>;
14545
14605
  /**
14546
14606
  * Disallow boolean-returning sort comparators.
14547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-boolean-sort-comparator.md
14607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
14548
14608
  */
14549
14609
  "unicorn/no-boolean-sort-comparator"?: Linter.RuleEntry<[]>;
14550
14610
  /**
14551
14611
  * Disallow `break` and `continue` in nested loops and switches inside loops.
14552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-break-in-nested-loop.md
14612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
14553
14613
  */
14554
14614
  "unicorn/no-break-in-nested-loop"?: Linter.RuleEntry<[]>;
14555
14615
  /**
14556
14616
  * Prefer drawing canvases directly instead of converting them to images.
14557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-canvas-to-image.md
14617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
14558
14618
  */
14559
14619
  "unicorn/no-canvas-to-image"?: Linter.RuleEntry<[]>;
14560
14620
  /**
14561
14621
  * Disallow chained comparisons such as `a < b < c`.
14562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-chained-comparison.md
14622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
14563
14623
  */
14564
14624
  "unicorn/no-chained-comparison"?: Linter.RuleEntry<[]>;
14565
14625
  /**
14566
14626
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
14567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-collection-bracket-access.md
14627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
14568
14628
  */
14569
14629
  "unicorn/no-collection-bracket-access"?: Linter.RuleEntry<[]>;
14570
14630
  /**
14571
14631
  * Disallow dynamic object property existence checks.
14572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-computed-property-existence-check.md
14632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
14573
14633
  */
14574
14634
  "unicorn/no-computed-property-existence-check"?: Linter.RuleEntry<[]>;
14575
14635
  /**
14576
14636
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
14577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-splice.md
14637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
14578
14638
  */
14579
14639
  "unicorn/no-confusing-array-splice"?: Linter.RuleEntry<[]>;
14580
14640
  /**
14581
14641
  * Disallow confusing uses of `Array#with()`.
14582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-with.md
14642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
14583
14643
  */
14584
14644
  "unicorn/no-confusing-array-with"?: Linter.RuleEntry<[]>;
14585
14645
  /**
14586
14646
  * Do not use leading/trailing space between `console.log` parameters.
14587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-console-spaces.md
14647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
14588
14648
  */
14589
14649
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
14590
14650
  /**
14591
14651
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
14592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-constant-zero-expression.md
14652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
14593
14653
  */
14594
14654
  "unicorn/no-constant-zero-expression"?: Linter.RuleEntry<[]>;
14595
14655
  /**
14596
14656
  * Disallow declarations before conditional early exits when they are only used after the exit.
14597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-declarations-before-early-exit.md
14657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
14598
14658
  */
14599
14659
  "unicorn/no-declarations-before-early-exit"?: Linter.RuleEntry<[]>;
14600
14660
  /**
14601
14661
  * Do not use `document.cookie` directly.
14602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-document-cookie.md
14662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
14603
14663
  */
14604
14664
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
14605
14665
  /**
14606
14666
  * Disallow two comparisons of the same operands that can be combined into one.
14607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-double-comparison.md
14667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
14608
14668
  */
14609
14669
  "unicorn/no-double-comparison"?: Linter.RuleEntry<[]>;
14610
14670
  /**
14611
14671
  * Disallow duplicate adjacent branches in if chains.
14612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-if-branches.md
14672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
14613
14673
  */
14614
14674
  "unicorn/no-duplicate-if-branches"?: Linter.RuleEntry<[]>;
14615
14675
  /**
14616
14676
  * Disallow adjacent duplicate operands in logical expressions.
14617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-logical-operands.md
14677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
14618
14678
  */
14619
14679
  "unicorn/no-duplicate-logical-operands"?: Linter.RuleEntry<[]>;
14620
14680
  /**
14621
14681
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
14622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-loops.md
14682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
14623
14683
  */
14624
14684
  "unicorn/no-duplicate-loops"?: Linter.RuleEntry<[]>;
14625
14685
  /**
14626
14686
  * Disallow duplicate values in `Set` constructor array literals.
14627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-set-values.md
14687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
14628
14688
  */
14629
14689
  "unicorn/no-duplicate-set-values"?: Linter.RuleEntry<[]>;
14630
14690
  /**
14631
14691
  * Disallow empty files.
14632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-empty-file.md
14692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
14633
14693
  */
14634
14694
  "unicorn/no-empty-file"?: Linter.RuleEntry<UnicornNoEmptyFile>;
14635
14695
  /**
14636
14696
  * Disallow assigning to built-in error properties.
14637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-error-property-assignment.md
14697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
14638
14698
  */
14639
14699
  "unicorn/no-error-property-assignment"?: Linter.RuleEntry<[]>;
14640
14700
  /**
14641
14701
  * Disallow exports in scripts.
14642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-exports-in-scripts.md
14702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
14643
14703
  */
14644
14704
  "unicorn/no-exports-in-scripts"?: Linter.RuleEntry<[]>;
14645
14705
  /**
14646
14706
  * Prefer `for…of` over the `forEach` method.
14647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-each.md
14707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
14648
14708
  */
14649
14709
  "unicorn/no-for-each"?: Linter.RuleEntry<[]>;
14650
14710
  /**
14651
14711
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
14652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-loop.md
14712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
14653
14713
  */
14654
14714
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
14655
14715
  /**
14656
14716
  * Disallow assigning properties on the global object.
14657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-global-object-property-assignment.md
14717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
14658
14718
  */
14659
14719
  "unicorn/no-global-object-property-assignment"?: Linter.RuleEntry<[]>;
14660
14720
  /**
14661
14721
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
14662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
14722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
14663
14723
  * @deprecated
14664
14724
  */
14665
14725
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
14666
14726
  /**
14667
14727
  * Disallow immediate mutation after variable assignment.
14668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-immediate-mutation.md
14728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
14669
14729
  */
14670
14730
  "unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
14671
14731
  /**
14672
14732
  * Disallow impossible comparisons against `.length` or `.size`.
14673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-impossible-length-comparison.md
14733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
14674
14734
  */
14675
14735
  "unicorn/no-impossible-length-comparison"?: Linter.RuleEntry<[]>;
14676
14736
  /**
14677
14737
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
14678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-query-selector.md
14738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
14679
14739
  */
14680
14740
  "unicorn/no-incorrect-query-selector"?: Linter.RuleEntry<[]>;
14681
14741
  /**
14682
14742
  * Disallow incorrect template literal interpolation syntax.
14683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-template-string-interpolation.md
14743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
14684
14744
  */
14685
14745
  "unicorn/no-incorrect-template-string-interpolation"?: Linter.RuleEntry<[]>;
14686
14746
  /**
14687
14747
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
14688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
14748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
14689
14749
  * @deprecated
14690
14750
  */
14691
14751
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
14692
14752
  /**
14693
14753
  * Disallow `instanceof` with built-in objects
14694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-instanceof-builtins.md
14754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
14695
14755
  */
14696
14756
  "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
14697
14757
  /**
14698
14758
  * Disallow calling functions and constructors with an invalid number of arguments.
14699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-argument-count.md
14759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
14700
14760
  */
14701
14761
  "unicorn/no-invalid-argument-count"?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
14702
14762
  /**
14703
14763
  * Disallow comparing a single character from a string to a multi-character string.
14704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-character-comparison.md
14764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
14705
14765
  */
14706
14766
  "unicorn/no-invalid-character-comparison"?: Linter.RuleEntry<[]>;
14707
14767
  /**
14708
14768
  * Disallow invalid options in `fetch()` and `new Request()`.
14709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-fetch-options.md
14769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
14710
14770
  */
14711
14771
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
14712
14772
  /**
14713
14773
  * Disallow invalid `accept` values on file inputs.
14714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-file-input-accept.md
14774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
14715
14775
  */
14716
14776
  "unicorn/no-invalid-file-input-accept"?: Linter.RuleEntry<[]>;
14717
14777
  /**
14718
14778
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
14719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-remove-event-listener.md
14779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
14720
14780
  */
14721
14781
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
14722
14782
  /**
14723
14783
  * Disallow invalid implementations of well-known symbol methods.
14724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-well-known-symbol-methods.md
14784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
14725
14785
  */
14726
14786
  "unicorn/no-invalid-well-known-symbol-methods"?: Linter.RuleEntry<[]>;
14727
14787
  /**
14728
14788
  * Disallow identifiers starting with `new` or `class`.
14729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-keyword-prefix.md
14789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
14730
14790
  */
14731
14791
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
14732
14792
  /**
14733
14793
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
14734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-current-target-access.md
14794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
14735
14795
  */
14736
14796
  "unicorn/no-late-current-target-access"?: Linter.RuleEntry<[]>;
14737
14797
  /**
14738
14798
  * Disallow event-control method calls after the synchronous event dispatch has finished.
14739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-event-control.md
14799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
14740
14800
  */
14741
14801
  "unicorn/no-late-event-control"?: Linter.RuleEntry<[]>;
14742
14802
  /**
14743
14803
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
14744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
14804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
14745
14805
  * @deprecated
14746
14806
  */
14747
14807
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
14748
14808
  /**
14749
14809
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
14750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-lonely-if.md
14810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
14751
14811
  */
14752
14812
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
14753
14813
  /**
14754
14814
  * Disallow mutating a loop iterable during iteration.
14755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-loop-iterable-mutation.md
14815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
14756
14816
  */
14757
14817
  "unicorn/no-loop-iterable-mutation"?: Linter.RuleEntry<[]>;
14758
14818
  /**
14759
14819
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
14760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-magic-array-flat-depth.md
14820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
14761
14821
  */
14762
14822
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
14763
14823
  /**
14764
14824
  * Disallow manually wrapped comments.
14765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-manually-wrapped-comments.md
14825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
14766
14826
  */
14767
14827
  "unicorn/no-manually-wrapped-comments"?: Linter.RuleEntry<[]>;
14768
14828
  /**
14769
14829
  * Disallow checking a Map key before accessing a different key.
14770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-mismatched-map-key.md
14830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
14771
14831
  */
14772
14832
  "unicorn/no-mismatched-map-key"?: Linter.RuleEntry<[]>;
14773
14833
  /**
14774
14834
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
14775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-misrefactored-assignment.md
14835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
14776
14836
  */
14777
14837
  "unicorn/no-misrefactored-assignment"?: Linter.RuleEntry<[]>;
14838
+ /**
14839
+ * Disallow references to missing local resources.
14840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
14841
+ */
14842
+ "unicorn/no-missing-local-resource"?: Linter.RuleEntry<[]>;
14843
+ /**
14844
+ * Disallow calling Promise executor resolver functions more than once on the same execution path.
14845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
14846
+ */
14847
+ "unicorn/no-multiple-promise-resolver-calls"?: Linter.RuleEntry<[]>;
14778
14848
  /**
14779
14849
  * Disallow named usage of default import and export.
14780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-named-default.md
14850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
14781
14851
  */
14782
14852
  "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
14783
14853
  /**
14784
14854
  * Disallow negated array predicate calls.
14785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-array-predicate.md
14855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
14786
14856
  */
14787
14857
  "unicorn/no-negated-array-predicate"?: Linter.RuleEntry<[]>;
14788
14858
  /**
14789
14859
  * Disallow negated comparisons.
14790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-comparison.md
14860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
14791
14861
  */
14792
14862
  "unicorn/no-negated-comparison"?: Linter.RuleEntry<UnicornNoNegatedComparison>;
14793
14863
  /**
14794
14864
  * Disallow negated conditions.
14795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-condition.md
14865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
14796
14866
  */
14797
14867
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
14798
14868
  /**
14799
14869
  * Disallow negated expression in equality check.
14800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negation-in-equality-check.md
14870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
14801
14871
  */
14802
14872
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
14803
14873
  /**
14804
14874
  * Disallow nested ternary expressions.
14805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nested-ternary.md
14875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
14806
14876
  */
14807
14877
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
14808
14878
  /**
14809
14879
  * Disallow `new Array()`.
14810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-array.md
14880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
14811
14881
  */
14812
14882
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
14813
14883
  /**
14814
14884
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
14815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-buffer.md
14885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
14816
14886
  */
14817
14887
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
14818
14888
  /**
14819
14889
  * Disallow non-function values with function-style verb prefixes.
14820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-non-function-verb-prefix.md
14890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
14821
14891
  */
14822
14892
  "unicorn/no-non-function-verb-prefix"?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
14823
14893
  /**
14824
14894
  * Disallow non-standard properties on built-in objects.
14825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nonstandard-builtin-properties.md
14895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
14826
14896
  */
14827
14897
  "unicorn/no-nonstandard-builtin-properties"?: Linter.RuleEntry<[]>;
14828
14898
  /**
14829
14899
  * Disallow the use of the `null` literal.
14830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-null.md
14900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
14831
14901
  */
14832
14902
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
14833
14903
  /**
14834
14904
  * Disallow the use of objects as default parameters.
14835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-as-default-parameter.md
14905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
14836
14906
  */
14837
14907
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
14838
14908
  /**
14839
14909
  * Disallow `Object` methods with `Map` or `Set`.
14840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-methods-with-collections.md
14910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
14841
14911
  */
14842
14912
  "unicorn/no-object-methods-with-collections"?: Linter.RuleEntry<[]>;
14843
14913
  /**
14844
14914
  * Disallow optional chaining on undeclared variables.
14845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
14915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
14846
14916
  */
14847
14917
  "unicorn/no-optional-chaining-on-undeclared-variable"?: Linter.RuleEntry<[]>;
14848
14918
  /**
14849
14919
  * Disallow `process.exit()`.
14850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-process-exit.md
14920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
14851
14921
  */
14852
14922
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
14853
14923
  /**
14854
14924
  * Disallow comparisons made redundant by an equality check in the same logical AND.
14855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-redundant-comparison.md
14925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
14856
14926
  */
14857
14927
  "unicorn/no-redundant-comparison"?: Linter.RuleEntry<[]>;
14858
14928
  /**
14859
14929
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
14860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-return-array-push.md
14930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
14861
14931
  */
14862
14932
  "unicorn/no-return-array-push"?: Linter.RuleEntry<[]>;
14863
14933
  /**
14864
14934
  * Disallow selector syntax in DOM names.
14865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-selector-as-dom-name.md
14935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
14866
14936
  */
14867
14937
  "unicorn/no-selector-as-dom-name"?: Linter.RuleEntry<[]>;
14938
+ /**
14939
+ * Disallow shorthand properties that override related longhand properties.
14940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
14941
+ */
14942
+ "unicorn/no-shorthand-property-overrides"?: Linter.RuleEntry<[]>;
14868
14943
  /**
14869
14944
  * Disallow passing single-element arrays to `Promise` methods.
14870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-single-promise-in-promise-methods.md
14945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
14871
14946
  */
14872
14947
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
14873
14948
  /**
14874
14949
  * Disallow classes that only have static members.
14875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-static-only-class.md
14950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
14876
14951
  */
14877
14952
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
14878
14953
  /**
14879
14954
  * Prefer comparing values directly over subtracting and comparing to `0`.
14880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-subtraction-comparison.md
14955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
14881
14956
  */
14882
14957
  "unicorn/no-subtraction-comparison"?: Linter.RuleEntry<[]>;
14883
14958
  /**
14884
14959
  * Disallow `then` property.
14885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-thenable.md
14960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
14886
14961
  */
14887
14962
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
14888
14963
  /**
14889
14964
  * Disallow assigning `this` to a variable.
14890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-assignment.md
14965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
14891
14966
  */
14892
14967
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
14893
14968
  /**
14894
14969
  * Disallow `this` outside of classes.
14895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-outside-of-class.md
14970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
14896
14971
  */
14897
14972
  "unicorn/no-this-outside-of-class"?: Linter.RuleEntry<[]>;
14898
14973
  /**
14899
14974
  * Disallow assigning to top-level variables from inside functions.
14900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-assignment-in-function.md
14975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
14901
14976
  */
14902
14977
  "unicorn/no-top-level-assignment-in-function"?: Linter.RuleEntry<[]>;
14903
14978
  /**
14904
14979
  * Disallow top-level side effects in exported modules.
14905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-side-effects.md
14980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
14906
14981
  */
14907
14982
  "unicorn/no-top-level-side-effects"?: Linter.RuleEntry<[]>;
14983
+ /**
14984
+ * Disallow `all` as a transition property.
14985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
14986
+ */
14987
+ "unicorn/no-transition-all"?: Linter.RuleEntry<[]>;
14908
14988
  /**
14909
14989
  * Disallow comparing `undefined` using `typeof`.
14910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-typeof-undefined.md
14990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
14911
14991
  */
14912
14992
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
14913
14993
  /**
14914
14994
  * Disallow referencing methods without calling them.
14915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-uncalled-method.md
14995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
14916
14996
  */
14917
14997
  "unicorn/no-uncalled-method"?: Linter.RuleEntry<[]>;
14918
14998
  /**
14919
14999
  * Require class members to be declared.
14920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-undeclared-class-members.md
15000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
14921
15001
  */
14922
15002
  "unicorn/no-undeclared-class-members"?: Linter.RuleEntry<[]>;
14923
15003
  /**
14924
15004
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
14925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-depth.md
15005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
14926
15006
  */
14927
15007
  "unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
14928
15008
  /**
14929
15009
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
14930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-map.md
15010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
14931
15011
  */
14932
15012
  "unicorn/no-unnecessary-array-flat-map"?: Linter.RuleEntry<[]>;
14933
15013
  /**
14934
15014
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
14935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-splice-count.md
15015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
14936
15016
  */
14937
15017
  "unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
14938
15018
  /**
14939
15019
  * Disallow awaiting non-promise values.
14940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-await.md
15020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
14941
15021
  */
14942
15022
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
14943
15023
  /**
14944
15024
  * Disallow unnecessary comparisons against boolean literals.
14945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-boolean-comparison.md
15025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
14946
15026
  */
14947
15027
  "unicorn/no-unnecessary-boolean-comparison"?: Linter.RuleEntry<[]>;
14948
15028
  /**
14949
15029
  * Disallow unnecessary options in `fetch()` and `new Request()`.
14950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-fetch-options.md
15030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
14951
15031
  */
14952
15032
  "unicorn/no-unnecessary-fetch-options"?: Linter.RuleEntry<[]>;
14953
15033
  /**
14954
15034
  * Disallow unnecessary `globalThis` references.
14955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-global-this.md
15035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
14956
15036
  */
14957
15037
  "unicorn/no-unnecessary-global-this"?: Linter.RuleEntry<[]>;
14958
15038
  /**
14959
15039
  * Disallow unnecessary nested ternary expressions.
14960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-nested-ternary.md
15040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
14961
15041
  */
14962
15042
  "unicorn/no-unnecessary-nested-ternary"?: Linter.RuleEntry<[]>;
14963
15043
  /**
14964
15044
  * Enforce the use of built-in methods instead of unnecessary polyfills.
14965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-polyfills.md
15045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
14966
15046
  */
14967
15047
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
14968
15048
  /**
14969
15049
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
14970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-slice-end.md
15050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
14971
15051
  */
14972
15052
  "unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
14973
15053
  /**
14974
15054
  * Disallow `Array#splice()` when simpler alternatives exist.
14975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-splice.md
15055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
14976
15056
  */
14977
15057
  "unicorn/no-unnecessary-splice"?: Linter.RuleEntry<[]>;
15058
+ /**
15059
+ * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
15060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
15061
+ */
15062
+ "unicorn/no-unnecessary-string-trim"?: Linter.RuleEntry<[]>;
14978
15063
  /**
14979
15064
  * Disallow unreadable array destructuring.
14980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-array-destructuring.md
15065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
14981
15066
  */
14982
15067
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
14983
15068
  /**
14984
15069
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
14985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-for-of-expression.md
15070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
14986
15071
  */
14987
15072
  "unicorn/no-unreadable-for-of-expression"?: Linter.RuleEntry<[]>;
14988
15073
  /**
14989
15074
  * Disallow unreadable IIFEs.
14990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-iife.md
15075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
14991
15076
  */
14992
15077
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
14993
15078
  /**
14994
15079
  * Disallow unreadable `new` expressions.
14995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-new-expression.md
15080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
14996
15081
  */
14997
15082
  "unicorn/no-unreadable-new-expression"?: Linter.RuleEntry<[]>;
14998
15083
  /**
14999
15084
  * Disallow unreadable object destructuring.
15000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-object-destructuring.md
15085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
15001
15086
  */
15002
15087
  "unicorn/no-unreadable-object-destructuring"?: Linter.RuleEntry<[]>;
15003
15088
  /**
15004
15089
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
15005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-buffer-conversion.md
15090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
15006
15091
  */
15007
15092
  "unicorn/no-unsafe-buffer-conversion"?: Linter.RuleEntry<[]>;
15008
15093
  /**
15009
15094
  * Disallow unsafe DOM HTML APIs.
15010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-dom-html.md
15095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
15011
15096
  */
15012
15097
  "unicorn/no-unsafe-dom-html"?: Linter.RuleEntry<[]>;
15013
15098
  /**
15014
15099
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
15015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-promise-all-settled-values.md
15100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
15016
15101
  */
15017
15102
  "unicorn/no-unsafe-promise-all-settled-values"?: Linter.RuleEntry<[]>;
15018
15103
  /**
15019
15104
  * Disallow unsafe values as property keys.
15020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-property-key.md
15105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
15021
15106
  */
15022
15107
  "unicorn/no-unsafe-property-key"?: Linter.RuleEntry<[]>;
15023
15108
  /**
15024
15109
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
15025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-string-replacement.md
15110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
15026
15111
  */
15027
15112
  "unicorn/no-unsafe-string-replacement"?: Linter.RuleEntry<[]>;
15028
15113
  /**
15029
15114
  * Disallow ignoring the return value of selected array methods.
15030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-array-method-return.md
15115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
15031
15116
  */
15032
15117
  "unicorn/no-unused-array-method-return"?: Linter.RuleEntry<[]>;
15033
15118
  /**
15034
15119
  * Disallow unused object properties.
15035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-properties.md
15120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
15036
15121
  */
15037
15122
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
15038
15123
  /**
15039
15124
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
15040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-boolean-cast.md
15125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
15041
15126
  */
15042
15127
  "unicorn/no-useless-boolean-cast"?: Linter.RuleEntry<[]>;
15043
15128
  /**
15044
15129
  * Disallow useless type coercions of values that are already of the target type.
15045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-coercion.md
15130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
15046
15131
  */
15047
15132
  "unicorn/no-useless-coercion"?: Linter.RuleEntry<[]>;
15048
15133
  /**
15049
15134
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
15050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-collection-argument.md
15135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
15051
15136
  */
15052
15137
  "unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
15053
15138
  /**
15054
15139
  * Disallow useless compound assignments such as `x += 0`.
15055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-compound-assignment.md
15140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
15056
15141
  */
15057
15142
  "unicorn/no-useless-compound-assignment"?: Linter.RuleEntry<[]>;
15058
15143
  /**
15059
15144
  * Disallow useless concatenation of literals.
15060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-concat.md
15145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
15061
15146
  */
15062
15147
  "unicorn/no-useless-concat"?: Linter.RuleEntry<[]>;
15063
15148
  /**
15064
15149
  * Disallow useless `continue` statements.
15065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-continue.md
15150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
15066
15151
  */
15067
15152
  "unicorn/no-useless-continue"?: Linter.RuleEntry<[]>;
15068
15153
  /**
15069
15154
  * Disallow unnecessary existence checks before deletion.
15070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-delete-check.md
15155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
15071
15156
  */
15072
15157
  "unicorn/no-useless-delete-check"?: Linter.RuleEntry<[]>;
15073
15158
  /**
15074
15159
  * Disallow `else` after a statement that exits.
15075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-else.md
15160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
15076
15161
  */
15077
15162
  "unicorn/no-useless-else"?: Linter.RuleEntry<[]>;
15078
15163
  /**
15079
15164
  * Disallow unnecessary `Error.captureStackTrace(…)`.
15080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-error-capture-stack-trace.md
15165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
15081
15166
  */
15082
15167
  "unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
15083
15168
  /**
15084
15169
  * Disallow useless fallback when spreading in object literals.
15085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-fallback-in-spread.md
15170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
15086
15171
  */
15087
15172
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
15088
15173
  /**
15089
15174
  * Disallow unnecessary `.toArray()` on iterators.
15090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-iterator-to-array.md
15175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
15091
15176
  */
15092
15177
  "unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
15093
15178
  /**
15094
15179
  * Disallow useless array length check.
15095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-length-check.md
15180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
15096
15181
  */
15097
15182
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
15098
15183
  /**
15099
15184
  * Disallow unnecessary operands in logical expressions involving boolean literals.
15100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-logical-operand.md
15185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
15101
15186
  */
15102
15187
  "unicorn/no-useless-logical-operand"?: Linter.RuleEntry<[]>;
15103
15188
  /**
15104
15189
  * Disallow useless overrides of class methods.
15105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-override.md
15190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
15106
15191
  */
15107
15192
  "unicorn/no-useless-override"?: Linter.RuleEntry<[]>;
15108
15193
  /**
15109
15194
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
15110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-promise-resolve-reject.md
15195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
15111
15196
  */
15112
15197
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
15198
+ /**
15199
+ * Disallow redundant re-exports.
15200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
15201
+ */
15202
+ "unicorn/no-useless-re-export"?: Linter.RuleEntry<[]>;
15113
15203
  /**
15114
15204
  * Disallow simple recursive function calls that can be replaced with a loop.
15115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-recursion.md
15205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
15116
15206
  */
15117
15207
  "unicorn/no-useless-recursion"?: Linter.RuleEntry<[]>;
15118
15208
  /**
15119
15209
  * Disallow unnecessary spread.
15120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-spread.md
15210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
15121
15211
  */
15122
15212
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
15123
15213
  /**
15124
15214
  * Disallow useless case in switch statements.
15125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-switch-case.md
15215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
15126
15216
  */
15127
15217
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
15128
15218
  /**
15129
15219
  * Disallow useless template literal expressions.
15130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-template-literals.md
15220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
15131
15221
  */
15132
15222
  "unicorn/no-useless-template-literals"?: Linter.RuleEntry<[]>;
15133
15223
  /**
15134
15224
  * Disallow useless `undefined`.
15135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-undefined.md
15225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
15136
15226
  */
15137
15227
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
15138
15228
  /**
15139
15229
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
15140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-xor-as-exponentiation.md
15230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
15141
15231
  */
15142
15232
  "unicorn/no-xor-as-exponentiation"?: Linter.RuleEntry<[]>;
15143
15233
  /**
15144
15234
  * Disallow number literals with zero fractions or dangling dots.
15145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-zero-fractions.md
15235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
15146
15236
  */
15147
15237
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
15148
15238
  /**
15149
15239
  * Enforce proper case for numeric literals.
15150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/number-literal-case.md
15240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
15151
15241
  */
15152
15242
  "unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
15153
15243
  /**
15154
15244
  * Enforce the style of numeric separators by correctly grouping digits.
15155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/numeric-separators-style.md
15245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
15156
15246
  */
15157
15247
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
15158
15248
  /**
15159
15249
  * Require assignment operator shorthand where possible.
15160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/operator-assignment.md
15250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
15161
15251
  */
15162
15252
  "unicorn/operator-assignment"?: Linter.RuleEntry<UnicornOperatorAssignment>;
15163
15253
  /**
15164
15254
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
15165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-any.md
15255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
15166
15256
  */
15167
15257
  "unicorn/prefer-abort-signal-any"?: Linter.RuleEntry<[]>;
15168
15258
  /**
15169
15259
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
15170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-timeout.md
15260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
15171
15261
  */
15172
15262
  "unicorn/prefer-abort-signal-timeout"?: Linter.RuleEntry<[]>;
15173
15263
  /**
15174
15264
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
15175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener.md
15265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
15176
15266
  */
15177
15267
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
15178
15268
  /**
15179
15269
  * Prefer an options object over a boolean in `.addEventListener()`.
15180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener-options.md
15270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
15181
15271
  */
15182
15272
  "unicorn/prefer-add-event-listener-options"?: Linter.RuleEntry<[]>;
15183
15273
  /**
15184
15274
  * Prefer `AggregateError` when throwing collected errors.
15185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-aggregate-error.md
15275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
15186
15276
  */
15187
15277
  "unicorn/prefer-aggregate-error"?: Linter.RuleEntry<[]>;
15188
15278
  /**
15189
15279
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
15190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-find.md
15280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
15191
15281
  */
15192
15282
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
15193
15283
  /**
15194
15284
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
15195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat.md
15285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
15196
15286
  */
15197
15287
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
15198
15288
  /**
15199
15289
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
15200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat-map.md
15290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
15201
15291
  */
15202
15292
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
15203
15293
  /**
15204
15294
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
15205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-async.md
15295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
15206
15296
  */
15207
15297
  "unicorn/prefer-array-from-async"?: Linter.RuleEntry<[]>;
15208
15298
  /**
15209
15299
  * Prefer using the `Array.from()` mapping function argument.
15210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-map.md
15300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
15211
15301
  */
15212
15302
  "unicorn/prefer-array-from-map"?: Linter.RuleEntry<[]>;
15213
15303
  /**
15214
15304
  * Prefer `Array.from({length}, …)` when creating range arrays.
15215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-range.md
15305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
15216
15306
  */
15217
15307
  "unicorn/prefer-array-from-range"?: Linter.RuleEntry<[]>;
15218
15308
  /**
15219
15309
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
15220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-index-of.md
15310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
15221
15311
  */
15222
15312
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
15223
15313
  /**
15224
15314
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
15225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-iterable-methods.md
15315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
15226
15316
  */
15227
15317
  "unicorn/prefer-array-iterable-methods"?: Linter.RuleEntry<[]>;
15228
15318
  /**
15229
15319
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
15230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-last-methods.md
15320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
15231
15321
  */
15232
15322
  "unicorn/prefer-array-last-methods"?: Linter.RuleEntry<[]>;
15233
15323
  /**
15234
15324
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
15235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-slice.md
15325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
15236
15326
  */
15237
15327
  "unicorn/prefer-array-slice"?: Linter.RuleEntry<[]>;
15238
15328
  /**
15239
15329
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
15240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-some.md
15330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
15241
15331
  */
15242
15332
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
15243
15333
  /**
15244
15334
  * Prefer `.at()` method for index access and `String#charAt()`.
15245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-at.md
15335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
15246
15336
  */
15247
15337
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
15248
15338
  /**
15249
15339
  * Prefer `await` over promise chaining.
15250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-await.md
15340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
15251
15341
  */
15252
15342
  "unicorn/prefer-await"?: Linter.RuleEntry<[]>;
15253
15343
  /**
15254
15344
  * Prefer `BigInt` literals over the constructor.
15255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-bigint-literals.md
15345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
15256
15346
  */
15257
15347
  "unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
15258
15348
  /**
15259
15349
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
15260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-blob-reading-methods.md
15350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
15261
15351
  */
15262
15352
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
15263
15353
  /**
15264
15354
  * Prefer block statements over IIFEs used only for scoping.
15265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-block-statement-over-iife.md
15355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
15266
15356
  */
15267
15357
  "unicorn/prefer-block-statement-over-iife"?: Linter.RuleEntry<[]>;
15268
15358
  /**
15269
15359
  * Prefer directly returning boolean expressions over `if` statements.
15270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-boolean-return.md
15360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
15271
15361
  */
15272
15362
  "unicorn/prefer-boolean-return"?: Linter.RuleEntry<[]>;
15273
15363
  /**
15274
15364
  * Prefer class field declarations over `this` assignments in constructors.
15275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-class-fields.md
15365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
15276
15366
  */
15277
15367
  "unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
15278
15368
  /**
15279
15369
  * Prefer using `Element#classList.toggle()` to toggle class names.
15280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-classlist-toggle.md
15370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
15281
15371
  */
15282
15372
  "unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
15283
15373
  /**
15284
15374
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
15285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-code-point.md
15375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
15286
15376
  */
15287
15377
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
15288
15378
  /**
15289
15379
  * Prefer early continues over whole-loop conditional wrapping.
15290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-continue.md
15380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
15291
15381
  */
15292
15382
  "unicorn/prefer-continue"?: Linter.RuleEntry<UnicornPreferContinue>;
15293
15383
  /**
15294
15384
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
15295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-date-now.md
15385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
15296
15386
  */
15297
15387
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
15298
15388
  /**
15299
15389
  * Prefer default parameters over reassignment.
15300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-default-parameters.md
15390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
15301
15391
  */
15302
15392
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
15303
15393
  /**
15304
15394
  * Prefer direct iteration over default iterator method calls.
15305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-direct-iteration.md
15395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
15306
15396
  */
15307
15397
  "unicorn/prefer-direct-iteration"?: Linter.RuleEntry<[]>;
15308
15398
  /**
15309
15399
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
15310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dispose.md
15400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
15311
15401
  */
15312
15402
  "unicorn/prefer-dispose"?: Linter.RuleEntry<[]>;
15313
15403
  /**
15314
15404
  * Prefer `Element#append()` over `Node#appendChild()`.
15315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-append.md
15405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
15316
15406
  */
15317
15407
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
15318
15408
  /**
15319
15409
  * Renamed to `unicorn/dom-node-dataset`.
15320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
15410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
15321
15411
  * @deprecated
15322
15412
  */
15323
15413
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
15324
15414
  /**
15325
15415
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
15326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-html-methods.md
15416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
15327
15417
  */
15328
- "unicorn/prefer-dom-node-html-methods"?: Linter.RuleEntry<[]>;
15418
+ "unicorn/prefer-dom-node-html-methods"?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
15329
15419
  /**
15330
15420
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
15331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-remove.md
15421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
15332
15422
  */
15333
15423
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
15334
15424
  /**
15335
15425
  * Prefer `.replaceChildren()` when emptying DOM children.
15336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-replace-children.md
15426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
15337
15427
  */
15338
15428
  "unicorn/prefer-dom-node-replace-children"?: Linter.RuleEntry<[]>;
15339
15429
  /**
15340
15430
  * Prefer `.textContent` over `.innerText`.
15341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-text-content.md
15431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
15342
15432
  */
15343
15433
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
15344
15434
  /**
15345
15435
  * Prefer early returns over full-function conditional wrapping.
15346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-early-return.md
15436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
15347
15437
  */
15348
15438
  "unicorn/prefer-early-return"?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
15349
15439
  /**
15350
15440
  * Prefer `else if` over adjacent `if` statements with related conditions.
15351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-else-if.md
15441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
15352
15442
  */
15353
15443
  "unicorn/prefer-else-if"?: Linter.RuleEntry<[]>;
15354
15444
  /**
15355
15445
  * Prefer `Error.isError()` when checking for errors.
15356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-error-is-error.md
15446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
15357
15447
  */
15358
15448
  "unicorn/prefer-error-is-error"?: Linter.RuleEntry<[]>;
15359
15449
  /**
15360
15450
  * Prefer `EventTarget` over `EventEmitter`.
15361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-event-target.md
15451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
15362
15452
  */
15363
15453
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
15454
+ /**
15455
+ * Prefer explicit viewport units.
15456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
15457
+ */
15458
+ "unicorn/prefer-explicit-viewport-units"?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
15364
15459
  /**
15365
15460
  * Prefer `export…from` when re-exporting.
15366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-export-from.md
15461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
15367
15462
  */
15368
15463
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
15369
15464
  /**
15370
15465
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
15371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-flat-math-min-max.md
15466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
15372
15467
  */
15373
15468
  "unicorn/prefer-flat-math-min-max"?: Linter.RuleEntry<[]>;
15374
15469
  /**
15375
15470
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
15376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-get-or-insert-computed.md
15471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
15377
15472
  */
15378
15473
  "unicorn/prefer-get-or-insert-computed"?: Linter.RuleEntry<[]>;
15379
15474
  /**
15380
15475
  * Prefer global numeric constants over `Number` static properties.
15381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-number-constants.md
15476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
15382
15477
  */
15383
15478
  "unicorn/prefer-global-number-constants"?: Linter.RuleEntry<[]>;
15384
15479
  /**
15385
15480
  * Prefer `globalThis` over `window`, `self`, and `global`.
15386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-this.md
15481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
15387
15482
  */
15388
15483
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
15389
15484
  /**
15390
15485
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
15391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-group-by.md
15486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
15392
15487
  */
15393
15488
  "unicorn/prefer-group-by"?: Linter.RuleEntry<[]>;
15394
15489
  /**
15395
15490
  * Prefer `.has()` when checking existence.
15396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-has-check.md
15491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
15397
15492
  */
15398
15493
  "unicorn/prefer-has-check"?: Linter.RuleEntry<[]>;
15399
15494
  /**
15400
15495
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
15401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-hoisting-branch-code.md
15496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
15402
15497
  */
15403
15498
  "unicorn/prefer-hoisting-branch-code"?: Linter.RuleEntry<[]>;
15404
15499
  /**
15405
15500
  * Prefer HTTPS over HTTP.
15406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-https.md
15501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
15407
15502
  */
15408
15503
  "unicorn/prefer-https"?: Linter.RuleEntry<[]>;
15409
15504
  /**
15410
15505
  * Prefer identifiers over string literals in import and export specifiers.
15411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-identifier-import-export-specifiers.md
15506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
15412
15507
  */
15413
15508
  "unicorn/prefer-identifier-import-export-specifiers"?: Linter.RuleEntry<[]>;
15414
15509
  /**
15415
15510
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
15416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-import-meta-properties.md
15511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
15417
15512
  */
15418
15513
  "unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
15419
15514
  /**
15420
15515
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
15421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes.md
15516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
15422
15517
  */
15423
15518
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
15424
15519
  /**
15425
15520
  * Prefer `.includes()` over repeated equality comparisons.
15426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes-over-repeated-comparisons.md
15521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
15427
15522
  */
15428
15523
  "unicorn/prefer-includes-over-repeated-comparisons"?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
15429
15524
  /**
15430
15525
  * Prefer passing iterables directly to constructors instead of filling empty collections.
15431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterable-in-constructor.md
15526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
15432
15527
  */
15433
15528
  "unicorn/prefer-iterable-in-constructor"?: Linter.RuleEntry<[]>;
15434
15529
  /**
15435
15530
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
15436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-concat.md
15531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
15437
15532
  */
15438
15533
  "unicorn/prefer-iterator-concat"?: Linter.RuleEntry<[]>;
15439
15534
  /**
15440
15535
  * Prefer iterator helpers over temporary arrays from iterators.
15441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-helpers.md
15536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
15442
15537
  */
15443
15538
  "unicorn/prefer-iterator-helpers"?: Linter.RuleEntry<[]>;
15444
15539
  /**
15445
15540
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
15446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array.md
15541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
15447
15542
  */
15448
15543
  "unicorn/prefer-iterator-to-array"?: Linter.RuleEntry<[]>;
15449
15544
  /**
15450
15545
  * Prefer moving `.toArray()` to the end of iterator helper chains.
15451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array-at-end.md
15546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
15452
15547
  */
15453
15548
  "unicorn/prefer-iterator-to-array-at-end"?: Linter.RuleEntry<[]>;
15454
15549
  /**
15455
15550
  * Renamed to `unicorn/consistent-json-file-read`.
15456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
15551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
15457
15552
  * @deprecated
15458
15553
  */
15459
15554
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
15460
15555
  /**
15461
15556
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
15462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-keyboard-event-key.md
15557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
15463
15558
  */
15464
15559
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
15465
15560
  /**
15466
15561
  * Prefer `location.assign()` over assigning to `location.href`.
15467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-location-assign.md
15562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
15468
15563
  */
15469
15564
  "unicorn/prefer-location-assign"?: Linter.RuleEntry<[]>;
15470
15565
  /**
15471
15566
  * Prefer using a logical operator over a ternary.
15472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-logical-operator-over-ternary.md
15567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
15473
15568
  */
15474
15569
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
15475
15570
  /**
15476
15571
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
15477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-map-from-entries.md
15572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
15478
15573
  */
15479
15574
  "unicorn/prefer-map-from-entries"?: Linter.RuleEntry<[]>;
15480
15575
  /**
15481
15576
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
15482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-abs.md
15577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
15483
15578
  */
15484
15579
  "unicorn/prefer-math-abs"?: Linter.RuleEntry<[]>;
15485
15580
  /**
15486
15581
  * Prefer `Math` constants over their approximate numeric values.
15487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-constants.md
15582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
15488
15583
  */
15489
15584
  "unicorn/prefer-math-constants"?: Linter.RuleEntry<[]>;
15490
15585
  /**
15491
15586
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
15492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-min-max.md
15587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
15493
15588
  */
15494
15589
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
15495
15590
  /**
15496
15591
  * Prefer `Math.trunc()` for truncating numbers.
15497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-trunc.md
15592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
15498
15593
  */
15499
15594
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
15500
15595
  /**
15501
15596
  * Prefer moving ternaries into the minimal varying part of an expression.
15502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-minimal-ternary.md
15597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
15503
15598
  */
15504
15599
  "unicorn/prefer-minimal-ternary"?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
15505
15600
  /**
15506
15601
  * Prefer modern DOM APIs.
15507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-dom-apis.md
15602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
15508
15603
  */
15509
15604
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
15510
15605
  /**
15511
15606
  * Prefer modern `Math` APIs over legacy patterns.
15512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-math-apis.md
15607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
15513
15608
  */
15514
15609
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
15515
15610
  /**
15516
15611
  * Prefer JavaScript modules (ESM) over CommonJS.
15517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-module.md
15612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
15518
15613
  */
15519
15614
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
15520
15615
  /**
15521
15616
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
15522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-native-coercion-functions.md
15617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
15523
15618
  */
15524
15619
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
15525
15620
  /**
15526
15621
  * Prefer negative index over `.length - index` when possible.
15527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-negative-index.md
15622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
15528
15623
  */
15529
15624
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
15530
15625
  /**
15531
15626
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
15532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-node-protocol.md
15627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
15533
15628
  */
15534
15629
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
15535
15630
  /**
15536
15631
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
15537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-coercion.md
15632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
15538
15633
  */
15539
15634
  "unicorn/prefer-number-coercion"?: Linter.RuleEntry<[]>;
15540
15635
  /**
15541
15636
  * Prefer `Number.isSafeInteger()` over integer checks.
15542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-is-safe-integer.md
15637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
15543
15638
  */
15544
15639
  "unicorn/prefer-number-is-safe-integer"?: Linter.RuleEntry<[]>;
15545
15640
  /**
15546
15641
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
15547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-properties.md
15642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
15548
15643
  */
15549
15644
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
15550
15645
  /**
15551
15646
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
15552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-define-properties.md
15647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
15553
15648
  */
15554
15649
  "unicorn/prefer-object-define-properties"?: Linter.RuleEntry<[]>;
15555
15650
  /**
15556
15651
  * Prefer object destructuring defaults over default object literals with spread.
15557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-destructuring-defaults.md
15652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
15558
15653
  */
15559
15654
  "unicorn/prefer-object-destructuring-defaults"?: Linter.RuleEntry<[]>;
15560
15655
  /**
15561
15656
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
15562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-from-entries.md
15657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
15563
15658
  */
15564
15659
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
15565
15660
  /**
15566
15661
  * Prefer the most specific `Object` iterable method.
15567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-iterable-methods.md
15662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
15568
15663
  */
15569
15664
  "unicorn/prefer-object-iterable-methods"?: Linter.RuleEntry<[]>;
15570
15665
  /**
15571
15666
  * Prefer observer APIs over resize and scroll listeners with layout reads.
15572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-observer-apis.md
15667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
15573
15668
  */
15574
15669
  "unicorn/prefer-observer-apis"?: Linter.RuleEntry<[]>;
15575
15670
  /**
15576
15671
  * Prefer omitting the `catch` binding parameter.
15577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-optional-catch-binding.md
15672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
15578
15673
  */
15579
15674
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
15580
15675
  /**
15581
15676
  * Prefer `Path2D` for repeatedly drawn canvas paths.
15582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-path2d.md
15677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
15583
15678
  */
15584
15679
  "unicorn/prefer-path2d"?: Linter.RuleEntry<[]>;
15585
15680
  /**
15586
15681
  * Prefer private class fields over the underscore-prefix convention.
15587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-private-class-fields.md
15682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
15588
15683
  */
15589
15684
  "unicorn/prefer-private-class-fields"?: Linter.RuleEntry<[]>;
15590
15685
  /**
15591
15686
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
15592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-try.md
15687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
15593
15688
  */
15594
15689
  "unicorn/prefer-promise-try"?: Linter.RuleEntry<[]>;
15595
15690
  /**
15596
15691
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
15597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-with-resolvers.md
15692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
15598
15693
  */
15599
15694
  "unicorn/prefer-promise-with-resolvers"?: Linter.RuleEntry<[]>;
15600
15695
  /**
15601
15696
  * Prefer borrowing methods from the prototype instead of the instance.
15602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-prototype-methods.md
15697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
15603
15698
  */
15604
15699
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
15605
15700
  /**
15606
15701
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
15607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-query-selector.md
15702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
15608
15703
  */
15609
15704
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<UnicornPreferQuerySelector>;
15610
15705
  /**
15611
15706
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
15612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-queue-microtask.md
15707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
15613
15708
  */
15614
15709
  "unicorn/prefer-queue-microtask"?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
15615
15710
  /**
15616
15711
  * Prefer `Reflect.apply()` over `Function#apply()`.
15617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-reflect-apply.md
15712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
15618
15713
  */
15619
15714
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
15620
15715
  /**
15621
15716
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
15622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-escape.md
15717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
15623
15718
  */
15624
15719
  "unicorn/prefer-regexp-escape"?: Linter.RuleEntry<[]>;
15625
15720
  /**
15626
15721
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
15627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-test.md
15722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
15628
15723
  */
15629
15724
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
15630
15725
  /**
15631
15726
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
15632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-response-static-json.md
15727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
15633
15728
  */
15634
15729
  "unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
15635
15730
  /**
15636
15731
  * Prefer `:scope` when using element query selector methods.
15637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-scoped-selector.md
15732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
15638
15733
  */
15639
15734
  "unicorn/prefer-scoped-selector"?: Linter.RuleEntry<[]>;
15640
15735
  /**
15641
15736
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
15642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-has.md
15737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
15643
15738
  */
15644
15739
  "unicorn/prefer-set-has"?: Linter.RuleEntry<UnicornPreferSetHas>;
15645
15740
  /**
15646
15741
  * Prefer `Set` methods for Set operations.
15647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-methods.md
15742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
15648
15743
  */
15649
15744
  "unicorn/prefer-set-methods"?: Linter.RuleEntry<[]>;
15650
15745
  /**
15651
15746
  * Prefer using `Set#size` instead of `Array#length`.
15652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-size.md
15747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
15653
15748
  */
15654
15749
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
15655
15750
  /**
15656
15751
  * Prefer arrow function properties over methods with a single return.
15657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-short-arrow-method.md
15752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
15658
15753
  */
15659
- "unicorn/prefer-short-arrow-method"?: Linter.RuleEntry<[]>;
15754
+ "unicorn/prefer-short-arrow-method"?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
15660
15755
  /**
15661
15756
  * Prefer simple conditions first in logical expressions.
15662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-condition-first.md
15757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
15663
15758
  */
15664
15759
  "unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
15665
15760
  /**
15666
15761
  * Prefer a simple comparison function for `Array#sort()`.
15667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-sort-comparator.md
15762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
15668
15763
  */
15669
15764
  "unicorn/prefer-simple-sort-comparator"?: Linter.RuleEntry<[]>;
15670
15765
  /**
15671
15766
  * Prefer simplified conditions.
15672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simplified-conditions.md
15767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
15673
15768
  */
15674
15769
  "unicorn/prefer-simplified-conditions"?: Linter.RuleEntry<[]>;
15675
15770
  /**
15676
15771
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
15677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-array-predicate.md
15772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
15678
15773
  */
15679
15774
  "unicorn/prefer-single-array-predicate"?: Linter.RuleEntry<[]>;
15680
15775
  /**
15681
15776
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
15682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-call.md
15777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
15683
15778
  */
15684
15779
  "unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
15685
15780
  /**
15686
15781
  * Prefer a single object destructuring declaration per local const source.
15687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-object-destructuring.md
15782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
15688
15783
  */
15689
15784
  "unicorn/prefer-single-object-destructuring"?: Linter.RuleEntry<[]>;
15690
15785
  /**
15691
15786
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
15692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-replace.md
15787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
15693
15788
  */
15694
15789
  "unicorn/prefer-single-replace"?: Linter.RuleEntry<[]>;
15695
15790
  /**
15696
15791
  * Prefer declaring variables in the smallest possible scope.
15697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-smaller-scope.md
15792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
15698
15793
  */
15699
15794
  "unicorn/prefer-smaller-scope"?: Linter.RuleEntry<[]>;
15700
15795
  /**
15701
15796
  * Prefer `String#split()` with a limit.
15702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-split-limit.md
15797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
15703
15798
  */
15704
15799
  "unicorn/prefer-split-limit"?: Linter.RuleEntry<[]>;
15705
15800
  /**
15706
15801
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
15707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-spread.md
15802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
15708
15803
  */
15709
15804
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
15710
15805
  /**
15711
15806
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
15712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-match-all.md
15807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
15713
15808
  */
15714
15809
  "unicorn/prefer-string-match-all"?: Linter.RuleEntry<[]>;
15715
15810
  /**
15716
15811
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
15717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-pad-start-end.md
15812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
15718
15813
  */
15719
15814
  "unicorn/prefer-string-pad-start-end"?: Linter.RuleEntry<[]>;
15720
15815
  /**
15721
15816
  * Prefer using the `String.raw` tag to avoid escaping `\`.
15722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-raw.md
15817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
15723
15818
  */
15724
15819
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
15725
15820
  /**
15726
15821
  * Prefer `String#repeat()` for repeated whitespace.
15727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-repeat.md
15822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
15728
15823
  */
15729
15824
  "unicorn/prefer-string-repeat"?: Linter.RuleEntry<UnicornPreferStringRepeat>;
15730
15825
  /**
15731
15826
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
15732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-replace-all.md
15827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
15733
15828
  */
15734
15829
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
15735
15830
  /**
15736
15831
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
15737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-slice.md
15832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
15738
15833
  */
15739
15834
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
15740
15835
  /**
15741
- * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
15742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-starts-ends-with.md
15836
+ * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
15837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
15743
15838
  */
15744
15839
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
15745
15840
  /**
15746
15841
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
15747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-trim-start-end.md
15842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
15748
15843
  */
15749
15844
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
15750
15845
  /**
15751
15846
  * Prefer using `structuredClone` to create a deep clone.
15752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-structured-clone.md
15847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
15753
15848
  */
15754
15849
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
15755
15850
  /**
15756
15851
  * Prefer `switch` over multiple `else-if`.
15757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-switch.md
15852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
15758
15853
  */
15759
15854
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
15760
15855
  /**
15761
15856
  * Prefer `Temporal` over `Date`.
15762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-temporal.md
15857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
15763
15858
  */
15764
15859
  "unicorn/prefer-temporal"?: Linter.RuleEntry<UnicornPreferTemporal>;
15765
15860
  /**
15766
15861
  * Prefer ternary expressions over simple `if` statements that return or assign values.
15767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-ternary.md
15862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
15768
15863
  */
15769
15864
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
15865
+ /**
15866
+ * Prefer `.then().catch()` over `.then(…, …)` for error handling.
15867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
15868
+ */
15869
+ "unicorn/prefer-then-catch"?: Linter.RuleEntry<[]>;
15770
15870
  /**
15771
15871
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
15772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-toggle-attribute.md
15872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
15773
15873
  */
15774
15874
  "unicorn/prefer-toggle-attribute"?: Linter.RuleEntry<[]>;
15775
15875
  /**
15776
15876
  * Prefer top-level await over top-level promises and async function calls.
15777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-top-level-await.md
15877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
15778
15878
  */
15779
15879
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
15780
15880
  /**
15781
15881
  * Enforce throwing `TypeError` in type checking conditions.
15782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-error.md
15882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
15783
15883
  */
15784
15884
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
15785
15885
  /**
15786
15886
  * Require type literals to be last in union types.
15787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-literal-last.md
15887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
15788
15888
  */
15789
15889
  "unicorn/prefer-type-literal-last"?: Linter.RuleEntry<[]>;
15790
15890
  /**
15791
15891
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
15792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-uint8array-base64.md
15892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
15793
15893
  */
15794
15894
  "unicorn/prefer-uint8array-base64"?: Linter.RuleEntry<[]>;
15795
15895
  /**
15796
15896
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
15797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unary-minus.md
15897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
15798
15898
  */
15799
15899
  "unicorn/prefer-unary-minus"?: Linter.RuleEntry<[]>;
15800
15900
  /**
15801
15901
  * Prefer Unicode code point escapes over legacy escape sequences.
15802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unicode-code-point-escapes.md
15902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
15803
15903
  */
15804
15904
  "unicorn/prefer-unicode-code-point-escapes"?: Linter.RuleEntry<[]>;
15805
15905
  /**
15806
15906
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
15807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-can-parse.md
15907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
15808
15908
  */
15809
15909
  "unicorn/prefer-url-can-parse"?: Linter.RuleEntry<[]>;
15810
15910
  /**
15811
15911
  * Prefer `URL#href` over stringifying a `URL`.
15812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-href.md
15912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
15813
15913
  */
15814
15914
  "unicorn/prefer-url-href"?: Linter.RuleEntry<[]>;
15815
15915
  /**
15816
15916
  * Prefer `URLSearchParams` over manually splitting query strings.
15817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-search-parameters.md
15917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
15818
15918
  */
15819
15919
  "unicorn/prefer-url-search-parameters"?: Linter.RuleEntry<[]>;
15820
15920
  /**
15821
15921
  * Prefer putting the condition in the while statement.
15822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-while-loop-condition.md
15922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
15823
15923
  */
15824
15924
  "unicorn/prefer-while-loop-condition"?: Linter.RuleEntry<[]>;
15825
15925
  /**
15826
15926
  * Renamed to `unicorn/name-replacements`.
15827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
15927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
15828
15928
  * @deprecated
15829
15929
  */
15830
15930
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<[]>;
15831
15931
  /**
15832
15932
  * Enforce consistent relative URL style.
15833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/relative-url-style.md
15933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
15834
15934
  */
15835
15935
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
15836
15936
  /**
15837
15937
  * Enforce using the separator argument with `Array#join()`.
15838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-join-separator.md
15938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
15839
15939
  */
15840
15940
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
15841
15941
  /**
15842
15942
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
15843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-sort-compare.md
15943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
15844
15944
  */
15845
15945
  "unicorn/require-array-sort-compare"?: Linter.RuleEntry<[]>;
15846
15946
  /**
15847
15947
  * Require `CSS.escape()` for interpolated values in CSS selectors.
15848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-css-escape.md
15948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
15849
15949
  */
15850
15950
  "unicorn/require-css-escape"?: Linter.RuleEntry<UnicornRequireCssEscape>;
15951
+ /**
15952
+ * Require configured YAML frontmatter fields.
15953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
15954
+ */
15955
+ "unicorn/require-frontmatter-fields"?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
15851
15956
  /**
15852
15957
  * Require non-empty module attributes for imports and exports
15853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-attributes.md
15958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
15854
15959
  */
15855
15960
  "unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
15856
15961
  /**
15857
15962
  * Require non-empty specifier list in import and export statements.
15858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-specifiers.md
15963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
15859
15964
  */
15860
15965
  "unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
15861
15966
  /**
15862
15967
  * Enforce using the digits argument with `Number#toFixed()`.
15863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-number-to-fixed-digits-argument.md
15968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
15864
15969
  */
15865
15970
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
15866
15971
  /**
15867
15972
  * Require passive event listeners for high-frequency events.
15868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-passive-events.md
15973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
15869
15974
  */
15870
15975
  "unicorn/require-passive-events"?: Linter.RuleEntry<[]>;
15871
15976
  /**
15872
15977
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
15873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-post-message-target-origin.md
15978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
15874
15979
  */
15875
15980
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
15876
15981
  /**
15877
15982
  * Require boolean-returning Proxy traps to return booleans.
15878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-proxy-trap-boolean-return.md
15983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
15879
15984
  */
15880
15985
  "unicorn/require-proxy-trap-boolean-return"?: Linter.RuleEntry<[]>;
15881
15986
  /**
15882
15987
  * Enforce better string content.
15883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/string-content.md
15988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
15884
15989
  */
15885
15990
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
15886
15991
  /**
15887
15992
  * Enforce consistent brace style for `case` clauses.
15888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-braces.md
15993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
15889
15994
  */
15890
15995
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
15891
15996
  /**
15892
15997
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
15893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-break-position.md
15998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
15894
15999
  */
15895
16000
  "unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
15896
16001
  /**
15897
16002
  * Fix whitespace-insensitive template indentation.
15898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/template-indent.md
16003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
15899
16004
  */
15900
16005
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
15901
16006
  /**
15902
16007
  * Enforce consistent case for text encoding identifiers.
15903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/text-encoding-identifier-case.md
16008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
15904
16009
  */
15905
16010
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
15906
16011
  /**
15907
16012
  * Require `new` when creating an error.
15908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/throw-new-error.md
16013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
15909
16014
  */
15910
16015
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
15911
16016
  /**
15912
16017
  * Limit the complexity of `try` blocks.
15913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/try-complexity.md
16018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
15914
16019
  */
15915
16020
  "unicorn/try-complexity"?: Linter.RuleEntry<UnicornTryComplexity>;
15916
16021
  }
@@ -16219,10 +16324,19 @@ type UnicornPreferAt = [] | [{
16219
16324
  type UnicornPreferContinue = [] | [{
16220
16325
  maximumStatements?: number;
16221
16326
  }];
16327
+ // ----- unicorn/prefer-dom-node-html-methods -----
16328
+ type UnicornPreferDomNodeHtmlMethods = [] | [{
16329
+ checkGetHTML?: boolean;
16330
+ checkSetHTML?: boolean;
16331
+ }];
16222
16332
  // ----- unicorn/prefer-early-return -----
16223
16333
  type UnicornPreferEarlyReturn = [] | [{
16224
16334
  maximumStatements?: number;
16225
16335
  }];
16336
+ // ----- unicorn/prefer-explicit-viewport-units -----
16337
+ type UnicornPreferExplicitViewportUnits = [] | [{
16338
+ unit?: "dvh" | "svh" | "lvh";
16339
+ }];
16226
16340
  // ----- unicorn/prefer-export-from -----
16227
16341
  type UnicornPreferExportFrom = [] | [{
16228
16342
  checkUsedVariables?: boolean;
@@ -16233,7 +16347,7 @@ type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
16233
16347
  }];
16234
16348
  // ----- unicorn/prefer-minimal-ternary -----
16235
16349
  type UnicornPreferMinimalTernary = [] | [{
16236
- checkVaryingCallee?: boolean;
16350
+ checkVaryingBase?: boolean;
16237
16351
  checkComputedMemberAccess?: boolean;
16238
16352
  }];
16239
16353
  // ----- unicorn/prefer-number-properties -----
@@ -16258,6 +16372,8 @@ type UnicornPreferQueueMicrotask = [] | [{
16258
16372
  type UnicornPreferSetHas = [] | [{
16259
16373
  minimumItems?: number;
16260
16374
  }];
16375
+ // ----- unicorn/prefer-short-arrow-method -----
16376
+ type UnicornPreferShortArrowMethod = [] | ["always" | "consistent-as-needed"];
16261
16377
  // ----- unicorn/prefer-single-call -----
16262
16378
  type UnicornPreferSingleCall = [] | [{
16263
16379
  ignore?: unknown[];
@@ -16289,6 +16405,10 @@ type UnicornRelativeUrlStyle = [] | ["never" | "always"];
16289
16405
  type UnicornRequireCssEscape = [] | [{
16290
16406
  checkAllSelectors?: boolean;
16291
16407
  }];
16408
+ // ----- unicorn/require-frontmatter-fields -----
16409
+ type UnicornRequireFrontmatterFields = [] | [{
16410
+ fields?: string[];
16411
+ }];
16292
16412
  // ----- unicorn/string-content -----
16293
16413
  type UnicornStringContent = [] | [{
16294
16414
  patterns?: {
@@ -17307,5 +17427,6 @@ type AllRulesMap = {
17307
17427
  VitestRules: VitestRules;
17308
17428
  YmlRules: YmlRules;
17309
17429
  };
17430
+ type RuleName = keyof AllRules;
17310
17431
  //#endregion
17311
- export { E18eRules as A, JsoncRules as C, IgnoresRules as D, ImportsRules as E, CommandRules as M, BuiltinRules as N, EslintReactRules as O, AntfuRules as P, MarkdownRules as S, JavascriptRules as T, PnpmRules as _, VitestRules as a, NoOnlyTestsRules as b, TypescriptRules as c, SortTsconfigRules as d, SortPackageJsonRules as f, PrettierRules as g, ReactHooksRules as h, YmlRules as i, DeMorganRules as j, EslintCommentsRules as k, TomlRules as l, ReactRefreshRules as m, AllRulesIntersection as n, UnusedImportsRules as o, RegexpRules as p, AllRulesMap as r, UnicornRules as s, AllRules as t, StylisticRules as u, PerfectionistRules as v, JsdocRules as w, NRules as x, NodeTestRules as y };
17432
+ export { EslintCommentsRules as A, MarkdownRules as C, ImportsRules as D, JavascriptRules as E, AntfuRules as F, DeMorganRules as M, CommandRules as N, IgnoresRules as O, BuiltinRules as P, NRules as S, JsdocRules as T, PrettierRules as _, YmlRules as a, NodeTestRules as b, UnicornRules as c, StylisticRules as d, SortTsconfigRules as f, ReactHooksRules as g, ReactRefreshRules as h, RuleName as i, E18eRules as j, EslintReactRules as k, TypescriptRules as l, RegexpRules as m, AllRulesIntersection as n, VitestRules as o, SortPackageJsonRules as p, AllRulesMap as r, UnusedImportsRules as s, AllRules as t, TomlRules as u, PnpmRules as v, JsoncRules as w, NoOnlyTestsRules as x, PerfectionistRules as y };