eslint-config-typed 4.1.0 → 4.2.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.
Files changed (33) hide show
  1. package/dist/rules/eslint-jest-rules.d.mts +3 -0
  2. package/dist/rules/eslint-jest-rules.d.mts.map +1 -1
  3. package/dist/rules/eslint-jest-rules.mjs +3 -0
  4. package/dist/rules/eslint-jest-rules.mjs.map +1 -1
  5. package/dist/rules/eslint-testing-library-rules.d.mts +1 -0
  6. package/dist/rules/eslint-testing-library-rules.d.mts.map +1 -1
  7. package/dist/rules/eslint-testing-library-rules.mjs +1 -0
  8. package/dist/rules/eslint-testing-library-rules.mjs.map +1 -1
  9. package/dist/rules/eslint-vitest-rules.d.mts +1 -0
  10. package/dist/rules/eslint-vitest-rules.d.mts.map +1 -1
  11. package/dist/rules/eslint-vitest-rules.mjs +1 -0
  12. package/dist/rules/eslint-vitest-rules.mjs.map +1 -1
  13. package/dist/rules/typescript-eslint-rules.d.mts +1 -0
  14. package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
  15. package/dist/rules/typescript-eslint-rules.mjs +1 -0
  16. package/dist/rules/typescript-eslint-rules.mjs.map +1 -1
  17. package/dist/types/rules/eslint-jest-rules.d.mts +116 -65
  18. package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
  19. package/dist/types/rules/eslint-testing-library-rules.d.mts +16 -0
  20. package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -1
  21. package/dist/types/rules/eslint-vitest-rules.d.mts +17 -0
  22. package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
  23. package/dist/types/rules/typescript-eslint-rules.d.mts +19 -0
  24. package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
  25. package/package.json +21 -21
  26. package/src/rules/eslint-jest-rules.mts +3 -0
  27. package/src/rules/eslint-testing-library-rules.mts +1 -0
  28. package/src/rules/eslint-vitest-rules.mts +1 -0
  29. package/src/rules/typescript-eslint-rules.mts +1 -0
  30. package/src/types/rules/eslint-jest-rules.mts +119 -65
  31. package/src/types/rules/eslint-testing-library-rules.mts +17 -0
  32. package/src/types/rules/eslint-vitest-rules.mts +18 -0
  33. package/src/types/rules/typescript-eslint-rules.mts +20 -0
