@jsse/eslint-config 0.9.0 → 0.9.1

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.
@@ -6248,6 +6248,460 @@ type NoOnlyTestsNoOnlyTests = [] | [{
6248
6248
  fix?: boolean;
6249
6249
  }];
6250
6250
  //#endregion
6251
+ //#region src/_generated/dts/node-test.d.ts
6252
+ interface NodeTestRuleOptions {
6253
+ /**
6254
+ * Enforce the correct number of arguments for `node:assert` assertions.
6255
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/assertion-arguments.md
6256
+ */
6257
+ "node-test/assertion-arguments"?: Linter.RuleEntry<[]>;
6258
+ /**
6259
+ * Enforce a consistent truthiness assertion style.
6260
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-assert-style.md
6261
+ */
6262
+ "node-test/consistent-assert-style"?: Linter.RuleEntry<NodeTestConsistentAssertStyle>;
6263
+ /**
6264
+ * Enforce a consistent body style for `assert.throws()` arrow callbacks.
6265
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-assert-throws-callback-style.md
6266
+ */
6267
+ "node-test/consistent-assert-throws-callback-style"?: Linter.RuleEntry<NodeTestConsistentAssertThrowsCallbackStyle>;
6268
+ /**
6269
+ * Enforce a consistent style for test modifiers.
6270
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-modifier-style.md
6271
+ */
6272
+ "node-test/consistent-modifier-style"?: Linter.RuleEntry<NodeTestConsistentModifierStyle>;
6273
+ /**
6274
+ * Enforce a consistent name for the test context parameter.
6275
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-test-context-name.md
6276
+ */
6277
+ "node-test/consistent-test-context-name"?: Linter.RuleEntry<NodeTestConsistentTestContextName>;
6278
+ /**
6279
+ * Enforce a consistent test file name pattern.
6280
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-test-filename.md
6281
+ */
6282
+ "node-test/consistent-test-filename"?: Linter.RuleEntry<NodeTestConsistentTestFilename>;
6283
+ /**
6284
+ * Enforce consistent use of `test` or `it`.
6285
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/consistent-test-it.md
6286
+ */
6287
+ "node-test/consistent-test-it"?: Linter.RuleEntry<NodeTestConsistentTestIt>;
6288
+ /**
6289
+ * Enforce a consistent order of hook declarations.
6290
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/hooks-order.md
6291
+ */
6292
+ "node-test/hooks-order"?: Linter.RuleEntry<[]>;
6293
+ /**
6294
+ * Enforce a maximum number of assertions in a test.
6295
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/max-assertions.md
6296
+ */
6297
+ "node-test/max-assertions"?: Linter.RuleEntry<NodeTestMaxAssertions>;
6298
+ /**
6299
+ * Enforce a maximum depth for nested `describe` blocks.
6300
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/max-nested-describe.md
6301
+ */
6302
+ "node-test/max-nested-describe"?: Linter.RuleEntry<NodeTestMaxNestedDescribe>;
6303
+ /**
6304
+ * Disallow assertions directly inside a `describe` body.
6305
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-in-describe.md
6306
+ */
6307
+ "node-test/no-assert-in-describe"?: Linter.RuleEntry<[]>;
6308
+ /**
6309
+ * Disallow assertions inside hooks.
6310
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-in-hook.md
6311
+ */
6312
+ "node-test/no-assert-in-hook"?: Linter.RuleEntry<[]>;
6313
+ /**
6314
+ * Disallow strings as the regexp argument of `assert.match()`/`assert.doesNotMatch()`.
6315
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-match-string.md
6316
+ */
6317
+ "node-test/no-assert-match-string"?: Linter.RuleEntry<[]>;
6318
+ /**
6319
+ * Disallow passing an async function to `assert.throws()`/`assert.doesNotThrow()`.
6320
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-async.md
6321
+ */
6322
+ "node-test/no-assert-throws-async"?: Linter.RuleEntry<[]>;
6323
+ /**
6324
+ * Disallow calling the function passed to `assert.throws()`.
6325
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-call.md
6326
+ */
6327
+ "node-test/no-assert-throws-call"?: Linter.RuleEntry<[]>;
6328
+ /**
6329
+ * Disallow multiple statements in `assert.throws()`/`assert.rejects()` callbacks.
6330
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-multiple-statements.md
6331
+ */
6332
+ "node-test/no-assert-throws-multiple-statements"?: Linter.RuleEntry<[]>;
6333
+ /**
6334
+ * Disallow a string as the error matcher of `assert.throws()`/`assert.rejects()`.
6335
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-assert-throws-string.md
6336
+ */
6337
+ "node-test/no-assert-throws-string"?: Linter.RuleEntry<[]>;
6338
+ /**
6339
+ * Disallow `async` `describe` callbacks.
6340
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-async-describe.md
6341
+ */
6342
+ "node-test/no-async-describe"?: Linter.RuleEntry<[]>;
6343
+ /**
6344
+ * Disallow async test/hook functions that have no `await` expression.
6345
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-async-fn-without-await.md
6346
+ */
6347
+ "node-test/no-async-fn-without-await"?: Linter.RuleEntry<[]>;
6348
+ /**
6349
+ * Disallow a test or hook from using both a callback and a Promise.
6350
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-callback-and-promise.md
6351
+ */
6352
+ "node-test/no-callback-and-promise"?: Linter.RuleEntry<[]>;
6353
+ /**
6354
+ * Disallow commented-out tests.
6355
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-commented-tests.md
6356
+ */
6357
+ "node-test/no-commented-tests"?: Linter.RuleEntry<[]>;
6358
+ /**
6359
+ * Disallow compound truthiness assertions.
6360
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-compound-assertion.md
6361
+ */
6362
+ "node-test/no-compound-assertion"?: Linter.RuleEntry<[]>;
6363
+ /**
6364
+ * Disallow assertions inside conditional code within a test.
6365
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conditional-assertion.md
6366
+ */
6367
+ "node-test/no-conditional-assertion"?: Linter.RuleEntry<[]>;
6368
+ /**
6369
+ * Disallow conditional logic inside tests.
6370
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conditional-in-test.md
6371
+ */
6372
+ "node-test/no-conditional-in-test"?: Linter.RuleEntry<[]>;
6373
+ /**
6374
+ * Disallow conditionally registering tests, suites, and hooks.
6375
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conditional-tests.md
6376
+ */
6377
+ "node-test/no-conditional-tests"?: Linter.RuleEntry<[]>;
6378
+ /**
6379
+ * Disallow conflicting `only`/`skip`/`todo` modifiers.
6380
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-conflicting-modifiers.md
6381
+ */
6382
+ "node-test/no-conflicting-modifiers"?: Linter.RuleEntry<[]>;
6383
+ /**
6384
+ * Disallow assertions with constant outcomes.
6385
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-constant-assertion.md
6386
+ */
6387
+ "node-test/no-constant-assertion"?: Linter.RuleEntry<[]>;
6388
+ /**
6389
+ * Disallow callback (`done`) parameters in tests and hooks.
6390
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-done-callback.md
6391
+ */
6392
+ "node-test/no-done-callback"?: Linter.RuleEntry<[]>;
6393
+ /**
6394
+ * Disallow adjacent duplicate assertions.
6395
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-duplicate-assertions.md
6396
+ */
6397
+ "node-test/no-duplicate-assertions"?: Linter.RuleEntry<[]>;
6398
+ /**
6399
+ * Disallow duplicate hooks within the same scope.
6400
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-duplicate-hooks.md
6401
+ */
6402
+ "node-test/no-duplicate-hooks"?: Linter.RuleEntry<[]>;
6403
+ /**
6404
+ * Disallow setting a test plan more than once in the same test.
6405
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-duplicate-plan.md
6406
+ */
6407
+ "node-test/no-duplicate-plan"?: Linter.RuleEntry<[]>;
6408
+ /**
6409
+ * Disallow exports from test files.
6410
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-export.md
6411
+ */
6412
+ "node-test/no-export"?: Linter.RuleEntry<[]>;
6413
+ /**
6414
+ * Disallow comparing a value to itself in an assertion.
6415
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-identical-assertion-arguments.md
6416
+ */
6417
+ "node-test/no-identical-assertion-arguments"?: Linter.RuleEntry<[]>;
6418
+ /**
6419
+ * Disallow identical test titles within the same scope.
6420
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-identical-title.md
6421
+ */
6422
+ "node-test/no-identical-title"?: Linter.RuleEntry<[]>;
6423
+ /**
6424
+ * Disallow `deepEqual`/`deepStrictEqual` (and their `notDeep*` variants) when comparing with primitives.
6425
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-incorrect-deep-equal.md
6426
+ */
6427
+ "node-test/no-incorrect-deep-equal"?: Linter.RuleEntry<[]>;
6428
+ /**
6429
+ * Disallow `strictEqual`/`equal` (and their `not*` variants) when comparing with an object or array literal.
6430
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-incorrect-strict-equal.md
6431
+ */
6432
+ "node-test/no-incorrect-strict-equal"?: Linter.RuleEntry<[]>;
6433
+ /**
6434
+ * Disallow a static test or suite title inside a loop.
6435
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-loop-static-title.md
6436
+ */
6437
+ "node-test/no-loop-static-title"?: Linter.RuleEntry<[]>;
6438
+ /**
6439
+ * Disallow the `concurrency` option on a test without subtests.
6440
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-misused-concurrency.md
6441
+ */
6442
+ "node-test/no-misused-concurrency"?: Linter.RuleEntry<[]>;
6443
+ /**
6444
+ * Disallow destructured timer imports when using `mock.timers`.
6445
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-mock-timers-destructured-import.md
6446
+ */
6447
+ "node-test/no-mock-timers-destructured-import"?: Linter.RuleEntry<[]>;
6448
+ /**
6449
+ * Disallow tests and suites nested inside a test body.
6450
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-nested-tests.md
6451
+ */
6452
+ "node-test/no-nested-tests"?: Linter.RuleEntry<[]>;
6453
+ /**
6454
+ * Disallow the `.only` test modifier.
6455
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-only-test.md
6456
+ */
6457
+ "node-test/no-only-test"?: Linter.RuleEntry<[]>;
6458
+ /**
6459
+ * Disallow references to parent test contexts inside subtests.
6460
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-parent-test-context.md
6461
+ */
6462
+ "node-test/no-parent-test-context"?: Linter.RuleEntry<[]>;
6463
+ /**
6464
+ * Disallow mutating `process.env` inside tests.
6465
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-process-env-mutation.md
6466
+ */
6467
+ "node-test/no-process-env-mutation"?: Linter.RuleEntry<[]>;
6468
+ /**
6469
+ * Disallow process exit control in test files.
6470
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-process-exit-in-test.md
6471
+ */
6472
+ "node-test/no-process-exit-in-test"?: Linter.RuleEntry<[]>;
6473
+ /**
6474
+ * Disallow the `.skip` test modifier.
6475
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-skip-test.md
6476
+ */
6477
+ "node-test/no-skip-test"?: Linter.RuleEntry<[]>;
6478
+ /**
6479
+ * Require a reason when skipping or marking a test as todo.
6480
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-skip-without-reason.md
6481
+ */
6482
+ "node-test/no-skip-without-reason"?: Linter.RuleEntry<[]>;
6483
+ /**
6484
+ * Disallow `t.skip()`/`t.todo()` without returning afterwards.
6485
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-skip-without-return.md
6486
+ */
6487
+ "node-test/no-skip-without-return"?: Linter.RuleEntry<[]>;
6488
+ /**
6489
+ * Disallow sleeping in tests with `setTimeout`.
6490
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-sleep-in-test.md
6491
+ */
6492
+ "node-test/no-sleep-in-test"?: Linter.RuleEntry<[]>;
6493
+ /**
6494
+ * Disallow snapshot assertions inside loop bodies.
6495
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-snapshot-in-loop.md
6496
+ */
6497
+ "node-test/no-snapshot-in-loop"?: Linter.RuleEntry<[]>;
6498
+ /**
6499
+ * Disallow assertions outside of a test.
6500
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-standalone-assert.md
6501
+ */
6502
+ "node-test/no-standalone-assert"?: Linter.RuleEntry<[]>;
6503
+ /**
6504
+ * Disallow defining tests and suites inside a hook.
6505
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-test-inside-hook.md
6506
+ */
6507
+ "node-test/no-test-inside-hook"?: Linter.RuleEntry<[]>;
6508
+ /**
6509
+ * Disallow returning a concrete non-Promise value from a test or hook.
6510
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-test-return-statement.md
6511
+ */
6512
+ "node-test/no-test-return-statement"?: Linter.RuleEntry<[]>;
6513
+ /**
6514
+ * Disallow the `.todo` test modifier.
6515
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-todo-test.md
6516
+ */
6517
+ "node-test/no-todo-test"?: Linter.RuleEntry<[]>;
6518
+ /**
6519
+ * Disallow assertions inside unawaited Promise callbacks.
6520
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unawaited-promise-assertion.md
6521
+ */
6522
+ "node-test/no-unawaited-promise-assertion"?: Linter.RuleEntry<[]>;
6523
+ /**
6524
+ * Require `assert.rejects()`/`assert.doesNotReject()` to be awaited or returned.
6525
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unawaited-rejects.md
6526
+ */
6527
+ "node-test/no-unawaited-rejects"?: Linter.RuleEntry<[]>;
6528
+ /**
6529
+ * Require subtests created with the test context to be awaited or returned.
6530
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unawaited-subtest.md
6531
+ */
6532
+ "node-test/no-unawaited-subtest"?: Linter.RuleEntry<[]>;
6533
+ /**
6534
+ * Disallow unknown options in test and hook option objects.
6535
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-unknown-test-options.md
6536
+ */
6537
+ "node-test/no-unknown-test-options"?: Linter.RuleEntry<[]>;
6538
+ /**
6539
+ * Disallow `assert.doesNotThrow()` and `assert.doesNotReject()`.
6540
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/no-useless-assertion.md
6541
+ */
6542
+ "node-test/no-useless-assertion"?: Linter.RuleEntry<[]>;
6543
+ /**
6544
+ * Prefer `assert.match()`/`assert.doesNotMatch()` over asserting `RegExp#test()` / `String#match()` results.
6545
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-assert-match.md
6546
+ */
6547
+ "node-test/prefer-assert-match"?: Linter.RuleEntry<[]>;
6548
+ /**
6549
+ * Prefer `assert.throws()`/`assert.rejects()` over try/catch with an assertion.
6550
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-assert-throws.md
6551
+ */
6552
+ "node-test/prefer-assert-throws"?: Linter.RuleEntry<[]>;
6553
+ /**
6554
+ * Prefer async/await over returning a Promise.
6555
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-async-await.md
6556
+ */
6557
+ "node-test/prefer-async-await"?: Linter.RuleEntry<[]>;
6558
+ /**
6559
+ * Prefer the test context `t.mock` over the global `mock`.
6560
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-context-mock.md
6561
+ */
6562
+ "node-test/prefer-context-mock"?: Linter.RuleEntry<[]>;
6563
+ /**
6564
+ * Prefer the test context `diagnostic()` over `console` inside tests.
6565
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-diagnostic.md
6566
+ */
6567
+ "node-test/prefer-diagnostic"?: Linter.RuleEntry<[]>;
6568
+ /**
6569
+ * Prefer an equality assertion over a truthiness assertion on a comparison.
6570
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-equality-assertion.md
6571
+ */
6572
+ "node-test/prefer-equality-assertion"?: Linter.RuleEntry<[]>;
6573
+ /**
6574
+ * Require hooks to be declared before the tests in their scope.
6575
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-hooks-on-top.md
6576
+ */
6577
+ "node-test/prefer-hooks-on-top"?: Linter.RuleEntry<[]>;
6578
+ /**
6579
+ * Enforce lowercase test titles.
6580
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-lowercase-title.md
6581
+ */
6582
+ "node-test/prefer-lowercase-title"?: Linter.RuleEntry<NodeTestPreferLowercaseTitle>;
6583
+ /**
6584
+ * Prefer `mock.method()` over assigning `mock.fn()` to an object property.
6585
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-mock-method.md
6586
+ */
6587
+ "node-test/prefer-mock-method"?: Linter.RuleEntry<[]>;
6588
+ /**
6589
+ * Prefer strict assertion methods over their legacy loose counterparts.
6590
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-strict-assert.md
6591
+ */
6592
+ "node-test/prefer-strict-assert"?: Linter.RuleEntry<[]>;
6593
+ /**
6594
+ * Prefer the test context `t.assert` over the imported `node:assert`.
6595
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-test-context-assert.md
6596
+ */
6597
+ "node-test/prefer-test-context-assert"?: Linter.RuleEntry<[]>;
6598
+ /**
6599
+ * Prefer `.todo` for empty placeholder tests.
6600
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/prefer-todo.md
6601
+ */
6602
+ "node-test/prefer-todo"?: Linter.RuleEntry<[]>;
6603
+ /**
6604
+ * Require that each test contains at least one assertion.
6605
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-assertion.md
6606
+ */
6607
+ "node-test/require-assertion"?: Linter.RuleEntry<[]>;
6608
+ /**
6609
+ * Require subtests created in a loop callback to be awaited.
6610
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-await-concurrent-subtests.md
6611
+ */
6612
+ "node-test/require-await-concurrent-subtests"?: Linter.RuleEntry<[]>;
6613
+ /**
6614
+ * Require assertions to use the test context when the test sets a plan.
6615
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-context-assert-with-plan.md
6616
+ */
6617
+ "node-test/require-context-assert-with-plan"?: Linter.RuleEntry<[]>;
6618
+ /**
6619
+ * Require setup and teardown code to be inside a hook.
6620
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-hook.md
6621
+ */
6622
+ "node-test/require-hook"?: Linter.RuleEntry<NodeTestRequireHook>;
6623
+ /**
6624
+ * Require mock timers to be advanced after enabling timer APIs.
6625
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-mock-timers-advance.md
6626
+ */
6627
+ "node-test/require-mock-timers-advance"?: Linter.RuleEntry<[]>;
6628
+ /**
6629
+ * Require an explicit `apis` option when enabling `mock.timers`.
6630
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-mock-timers-apis.md
6631
+ */
6632
+ "node-test/require-mock-timers-apis"?: Linter.RuleEntry<[]>;
6633
+ /**
6634
+ * Require an error matcher for `assert.throws()`/`assert.rejects()`.
6635
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-throws-expectation.md
6636
+ */
6637
+ "node-test/require-throws-expectation"?: Linter.RuleEntry<[]>;
6638
+ /**
6639
+ * Require validator functions in `assert.throws()`/`assert.rejects()` to return `true`.
6640
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-throws-validator-return-true.md
6641
+ */
6642
+ "node-test/require-throws-validator-return-true"?: Linter.RuleEntry<[]>;
6643
+ /**
6644
+ * Require tests and hooks to be inside a top-level `describe`.
6645
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/require-top-level-describe.md
6646
+ */
6647
+ "node-test/require-top-level-describe"?: Linter.RuleEntry<NodeTestRequireTopLevelDescribe>;
6648
+ /**
6649
+ * Require tests to have a title.
6650
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/test-title.md
6651
+ */
6652
+ "node-test/test-title"?: Linter.RuleEntry<[]>;
6653
+ /**
6654
+ * Require test titles to match a configured pattern.
6655
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/test-title-format.md
6656
+ */
6657
+ "node-test/test-title-format"?: Linter.RuleEntry<NodeTestTestTitleFormat>;
6658
+ /**
6659
+ * Enforce valid `describe` callbacks.
6660
+ * @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/valid-describe-callback.md
6661
+ */
6662
+ "node-test/valid-describe-callback"?: Linter.RuleEntry<[]>;
6663
+ }
6664
+ /* ======= Declarations ======= */
6665
+ // ----- node-test/consistent-assert-style -----
6666
+ type NodeTestConsistentAssertStyle = [] | [{
6667
+ style?: "assert" | "assert-ok";
6668
+ }]; // ----- node-test/consistent-assert-throws-callback-style -----
6669
+ type NodeTestConsistentAssertThrowsCallbackStyle = [] | [{
6670
+ style?: "block" | "expression";
6671
+ }]; // ----- node-test/consistent-modifier-style -----
6672
+ type NodeTestConsistentModifierStyle = [] | [{
6673
+ style?: "chained" | "options";
6674
+ }]; // ----- node-test/consistent-test-context-name -----
6675
+ type NodeTestConsistentTestContextName = [] | [{
6676
+ name?: string;
6677
+ }]; // ----- node-test/consistent-test-filename -----
6678
+ type NodeTestConsistentTestFilename = [] | [{
6679
+ pattern?: string;
6680
+ }]; // ----- node-test/consistent-test-it -----
6681
+ type NodeTestConsistentTestIt = [] | [{
6682
+ fn?: "test" | "it";
6683
+ withinDescribe?: "test" | "it";
6684
+ }]; // ----- node-test/max-assertions -----
6685
+ type NodeTestMaxAssertions = [] | [{
6686
+ max?: number;
6687
+ }]; // ----- node-test/max-nested-describe -----
6688
+ type NodeTestMaxNestedDescribe = [] | [{
6689
+ max?: number;
6690
+ }]; // ----- node-test/prefer-lowercase-title -----
6691
+ type NodeTestPreferLowercaseTitle = [] | [{
6692
+ ignore?: ("test" | "it" | "describe" | "suite")[];
6693
+ allowedPrefixes?: string[];
6694
+ }]; // ----- node-test/require-hook -----
6695
+ type NodeTestRequireHook = [] | [{
6696
+ allow?: string[];
6697
+ }]; // ----- node-test/require-top-level-describe -----
6698
+ type NodeTestRequireTopLevelDescribe = [] | [{
6699
+ maxTopLevelDescribes?: number;
6700
+ }]; // ----- node-test/test-title-format -----
6701
+ type NodeTestTestTitleFormat = [] | [{
6702
+ format?: string;
6703
+ }];
6704
+ //#endregion
6251
6705
  //#region src/_generated/dts/perfectionist.d.ts
