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