@@ -10,7 +10,7 @@ type SpreadOptionsIfIsArray<
10
10
  /**
11
11
  * Enforce `test` and `it` usage conventions
12
12
  *
13
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/consistent-test-it.md
13
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/consistent-test-it.md
14
14
  *
15
15
  * ```md
16
16
  * | key | value |
@@ -63,7 +63,7 @@ namespace ConsistentTestIt {
63
63
  /**
64
64
  * Enforce assertion to be made in a test body
65
65
  *
66
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/expect-expect.md
66
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/expect-expect.md
67
67
  *
68
68
  * ```md
69
69
  * | key | value |
@@ -113,7 +113,7 @@ namespace ExpectExpect {
113
113
  /**
114
114
  * Enforces a maximum number assertion calls in a test body
115
115
  *
116
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-expects.md
116
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/max-expects.md
117
117
  *
118
118
  * ```md
119
119
  * | key | value |
@@ -154,7 +154,7 @@ namespace MaxExpects {
154
154
  /**
155
155
  * Enforces a maximum depth to nested describe calls
156
156
  *
157
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-nested-describe.md
157
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/max-nested-describe.md
158
158
  *
159
159
  * ```md
160
160
  * | key | value |
@@ -195,7 +195,7 @@ namespace MaxNestedDescribe {
195
195
  /**
196
196
  * Disallow alias methods
197
197
  *
198
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-alias-methods.md
198
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-alias-methods.md
199
199
  *
200
200
  * ```md
201
201
  * | key | value |
@@ -212,7 +212,7 @@ namespace NoAliasMethods {
212
212
  /**
213
213
  * Disallow commented out tests
214
214
  *
215
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-commented-out-tests.md
215
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-commented-out-tests.md
216
216
  *
217
217
  * ```md
218
218
  * | key | value |
@@ -228,7 +228,7 @@ namespace NoCommentedOutTests {
228
228
  /**
229
229
  * Disallow calling `expect` conditionally
230
230
  *
231
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-expect.md
231
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-conditional-expect.md
232
232
  *
233
233
  * ```md
234
234
  * | key | value |
@@ -244,7 +244,7 @@ namespace NoConditionalExpect {
244
244
  /**
245
245
  * Disallow conditional logic in tests
246
246
  *
247
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-in-test.md
247
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-conditional-in-test.md
248
248
  *
249
249
  * ```md
250
250
  * | key | value |
@@ -260,7 +260,7 @@ namespace NoConditionalInTest {
260
260
  /**
261
261
  * Disallow confusing usages of jest.setTimeout
262
262
  *
263
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-confusing-set-timeout.md
263
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-confusing-set-timeout.md
264
264
  *
265
265
  * ```md
266
266
  * | key | value |
@@ -276,7 +276,7 @@ namespace NoConfusingSetTimeout {
276
276
  /**
277
277
  * Disallow use of deprecated functions
278
278
  *
279
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-deprecated-functions.md
279
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-deprecated-functions.md
280
280
  *
281
281
  * ```md
282
282
  * | key | value |
@@ -293,7 +293,7 @@ namespace NoDeprecatedFunctions {
293
293
  /**
294
294
  * Disallow disabled tests
295
295
  *
296
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-disabled-tests.md
296
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-disabled-tests.md
297
297
  *
298
298
  * ```md
299
299
  * | key | value |
@@ -309,7 +309,7 @@ namespace NoDisabledTests {
309
309
  /**
310
310
  * Disallow using a callback in asynchronous tests and hooks
311
311
  *
312
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-done-callback.md
312
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-done-callback.md
313
313
  *
314
314
  * ```md
315
315
  * | key | value |
@@ -326,7 +326,7 @@ namespace NoDoneCallback {
326
326
  /**
327
327
  * Disallow duplicate setup and teardown hooks
328
328
  *
329
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-duplicate-hooks.md
329
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-duplicate-hooks.md
330
330
  *
331
331
  * ```md
332
332
  * | key | value |
@@ -342,7 +342,7 @@ namespace NoDuplicateHooks {
342
342
  /**
343
343
  * Disallow using `exports` in files containing tests
344
344
  *
345
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-export.md
345
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-export.md
346
346
  *
347
347
  * ```md
348
348
  * | key | value |
@@ -358,7 +358,7 @@ namespace NoExport {
358
358
  /**
359
359
  * Disallow focused tests
360
360
  *
361
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-focused-tests.md
361
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-focused-tests.md
362
362
  *
363
363
  * ```md
364
364
  * | key | value |
@@ -375,7 +375,7 @@ namespace NoFocusedTests {
375
375
  /**
376
376
  * Disallow setup and teardown hooks
377
377
  *
378
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-hooks.md
378
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-hooks.md
379
379
  *
380
380
  * ```md
381
381
  * | key | value |
@@ -421,7 +421,7 @@ namespace NoHooks {
421
421
  /**
422
422
  * Disallow identical titles
423
423
  *
424
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-identical-title.md
424
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-identical-title.md
425
425
  *
426
426
  * ```md
427
427
  * | key | value |
@@ -437,7 +437,7 @@ namespace NoIdenticalTitle {
437
437
  /**
438
438
  * Disallow string interpolation inside snapshots
439
439
  *
440
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-interpolation-in-snapshots.md
440
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-interpolation-in-snapshots.md
441
441
  *
442
442
  * ```md
443
443
  * | key | value |
@@ -453,7 +453,7 @@ namespace NoInterpolationInSnapshots {
453
453
  /**
454
454
  * Disallow Jasmine globals
455
455
  *
456
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-jasmine-globals.md
456
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-jasmine-globals.md
457
457
  *
458
458
  * ```md
459
459
  * | key | value |
@@ -470,7 +470,7 @@ namespace NoJasmineGlobals {
470
470
  /**
471
471
  * Disallow large snapshots
472
472
  *
473
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-large-snapshots.md
473
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-large-snapshots.md
474
474
  *
475
475
  * ```md
476
476
  * | key | value |
@@ -521,7 +521,7 @@ namespace NoLargeSnapshots {
521
521
  /**
522
522
  * Disallow manually importing from `__mocks__`
523
523
  *
524
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-mocks-import.md
524
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-mocks-import.md
525
525
  *
526
526
  * ```md
527
527
  * | key | value |
@@ -537,7 +537,7 @@ namespace NoMocksImport {
537
537
  /**
538
538
  * Disallow specific `jest.` methods
539
539
  *
540
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-jest-methods.md
540
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-restricted-jest-methods.md
541
541
  *
542
542
  * ```md
543
543
  * | key | value |
@@ -575,7 +575,7 @@ namespace NoRestrictedJestMethods {
575
575
  /**
576
576
  * Disallow specific matchers & modifiers
577
577
  *
578
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-matchers.md
578
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-restricted-matchers.md
579
579
  *
580
580
  * ```md
581
581
  * | key | value |
@@ -613,7 +613,7 @@ namespace NoRestrictedMatchers {
613
613
  /**
614
614
  * Disallow using `expect` outside of `it` or `test` blocks
615
615
  *
616
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-standalone-expect.md
616
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-standalone-expect.md
617
617
  *
618
618
  * ```md
619
619
  * | key | value |
@@ -656,7 +656,7 @@ namespace NoStandaloneExpect {
656
656
  /**
657
657
  * Require using `.only` and `.skip` over `f` and `x`
658
658
  *
659
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-prefixes.md
659
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-test-prefixes.md
660
660
  *
661
661
  * ```md
662
662
  * | key | value |
@@ -673,7 +673,7 @@ namespace NoTestPrefixes {
673
673
  /**
674
674
  * Disallow explicitly returning from tests
675
675
  *
676
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-return-statement.md
676
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-test-return-statement.md
677
677
  *
678
678
  * ```md
679
679
  * | key | value |
@@ -686,10 +686,27 @@ namespace NoTestReturnStatement {
686
686
  export type RuleEntry = Linter.StringSeverity;
687
687
  }
688
688
 
689
+ /**
690
+ * Disallow unnecessary async function wrapper for expected promises
691
+ *
692
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-unneeded-async-expect-function.md
693
+ *
694
+ * ```md
695
+ * | key | value |
696
+ * | :--------- | :--------- |
697
+ * | type | suggestion |
698
+ * | deprecated | false |
699
+ * | fixable | code |
700
+ * ```
701
+ */
702
+ namespace NoUnneededAsyncExpectFunction {
703
+ export type RuleEntry = Linter.StringSeverity;
704
+ }
705
+
689
706
  /**
690
707
  * Disallow using `jest.mock()` factories without an explicit type parameter
691
708
  *
692
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-untyped-mock-factory.md
709
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/no-untyped-mock-factory.md
693
710
  *
694
711
  * ```md
695
712
  * | key | value |
@@ -706,7 +723,7 @@ namespace NoUntypedMockFactory {
706
723
  /**
707
724
  * Enforce padding around `afterAll` blocks
708
725
  *
709
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-all-blocks.md
726
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-after-all-blocks.md
710
727
  *
711
728
  * ```md
712
729
  * | key | value |
@@ -723,7 +740,7 @@ namespace PaddingAroundAfterAllBlocks {
723
740
  /**
724
741
  * Enforce padding around `afterEach` blocks
725
742
  *
726
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-each-blocks.md
743
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-after-each-blocks.md
727
744
  *
728
745
  * ```md
729
746
  * | key | value |
@@ -740,7 +757,7 @@ namespace PaddingAroundAfterEachBlocks {
740
757
  /**
741
758
  * Enforce padding around Jest functions
742
759
  *
743
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-all.md
760
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-all.md
744
761
  *
745
762
  * ```md
746
763
  * | key | value |
@@ -757,7 +774,7 @@ namespace PaddingAroundAll {
757
774
  /**
758
775
  * Enforce padding around `beforeAll` blocks
759
776
  *
760
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-all-blocks.md
777
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-before-all-blocks.md
761
778
  *
762
779
  * ```md
763
780
  * | key | value |
@@ -774,7 +791,7 @@ namespace PaddingAroundBeforeAllBlocks {
774
791
  /**
775
792
  * Enforce padding around `beforeEach` blocks
776
793
  *
777
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-each-blocks.md
794
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-before-each-blocks.md
778
795
  *
779
796
  * ```md
780
797
  * | key | value |
@@ -791,7 +808,7 @@ namespace PaddingAroundBeforeEachBlocks {
791
808
  /**
792
809
  * Enforce padding around `describe` blocks
793
810
  *
794
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-describe-blocks.md
811
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-describe-blocks.md
795
812
  *
796
813
  * ```md
797
814
  * | key | value |
@@ -808,7 +825,7 @@ namespace PaddingAroundDescribeBlocks {
808
825
  /**
809
826
  * Enforce padding around `expect` groups
810
827
  *
811
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-expect-groups.md
828
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-expect-groups.md
812
829
  *
813
830
  * ```md
814
831
  * | key | value |
@@ -825,7 +842,7 @@ namespace PaddingAroundExpectGroups {
825
842
  /**
826
843
  * Enforce padding around `test` and `it` blocks
827
844
  *
828
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-test-blocks.md
845
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/padding-around-test-blocks.md
829
846
  *
830
847
  * ```md
831
848
  * | key | value |
@@ -840,9 +857,9 @@ namespace PaddingAroundTestBlocks {
840
857
  }
841
858
 
842
859
  /**
843
- * Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
860
+ * Suggest using `toHaveBeenCalledWith()`
844
861
  *
845
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-called-with.md
862
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-called-with.md
846
863
  *
847
864
  * ```md
848
865
  * | key | value |
@@ -858,7 +875,7 @@ namespace PreferCalledWith {
858
875
  /**
859
876
  * Suggest using the built-in comparison matchers
860
877
  *
861
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-comparison-matcher.md
878
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-comparison-matcher.md
862
879
  *
863
880
  * ```md
864
881
  * | key | value |
@@ -875,7 +892,7 @@ namespace PreferComparisonMatcher {
875
892
  /**
876
893
  * Prefer using `.each` rather than manual loops
877
894
  *
878
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-each.md
895
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-each.md
879
896
  *
880
897
  * ```md
881
898
  * | key | value |
@@ -891,7 +908,7 @@ namespace PreferEach {
891
908
  /**
892
909
  * Prefer having the last statement in a test be an assertion
893
910
  *
894
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-ending-with-an-expect.md
911
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-ending-with-an-expect.md
895
912
  *
896
913
  * ```md
897
914
  * | key | value |
@@ -941,7 +958,7 @@ namespace PreferEndingWithAnExpect {
941
958
  /**
942
959
  * Suggest using the built-in equality matchers
943
960
  *
944
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-equality-matcher.md
961
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-equality-matcher.md
945
962
  *
946
963
  * ```md
947
964
  * | key | value |
@@ -958,7 +975,7 @@ namespace PreferEqualityMatcher {
958
975
  /**
959
976
  * Suggest using `expect.assertions()` OR `expect.hasAssertions()`
960
977
  *
961
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-assertions.md
978
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-expect-assertions.md
962
979
  *
963
980
  * ```md
964
981
  * | key | value |
@@ -1007,7 +1024,7 @@ namespace PreferExpectAssertions {
1007
1024
  /**
1008
1025
  * Prefer `await expect(...).resolves` over `expect(await ...)` syntax
1009
1026
  *
1010
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-resolves.md
1027
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-expect-resolves.md
1011
1028
  *
1012
1029
  * ```md
1013
1030
  * | key | value |
@@ -1024,7 +1041,7 @@ namespace PreferExpectResolves {
1024
1041
  /**
1025
1042
  * Prefer having hooks in a consistent order
1026
1043
  *
1027
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-in-order.md
1044
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-hooks-in-order.md
1028
1045
  *
1029
1046
  * ```md
1030
1047
  * | key | value |
@@ -1040,7 +1057,7 @@ namespace PreferHooksInOrder {
1040
1057
  /**
1041
1058
  * Suggest having hooks before any test cases
1042
1059
  *
1043
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-on-top.md
1060
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-hooks-on-top.md
1044
1061
  *
1045
1062
  * ```md
1046
1063
  * | key | value |
@@ -1056,7 +1073,7 @@ namespace PreferHooksOnTop {
1056
1073
  /**
1057
1074
  * Prefer importing Jest globals
1058
1075
  *
1059
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-importing-jest-globals.md
1076
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-importing-jest-globals.md
1060
1077
  *
1061
1078
  * ```md
1062
1079
  * | key | value |
@@ -1115,7 +1132,7 @@ namespace PreferImportingJestGlobals {
1115
1132
  /**
1116
1133
  * Prefer `jest.mocked()` over `fn as jest.Mock`
1117
1134
  *
1118
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-jest-mocked.md
1135
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-jest-mocked.md
1119
1136
  *
1120
1137
  * ```md
1121
1138
  * | key | value |
@@ -1132,7 +1149,7 @@ namespace PreferJestMocked {
1132
1149
  /**
1133
1150
  * Enforce lowercase test names
1134
1151
  *
1135
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-lowercase-title.md
1152
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-lowercase-title.md
1136
1153
  *
1137
1154
  * ```md
1138
1155
  * | key | value |
@@ -1202,7 +1219,7 @@ namespace PreferLowercaseTitle {
1202
1219
  /**
1203
1220
  * Prefer mock resolved/rejected shorthands for promises
1204
1221
  *
1205
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-mock-promise-shorthand.md
1222
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-mock-promise-shorthand.md
1206
1223
  *
1207
1224
  * ```md
1208
1225
  * | key | value |
@@ -1219,7 +1236,7 @@ namespace PreferMockPromiseShorthand {
1219
1236
  /**
1220
1237
  * Prefer including a hint with external snapshots
1221
1238
  *
1222
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-snapshot-hint.md
1239
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-snapshot-hint.md
1223
1240
  *
1224
1241
  * ```md
1225
1242
  * | key | value |
@@ -1255,7 +1272,7 @@ namespace PreferSnapshotHint {
1255
1272
  /**
1256
1273
  * Suggest using `jest.spyOn()`
1257
1274
  *
1258
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-spy-on.md
1275
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-spy-on.md
1259
1276
  *
1260
1277
  * ```md
1261
1278
  * | key | value |
@@ -1272,7 +1289,7 @@ namespace PreferSpyOn {
1272
1289
  /**
1273
1290
  * Suggest using `toStrictEqual()`
1274
1291
  *
1275
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-strict-equal.md
1292
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-strict-equal.md
1276
1293
  *
1277
1294
  * ```md
1278
1295
  * | key | value |
@@ -1289,7 +1306,7 @@ namespace PreferStrictEqual {
1289
1306
  /**
1290
1307
  * Suggest using `toBe()` for primitive literals
1291
1308
  *
1292
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-be.md
1309
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-be.md
1293
1310
  *
1294
1311
  * ```md
1295
1312
  * | key | value |
@@ -1306,7 +1323,7 @@ namespace PreferToBe {
1306
1323
  /**
1307
1324
  * Suggest using `toContain()`
1308
1325
  *
1309
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-contain.md
1326
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-contain.md
1310
1327
  *
1311
1328
  * ```md
1312
1329
  * | key | value |
@@ -1320,10 +1337,44 @@ namespace PreferToContain {
1320
1337
  export type RuleEntry = Linter.StringSeverity;
1321
1338
  }
1322
1339
 
1340
+ /**
1341
+ * Suggest using `toHaveBeenCalledTimes()`
1342
+ *
1343
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-have-been-called-times.md
1344
+ *
1345
+ * ```md
1346
+ * | key | value |
1347
+ * | :--------- | :--------- |
1348
+ * | type | suggestion |
1349
+ * | deprecated | false |
1350
+ * | fixable | code |
1351
+ * ```
1352
+ */
1353
+ namespace PreferToHaveBeenCalledTimes {
1354
+ export type RuleEntry = Linter.StringSeverity;
1355
+ }
1356
+
1357
+ /**
1358
+ * Suggest using `toHaveBeenCalled`
1359
+ *
1360
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-have-been-called.md
1361
+ *
1362
+ * ```md
1363
+ * | key | value |
1364
+ * | :--------- | :--------- |
1365
+ * | type | suggestion |
1366
+ * | deprecated | false |
1367
+ * | fixable | code |
1368
+ * ```
1369
+ */
1370
+ namespace PreferToHaveBeenCalled {
1371
+ export type RuleEntry = Linter.StringSeverity;
1372
+ }
1373
+
1323
1374
  /**
1324
1375
  * Suggest using `toHaveLength()`
1325
1376
  *
1326
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-have-length.md
1377
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-to-have-length.md
1327
1378
  *
1328
1379
  * ```md
1329
1380
  * | key | value |
@@ -1340,7 +1391,7 @@ namespace PreferToHaveLength {
1340
1391
  /**
1341
1392
  * Suggest using `test.todo`
1342
1393
  *
1343
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-todo.md
1394
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/prefer-todo.md
1344
1395
  *
1345
1396
  * ```md
1346
1397
  * | key | value |
@@ -1357,7 +1408,7 @@ namespace PreferTodo {
1357
1408
  /**
1358
1409
  * Require setup and teardown code to be within a hook
1359
1410
  *
1360
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-hook.md
1411
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/require-hook.md
1361
1412
  *
1362
1413
  * ```md
1363
1414
  * | key | value |
@@ -1400,7 +1451,7 @@ namespace RequireHook {
1400
1451
  /**
1401
1452
  * Require a message for `toThrow()`
1402
1453
  *
1403
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-to-throw-message.md
1454
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/require-to-throw-message.md
1404
1455
  *
1405
1456
  * ```md
1406
1457
  * | key | value |
@@ -1416,7 +1467,7 @@ namespace RequireToThrowMessage {
1416
1467
  /**
1417
1468
  * Require test cases and hooks to be inside a `describe` block
1418
1469
  *
1419
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-top-level-describe.md
1470
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/require-top-level-describe.md
1420
1471
  *
1421
1472
  * ```md
1422
1473
  * | key | value |
@@ -1457,7 +1508,7 @@ namespace RequireTopLevelDescribe {
1457
1508
  /**
1458
1509
  * Enforce unbound methods are called with their expected scope
1459
1510
  *
1460
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/unbound-method.md
1511
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/unbound-method.md
1461
1512
  *
1462
1513
  * ```md
1463
1514
  * | key | value |
@@ -1501,7 +1552,7 @@ namespace UnboundMethod {
1501
1552
  /**
1502
1553
  * Enforce valid `describe()` callback
1503
1554
  *
1504
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-describe-callback.md
1555
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-describe-callback.md
1505
1556
  *
1506
1557
  * ```md
1507
1558
  * | key | value |
@@ -1517,7 +1568,7 @@ namespace ValidDescribeCallback {
1517
1568
  /**
1518
1569
  * Require promises that have expectations in their chain to be valid
1519
1570
  *
1520
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect-in-promise.md
1571
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-expect-in-promise.md
1521
1572
  *
1522
1573
  * ```md
1523
1574
  * | key | value |
@@ -1533,7 +1584,7 @@ namespace ValidExpectInPromise {
1533
1584
  /**
1534
1585
  * Enforce valid `expect()` usage
1535
1586
  *
1536
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect.md
1587
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-expect.md
1537
1588
  *
1538
1589
  * ```md
1539
1590
  * | key | value |
@@ -1593,7 +1644,7 @@ namespace ValidExpect {
1593
1644
  /**
1594
1645
  * Disallow mocking of non-existing module paths
1595
1646
  *
1596
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-mock-module-path.md
1647
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-mock-module-path.md
1597
1648
  *
1598
1649
  * ```md
1599
1650
  * | key | value |
@@ -1637,7 +1688,7 @@ namespace ValidMockModulePath {
1637
1688
  /**
1638
1689
  * Enforce valid titles
1639
1690
  *
1640
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-title.md
1691
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.5.0/docs/rules/valid-title.md
1641
1692
  *
1642
1693
  * ```md
1643
1694
  * | key | value |
@@ -1784,6 +1835,7 @@ export type EslintJestRules = Readonly<{
1784
1835
  'jest/no-standalone-expect': NoStandaloneExpect.RuleEntry;
1785
1836
  'jest/no-test-prefixes': NoTestPrefixes.RuleEntry;
1786
1837
  'jest/no-test-return-statement': NoTestReturnStatement.RuleEntry;
1838
+ 'jest/no-unneeded-async-expect-function': NoUnneededAsyncExpectFunction.RuleEntry;
1787
1839
  'jest/no-untyped-mock-factory': NoUntypedMockFactory.RuleEntry;
1788
1840
  'jest/padding-around-after-all-blocks': PaddingAroundAfterAllBlocks.RuleEntry;
1789
1841
  'jest/padding-around-after-each-blocks': PaddingAroundAfterEachBlocks.RuleEntry;
@@ -1811,6 +1863,8 @@ export type EslintJestRules = Readonly<{
1811
1863
  'jest/prefer-strict-equal': PreferStrictEqual.RuleEntry;
1812
1864
  'jest/prefer-to-be': PreferToBe.RuleEntry;
1813
1865
  'jest/prefer-to-contain': PreferToContain.RuleEntry;
1866
+ 'jest/prefer-to-have-been-called-times': PreferToHaveBeenCalledTimes.RuleEntry;
1867
+ 'jest/prefer-to-have-been-called': PreferToHaveBeenCalled.RuleEntry;
1814
1868
  'jest/prefer-to-have-length': PreferToHaveLength.RuleEntry;
1815
1869
  'jest/prefer-todo': PreferTodo.RuleEntry;
1816
1870
  'jest/require-hook': RequireHook.RuleEntry;
@@ -866,6 +866,22 @@ namespace PreferUserEvent {
866
866
  | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
867
867
  }
868
868
 
869
+ /**
870
+ * Suggest using userEvent with setup() instead of direct methods
871
+ *
872
+ * @link https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/prefer-user-event-setup.md
873
+ *
874
+ * ```md
875
+ * | key | value |
876
+ * | :--------- | :--------- |
877
+ * | type | suggestion |
878
+ * | deprecated | false |
879
+ * ```
880
+ */
881
+ namespace PreferUserEventSetup {
882
+ export type RuleEntry = Linter.StringSeverity;
883
+ }
884
+
869
885
  /**
870
886
  * Enforce a valid naming for return value from `render`
871
887
  *
@@ -910,6 +926,7 @@ export type EslintTestingLibraryRules = Readonly<{
910
926
  'testing-library/prefer-query-matchers': PreferQueryMatchers.RuleEntry;
911
927
  'testing-library/prefer-screen-queries': PreferScreenQueries.RuleEntry;
912
928
  'testing-library/prefer-user-event': PreferUserEvent.RuleEntry;
929
+ 'testing-library/prefer-user-event-setup': PreferUserEventSetup.RuleEntry;
913
930
  'testing-library/render-result-naming-convention': RenderResultNamingConvention.RuleEntry;
914
931
  }>;
915
932