6252
6706
  interface PerfectionistRuleOptions {
6253
6707
  /**
@@ -16214,7 +16668,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
16214
16668
  }];
16215
16669
  //#endregion
16216
16670
  //#region src/_generated/rule-options.d.ts
16217
- type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & E18eRuleOptions & EslintCommentsRuleOptions & EslintReactRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactHooksRuleOptions & RegexpRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
16671
+ type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & E18eRuleOptions & EslintCommentsRuleOptions & EslintReactRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & NodeTestRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactHooksRuleOptions & RegexpRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
16218
16672
  //#endregion
16219
16673
  //#region src/types.d.ts
16220
16674
  type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
@@ -16255,7 +16709,9 @@ type OptionsComponentExts = {
16255
16709
  */
16256
16710
  componentExts?: string[];
16257
16711
  };
16258
- type EslintConfigFn<T = undefined> = (options?: T) => Promise<TypedFlatConfigItemWithId[]>;
16712
+ type EslintConfigFnAsync<T = undefined> = (options?: T) => Promise<TypedFlatConfigItemWithId[]>;
16713
+ type EslintConfigFnSync<T = undefined> = (options?: T) => TypedFlatConfigItemWithId[];
16714
+ type EslintConfigFn<T = undefined> = EslintConfigFnAsync<T> | EslintConfigFnSync<T>;
16259
16715
  type OptionsFiles = {
16260
16716
  /**
16261
16717
  * Override the `files` option to provide custom globs.
@@ -16369,6 +16825,23 @@ type OptionsMarkdown = OptionsComponentExts & {
16369
16825
  type OptionsN = {
16370
16826
  overrides?: NRuleOptions;
16371
16827
  };
16828
+ type OptionsNodeTest = {
16829
+ /**
16830
+ * Files to include for node-test rules.
16831
+ *
16832
+ * Defaults to `GLOB_TESTS`
16833
+ */
16834
+ files?: string[];
16835
+ /**
16836
+ * eslint-node-test preset to use as the base ruleset.
16837
+ * @default "recommended"
16838
+ */
16839
+ preset?: "recommended" | "unopinionated" | "all";
16840
+ /**
16841
+ * Override eslint-node-test rules after applying the preset.
16842
+ */
16843
+ overrides?: NodeTestRuleOptions;
16844
+ };
16372
16845
  type OptionsPnpm = {
16373
16846
  overrides?: PnpmRuleOptions;
16374
16847
  };
@@ -16379,9 +16852,6 @@ type OptionsReactConfig = {
16379
16852
  type OptionsSortTsconfig = {
16380
16853
  extendTsconfigGlobs?: string[];
16381
16854
  };
16382
- type OptionsTest = {
16383
- overrides?: VitestRuleOptions;
16384
- };
16385
16855
  type OptionsUnicorn = {
16386
16856
  /**
16387
16857
  * Unicorn preset to use as the base ruleset.
@@ -16393,6 +16863,9 @@ type OptionsUnicorn = {
16393
16863
  */
16394
16864
  overrides?: UnicornRuleOptions;
16395
16865
  };
16866
+ type OptionsVitest = {
16867
+ overrides?: VitestRuleOptions;
16868
+ };
16396
16869
  type OptionsYaml = OptionsFiles & OptionsStylistic & {
16397
16870
  overrides?: YmlRuleOptions;
16398
16871
  };
@@ -16450,6 +16923,11 @@ type OptionsConfigs = {
16450
16923
  * @default true
16451
16924
  */
16452
16925
  n?: boolean | OptionsN;
16926
+ /**
16927
+ * Enable `eslint-node-test` (Node.js built-in test runner rules).
16928
+ * @default false
16929
+ */
16930
+ nodeTest?: boolean | OptionsNodeTest;
16453
16931
  /**
16454
16932
  * Enable eslint-plugin-pnpm.
16455
16933
  * @default false
@@ -16483,10 +16961,10 @@ type OptionsConfigs = {
16483
16961
  */
16484
16962
  regexp?: boolean;
16485
16963
  /**
16486
- * Enable test support.
16487
- * @default true
16964
+ * Enable `@vitest/eslint-plugin` (Vitest rules).
16965
+ * @default auto-detect based on the dependencies
16488
16966
  */
16489
- test?: boolean | OptionsTest;
16967
+ vitest?: boolean | OptionsVitest;
16490
16968
  /**
16491
16969
  * Enable JSONC support.
16492
16970
  * @default true
@@ -16611,4 +17089,4 @@ type RenamePrefix<T extends Record<string, unknown>, FromPref extends string, To
16611
17089
  //#region src/_generated/fixable-rules-map.d.ts
16612
17090
  declare const FIXABLE_RULES_MAP: Record<string, RuleName[]>;
16613
17091
  //#endregion
16614
- export { OptionsTypeScriptParserOptions as A, TailwindOptions as B, OptionsOverrides as C, OptionsSortTsconfig as D, OptionsReactConfig as E, RenamePrefix as F, TypescriptConfigRules as H, RuleName as I, RulesRecord as L, OptionsTypescript as M, OptionsUnicorn as N, OptionsStylistic as O, OptionsYaml as P, StylisticConfig as R, OptionsN as S, OptionsPrefix as T, UnPromise as U, TypedFlatConfigItemWithId as V, OptionsIsInEditor as _, JavascriptRuleOptions as a, OptionsJsonc as b, OptionsAntfu as c, OptionsComponentExts as d, OptionsConfig as f, OptionsHasTypeScript as g, OptionsFiles as h, EslintConfigFn as i, OptionsTypeScriptWithTypes as j, OptionsTest as k, OptionsCommand as l, OptionsE18e as m, Awaitable as n, LanguageOptions as o, OptionsDeMorgan as p, Config as r, NormalizedOptionsConfig as s, FIXABLE_RULES_MAP as t, OptionsCommon as u, OptionsJavascript as v, OptionsPnpm as w, OptionsMarkdown as x, OptionsJsdoc as y, TailwindEslintSettings as z };
17092
+ export { OptionsSortTsconfig as A, RulesRecord as B, OptionsMarkdown as C, OptionsPnpm as D, OptionsOverrides as E, OptionsUnicorn as F, TypescriptConfigRules as G, TailwindEslintSettings as H, OptionsVitest as I, UnPromise as K, OptionsYaml as L, OptionsTypeScriptParserOptions as M, OptionsTypeScriptWithTypes as N, OptionsPrefix as O, OptionsTypescript as P, RenamePrefix as R, OptionsJsonc as S, OptionsNodeTest as T, TailwindOptions as U, StylisticConfig as V, TypedFlatConfigItemWithId as W, OptionsFiles as _, EslintConfigFnAsync as a, OptionsJavascript as b, LanguageOptions as c, OptionsCommand as d, OptionsCommon as f, OptionsE18e as g, OptionsDeMorgan as h, EslintConfigFn as i, OptionsStylistic as j, OptionsReactConfig as k, NormalizedOptionsConfig as l, OptionsConfig as m, Awaitable as n, EslintConfigFnSync as o, OptionsComponentExts as p, Config as r, JavascriptRuleOptions as s, FIXABLE_RULES_MAP as t, OptionsAntfu as u, OptionsHasTypeScript as v, OptionsN as w, OptionsJsdoc as x, OptionsIsInEditor as y, RuleName as z };
@@ -152,6 +152,22 @@ const FIXABLE_RULES_MAP = {
152
152
  "n/prefer-node-protocol",
153
153
  "n/shebang"
154
154
  ],
155
+ nodeTest: [
156
+ "node-test/consistent-assert-style",
157
+ "node-test/consistent-assert-throws-callback-style",
158
+ "node-test/hooks-order",
159
+ "node-test/no-compound-assertion",
160
+ "node-test/no-incorrect-deep-equal",
161
+ "node-test/no-incorrect-strict-equal",
162
+ "node-test/no-unawaited-promise-assertion",
163
+ "node-test/no-unawaited-rejects",
164
+ "node-test/no-unawaited-subtest",
165
+ "node-test/prefer-assert-match",
166
+ "node-test/prefer-equality-assertion",
167
+ "node-test/prefer-lowercase-title",
168
+ "node-test/prefer-strict-assert",
169
+ "node-test/test-title"
170
+ ],
155
171
  noOnlyTests: ["no-only-tests/no-only-tests"],
156
172
  perfectionist: [
157
173
  "perfectionist/sort-array-includes",