eslint-config-typed 3.13.7 → 3.14.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 (66) hide show
  1. package/dist/plugins/react-coding-style/rules/use-memo-hooks-style.mjs +2 -1
  2. package/dist/plugins/react-coding-style/rules/use-memo-hooks-style.mjs.map +1 -1
  3. package/dist/plugins/vitest-coding-style/rules/no-expect-to-strict-equal.mjs +2 -2
  4. package/dist/plugins/vitest-coding-style/rules/no-expect-to-strict-equal.mjs.map +1 -1
  5. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-assert-is-not-ok.d.mts +6 -0
  6. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-assert-is-not-ok.d.mts.map +1 -0
  7. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-assert-is-not-ok.mjs +35 -0
  8. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-assert-is-not-ok.mjs.map +1 -0
  9. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-expect-false.d.mts +6 -0
  10. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-expect-false.d.mts.map +1 -0
  11. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-expect-false.mjs +54 -0
  12. package/dist/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-expect-false.mjs.map +1 -0
  13. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-assert-ok.d.mts +6 -0
  14. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-assert-ok.d.mts.map +1 -0
  15. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-assert-ok.mjs +35 -0
  16. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-assert-ok.mjs.map +1 -0
  17. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-expect-true.d.mts +6 -0
  18. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-expect-true.d.mts.map +1 -0
  19. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-expect-true.mjs +54 -0
  20. package/dist/plugins/vitest-coding-style/rules/prefer-assert-over-expect-true.mjs.map +1 -0
  21. package/dist/plugins/vitest-coding-style/rules/rules.d.mts +4 -0
  22. package/dist/plugins/vitest-coding-style/rules/rules.d.mts.map +1 -1
  23. package/dist/plugins/vitest-coding-style/rules/rules.mjs +8 -0
  24. package/dist/plugins/vitest-coding-style/rules/rules.mjs.map +1 -1
  25. package/dist/rules/eslint-jest-rules.d.mts +1 -0
  26. package/dist/rules/eslint-jest-rules.d.mts.map +1 -1
  27. package/dist/rules/eslint-jest-rules.mjs +1 -0
  28. package/dist/rules/eslint-jest-rules.mjs.map +1 -1
  29. package/dist/rules/eslint-vitest-coding-style-rules.d.mts +4 -0
  30. package/dist/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
  31. package/dist/rules/eslint-vitest-coding-style-rules.mjs +4 -0
  32. package/dist/rules/eslint-vitest-coding-style-rules.mjs.map +1 -1
  33. package/dist/rules/eslint-vitest-rules.d.mts +7 -0
  34. package/dist/rules/eslint-vitest-rules.d.mts.map +1 -1
  35. package/dist/rules/eslint-vitest-rules.mjs +10 -0
  36. package/dist/rules/eslint-vitest-rules.mjs.map +1 -1
  37. package/dist/types/rules/eslint-jest-rules.d.mts +104 -63
  38. package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
  39. package/dist/types/rules/eslint-react-rules.d.mts +1 -1
  40. package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
  41. package/dist/types/rules/eslint-rules.d.mts +4 -4
  42. package/dist/types/rules/eslint-rules.d.mts.map +1 -1
  43. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts +62 -1
  44. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
  45. package/dist/types/rules/eslint-vitest-rules.d.mts +86 -1
  46. package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
  47. package/dist/types/rules/typescript-eslint-rules.d.mts +1 -1
  48. package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
  49. package/package.json +19 -19
  50. package/src/plugins/react-coding-style/rules/use-memo-hooks-style.mts +2 -1
  51. package/src/plugins/vitest-coding-style/rules/no-expect-to-strict-equal.mts +2 -2
  52. package/src/plugins/vitest-coding-style/rules/prefer-assert-coding-style-rules.test.mts +95 -0
  53. package/src/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-assert-is-not-ok.mts +42 -0
  54. package/src/plugins/vitest-coding-style/rules/prefer-assert-not-ok-over-expect-false.mts +74 -0
  55. package/src/plugins/vitest-coding-style/rules/prefer-assert-over-assert-ok.mts +42 -0
  56. package/src/plugins/vitest-coding-style/rules/prefer-assert-over-expect-true.mts +74 -0
  57. package/src/plugins/vitest-coding-style/rules/rules.mts +12 -0
  58. package/src/rules/eslint-jest-rules.mts +2 -0
  59. package/src/rules/eslint-vitest-coding-style-rules.mts +4 -0
  60. package/src/rules/eslint-vitest-rules.mts +11 -0
  61. package/src/types/rules/eslint-jest-rules.mts +109 -63
  62. package/src/types/rules/eslint-react-rules.mts +0 -1
  63. package/src/types/rules/eslint-rules.mts +0 -4
  64. package/src/types/rules/eslint-vitest-coding-style-rules.mts +66 -1
  65. package/src/types/rules/eslint-vitest-rules.mts +92 -1
  66. package/src/types/rules/typescript-eslint-rules.mts +0 -1
@@ -3,7 +3,7 @@ type SpreadOptionsIfIsArray<T extends readonly [Linter.StringSeverity, unknown]>
3
3
  /**
4
4
  * Enforce `test` and `it` usage conventions
5
5
  *
6
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/consistent-test-it.md
6
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/consistent-test-it.md
7
7
  *
8
8
  * ```md
9
9
  * | key | value |
@@ -51,7 +51,7 @@ declare namespace ConsistentTestIt {
51
51
  /**
52
52
  * Enforce assertion to be made in a test body
53
53
  *
54
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/expect-expect.md
54
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/expect-expect.md
55
55
  *
56
56
  * ```md
57
57
  * | key | value |
@@ -96,7 +96,7 @@ declare namespace ExpectExpect {
96
96
  /**
97
97
  * Enforces a maximum number assertion calls in a test body
98
98
  *
99
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/max-expects.md
99
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-expects.md
100
100
  *
101
101
  * ```md
102
102
  * | key | value |
@@ -132,7 +132,7 @@ declare namespace MaxExpects {
132
132
  /**
133
133
  * Enforces a maximum depth to nested describe calls
134
134
  *
135
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/max-nested-describe.md
135
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/max-nested-describe.md
136
136
  *
137
137
  * ```md
138
138
  * | key | value |
@@ -168,7 +168,7 @@ declare namespace MaxNestedDescribe {
168
168
  /**
169
169
  * Disallow alias methods
170
170
  *
171
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-alias-methods.md
171
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-alias-methods.md
172
172
  *
173
173
  * ```md
174
174
  * | key | value |
@@ -184,7 +184,7 @@ declare namespace NoAliasMethods {
184
184
  /**
185
185
  * Disallow commented out tests
186
186
  *
187
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-commented-out-tests.md
187
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-commented-out-tests.md
188
188
  *
189
189
  * ```md
190
190
  * | key | value |
@@ -199,7 +199,7 @@ declare namespace NoCommentedOutTests {
199
199
  /**
200
200
  * Disallow calling `expect` conditionally
201
201
  *
202
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-conditional-expect.md
202
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-expect.md
203
203
  *
204
204
  * ```md
205
205
  * | key | value |
@@ -214,7 +214,7 @@ declare namespace NoConditionalExpect {
214
214
  /**
215
215
  * Disallow conditional logic in tests
216
216
  *
217
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-conditional-in-test.md
217
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-conditional-in-test.md
218
218
  *
219
219
  * ```md
220
220
  * | key | value |
@@ -229,7 +229,7 @@ declare namespace NoConditionalInTest {
229
229
  /**
230
230
  * Disallow confusing usages of jest.setTimeout
231
231
  *
232
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-confusing-set-timeout.md
232
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-confusing-set-timeout.md
233
233
  *
234
234
  * ```md
235
235
  * | key | value |
@@ -244,7 +244,7 @@ declare namespace NoConfusingSetTimeout {
244
244
  /**
245
245
  * Disallow use of deprecated functions
246
246
  *
247
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-deprecated-functions.md
247
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-deprecated-functions.md
248
248
  *
249
249
  * ```md
250
250
  * | key | value |
@@ -260,7 +260,7 @@ declare namespace NoDeprecatedFunctions {
260
260
  /**
261
261
  * Disallow disabled tests
262
262
  *
263
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-disabled-tests.md
263
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-disabled-tests.md
264
264
  *
265
265
  * ```md
266
266
  * | key | value |
@@ -275,7 +275,7 @@ declare namespace NoDisabledTests {
275
275
  /**
276
276
  * Disallow using a callback in asynchronous tests and hooks
277
277
  *
278
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-done-callback.md
278
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-done-callback.md
279
279
  *
280
280
  * ```md
281
281
  * | key | value |
@@ -291,7 +291,7 @@ declare namespace NoDoneCallback {
291
291
  /**
292
292
  * Disallow duplicate setup and teardown hooks
293
293
  *
294
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-duplicate-hooks.md
294
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-duplicate-hooks.md
295
295
  *
296
296
  * ```md
297
297
  * | key | value |
@@ -306,7 +306,7 @@ declare namespace NoDuplicateHooks {
306
306
  /**
307
307
  * Disallow using `exports` in files containing tests
308
308
  *
309
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-export.md
309
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-export.md
310
310
  *
311
311
  * ```md
312
312
  * | key | value |
@@ -321,7 +321,7 @@ declare namespace NoExport {
321
321
  /**
322
322
  * Disallow focused tests
323
323
  *
324
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-focused-tests.md
324
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-focused-tests.md
325
325
  *
326
326
  * ```md
327
327
  * | key | value |
@@ -337,7 +337,7 @@ declare namespace NoFocusedTests {
337
337
  /**
338
338
  * Disallow setup and teardown hooks
339
339
  *
340
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-hooks.md
340
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-hooks.md
341
341
  *
342
342
  * ```md
343
343
  * | key | value |
@@ -378,7 +378,7 @@ declare namespace NoHooks {
378
378
  /**
379
379
  * Disallow identical titles
380
380
  *
381
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-identical-title.md
381
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-identical-title.md
382
382
  *
383
383
  * ```md
384
384
  * | key | value |
@@ -393,7 +393,7 @@ declare namespace NoIdenticalTitle {
393
393
  /**
394
394
  * Disallow string interpolation inside snapshots
395
395
  *
396
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-interpolation-in-snapshots.md
396
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-interpolation-in-snapshots.md
397
397
  *
398
398
  * ```md
399
399
  * | key | value |
@@ -408,7 +408,7 @@ declare namespace NoInterpolationInSnapshots {
408
408
  /**
409
409
  * Disallow Jasmine globals
410
410
  *
411
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-jasmine-globals.md
411
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-jasmine-globals.md
412
412
  *
413
413
  * ```md
414
414
  * | key | value |
@@ -424,7 +424,7 @@ declare namespace NoJasmineGlobals {
424
424
  /**
425
425
  * Disallow large snapshots
426
426
  *
427
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-large-snapshots.md
427
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-large-snapshots.md
428
428
  *
429
429
  * ```md
430
430
  * | key | value |
@@ -470,7 +470,7 @@ declare namespace NoLargeSnapshots {
470
470
  /**
471
471
  * Disallow manually importing from `__mocks__`
472
472
  *
473
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-mocks-import.md
473
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-mocks-import.md
474
474
  *
475
475
  * ```md
476
476
  * | key | value |
@@ -485,7 +485,7 @@ declare namespace NoMocksImport {
485
485
  /**
486
486
  * Disallow specific `jest.` methods
487
487
  *
488
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-restricted-jest-methods.md
488
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-jest-methods.md
489
489
  *
490
490
  * ```md
491
491
  * | key | value |
@@ -518,7 +518,7 @@ declare namespace NoRestrictedJestMethods {
518
518
  /**
519
519
  * Disallow specific matchers & modifiers
520
520
  *
521
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-restricted-matchers.md
521
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-restricted-matchers.md
522
522
  *
523
523
  * ```md
524
524
  * | key | value |
@@ -551,7 +551,7 @@ declare namespace NoRestrictedMatchers {
551
551
  /**
552
552
  * Disallow using `expect` outside of `it` or `test` blocks
553
553
  *
554
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-standalone-expect.md
554
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-standalone-expect.md
555
555
  *
556
556
  * ```md
557
557
  * | key | value |
@@ -589,7 +589,7 @@ declare namespace NoStandaloneExpect {
589
589
  /**
590
590
  * Require using `.only` and `.skip` over `f` and `x`
591
591
  *
592
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-test-prefixes.md
592
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-prefixes.md
593
593
  *
594
594
  * ```md
595
595
  * | key | value |
@@ -605,7 +605,7 @@ declare namespace NoTestPrefixes {
605
605
  /**
606
606
  * Disallow explicitly returning from tests
607
607
  *
608
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-test-return-statement.md
608
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-test-return-statement.md
609
609
  *
610
610
  * ```md
611
611
  * | key | value |
@@ -620,7 +620,7 @@ declare namespace NoTestReturnStatement {
620
620
  /**
621
621
  * Disallow using `jest.mock()` factories without an explicit type parameter
622
622
  *
623
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/no-untyped-mock-factory.md
623
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/no-untyped-mock-factory.md
624
624
  *
625
625
  * ```md
626
626
  * | key | value |
@@ -636,7 +636,7 @@ declare namespace NoUntypedMockFactory {
636
636
  /**
637
637
  * Enforce padding around `afterAll` blocks
638
638
  *
639
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-after-all-blocks.md
639
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-all-blocks.md
640
640
  *
641
641
  * ```md
642
642
  * | key | value |
@@ -652,7 +652,7 @@ declare namespace PaddingAroundAfterAllBlocks {
652
652
  /**
653
653
  * Enforce padding around `afterEach` blocks
654
654
  *
655
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-after-each-blocks.md
655
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-after-each-blocks.md
656
656
  *
657
657
  * ```md
658
658
  * | key | value |
@@ -668,7 +668,7 @@ declare namespace PaddingAroundAfterEachBlocks {
668
668
  /**
669
669
  * Enforce padding around Jest functions
670
670
  *
671
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-all.md
671
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-all.md
672
672
  *
673
673
  * ```md
674
674
  * | key | value |
@@ -684,7 +684,7 @@ declare namespace PaddingAroundAll {
684
684
  /**
685
685
  * Enforce padding around `beforeAll` blocks
686
686
  *
687
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-before-all-blocks.md
687
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-all-blocks.md
688
688
  *
689
689
  * ```md
690
690
  * | key | value |
@@ -700,7 +700,7 @@ declare namespace PaddingAroundBeforeAllBlocks {
700
700
  /**
701
701
  * Enforce padding around `beforeEach` blocks
702
702
  *
703
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-before-each-blocks.md
703
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-before-each-blocks.md
704
704
  *
705
705
  * ```md
706
706
  * | key | value |
@@ -716,7 +716,7 @@ declare namespace PaddingAroundBeforeEachBlocks {
716
716
  /**
717
717
  * Enforce padding around `describe` blocks
718
718
  *
719
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-describe-blocks.md
719
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-describe-blocks.md
720
720
  *
721
721
  * ```md
722
722
  * | key | value |
@@ -732,7 +732,7 @@ declare namespace PaddingAroundDescribeBlocks {
732
732
  /**
733
733
  * Enforce padding around `expect` groups
734
734
  *
735
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-expect-groups.md
735
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-expect-groups.md
736
736
  *
737
737
  * ```md
738
738
  * | key | value |
@@ -748,7 +748,7 @@ declare namespace PaddingAroundExpectGroups {
748
748
  /**
749
749
  * Enforce padding around `test` and `it` blocks
750
750
  *
751
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/padding-around-test-blocks.md
751
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/padding-around-test-blocks.md
752
752
  *
753
753
  * ```md
754
754
  * | key | value |
@@ -764,7 +764,7 @@ declare namespace PaddingAroundTestBlocks {
764
764
  /**
765
765
  * Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
766
766
  *
767
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-called-with.md
767
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-called-with.md
768
768
  *
769
769
  * ```md
770
770
  * | key | value |
@@ -779,7 +779,7 @@ declare namespace PreferCalledWith {
779
779
  /**
780
780
  * Suggest using the built-in comparison matchers
781
781
  *
782
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-comparison-matcher.md
782
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-comparison-matcher.md
783
783
  *
784
784
  * ```md
785
785
  * | key | value |
@@ -795,7 +795,7 @@ declare namespace PreferComparisonMatcher {
795
795
  /**
796
796
  * Prefer using `.each` rather than manual loops
797
797
  *
798
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-each.md
798
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-each.md
799
799
  *
800
800
  * ```md
801
801
  * | key | value |
@@ -810,7 +810,7 @@ declare namespace PreferEach {
810
810
  /**
811
811
  * Prefer having the last statement in a test be an assertion
812
812
  *
813
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-ending-with-an-expect.md
813
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-ending-with-an-expect.md
814
814
  *
815
815
  * ```md
816
816
  * | key | value |
@@ -855,7 +855,7 @@ declare namespace PreferEndingWithAnExpect {
855
855
  /**
856
856
  * Suggest using the built-in equality matchers
857
857
  *
858
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-equality-matcher.md
858
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-equality-matcher.md
859
859
  *
860
860
  * ```md
861
861
  * | key | value |
@@ -871,7 +871,7 @@ declare namespace PreferEqualityMatcher {
871
871
  /**
872
872
  * Suggest using `expect.assertions()` OR `expect.hasAssertions()`
873
873
  *
874
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-expect-assertions.md
874
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-assertions.md
875
875
  *
876
876
  * ```md
877
877
  * | key | value |
@@ -915,7 +915,7 @@ declare namespace PreferExpectAssertions {
915
915
  /**
916
916
  * Prefer `await expect(...).resolves` over `expect(await ...)` syntax
917
917
  *
918
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-expect-resolves.md
918
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-expect-resolves.md
919
919
  *
920
920
  * ```md
921
921
  * | key | value |
@@ -931,7 +931,7 @@ declare namespace PreferExpectResolves {
931
931
  /**
932
932
  * Prefer having hooks in a consistent order
933
933
  *
934
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-hooks-in-order.md
934
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-in-order.md
935
935
  *
936
936
  * ```md
937
937
  * | key | value |
@@ -946,7 +946,7 @@ declare namespace PreferHooksInOrder {
946
946
  /**
947
947
  * Suggest having hooks before any test cases
948
948
  *
949
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-hooks-on-top.md
949
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-hooks-on-top.md
950
950
  *
951
951
  * ```md
952
952
  * | key | value |
@@ -961,7 +961,7 @@ declare namespace PreferHooksOnTop {
961
961
  /**
962
962
  * Prefer importing Jest globals
963
963
  *
964
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-importing-jest-globals.md
964
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-importing-jest-globals.md
965
965
  *
966
966
  * ```md
967
967
  * | key | value |
@@ -1008,7 +1008,7 @@ declare namespace PreferImportingJestGlobals {
1008
1008
  /**
1009
1009
  * Prefer `jest.mocked()` over `fn as jest.Mock`
1010
1010
  *
1011
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-jest-mocked.md
1011
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-jest-mocked.md
1012
1012
  *
1013
1013
  * ```md
1014
1014
  * | key | value |
@@ -1024,7 +1024,7 @@ declare namespace PreferJestMocked {
1024
1024
  /**
1025
1025
  * Enforce lowercase test names
1026
1026
  *
1027
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-lowercase-title.md
1027
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-lowercase-title.md
1028
1028
  *
1029
1029
  * ```md
1030
1030
  * | key | value |
@@ -1089,7 +1089,7 @@ declare namespace PreferLowercaseTitle {
1089
1089
  /**
1090
1090
  * Prefer mock resolved/rejected shorthands for promises
1091
1091
  *
1092
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-mock-promise-shorthand.md
1092
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-mock-promise-shorthand.md
1093
1093
  *
1094
1094
  * ```md
1095
1095
  * | key | value |
@@ -1105,7 +1105,7 @@ declare namespace PreferMockPromiseShorthand {
1105
1105
  /**
1106
1106
  * Prefer including a hint with external snapshots
1107
1107
  *
1108
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-snapshot-hint.md
1108
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-snapshot-hint.md
1109
1109
  *
1110
1110
  * ```md
1111
1111
  * | key | value |
@@ -1136,7 +1136,7 @@ declare namespace PreferSnapshotHint {
1136
1136
  /**
1137
1137
  * Suggest using `jest.spyOn()`
1138
1138
  *
1139
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-spy-on.md
1139
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-spy-on.md
1140
1140
  *
1141
1141
  * ```md
1142
1142
  * | key | value |
@@ -1152,7 +1152,7 @@ declare namespace PreferSpyOn {
1152
1152
  /**
1153
1153
  * Suggest using `toStrictEqual()`
1154
1154
  *
1155
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-strict-equal.md
1155
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-strict-equal.md
1156
1156
  *
1157
1157
  * ```md
1158
1158
  * | key | value |
@@ -1168,7 +1168,7 @@ declare namespace PreferStrictEqual {
1168
1168
  /**
1169
1169
  * Suggest using `toBe()` for primitive literals
1170
1170
  *
1171
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-to-be.md
1171
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-be.md
1172
1172
  *
1173
1173
  * ```md
1174
1174
  * | key | value |
@@ -1184,7 +1184,7 @@ declare namespace PreferToBe {
1184
1184
  /**
1185
1185
  * Suggest using `toContain()`
1186
1186
  *
1187
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-to-contain.md
1187
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-contain.md
1188
1188
  *
1189
1189
  * ```md
1190
1190
  * | key | value |
@@ -1200,7 +1200,7 @@ declare namespace PreferToContain {
1200
1200
  /**
1201
1201
  * Suggest using `toHaveLength()`
1202
1202
  *
1203
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-to-have-length.md
1203
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-to-have-length.md
1204
1204
  *
1205
1205
  * ```md
1206
1206
  * | key | value |
@@ -1216,7 +1216,7 @@ declare namespace PreferToHaveLength {
1216
1216
  /**
1217
1217
  * Suggest using `test.todo`
1218
1218
  *
1219
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-todo.md
1219
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/prefer-todo.md
1220
1220
  *
1221
1221
  * ```md
1222
1222
  * | key | value |
@@ -1232,7 +1232,7 @@ declare namespace PreferTodo {
1232
1232
  /**
1233
1233
  * Require setup and teardown code to be within a hook
1234
1234
  *
1235
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/require-hook.md
1235
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-hook.md
1236
1236
  *
1237
1237
  * ```md
1238
1238
  * | key | value |
@@ -1270,7 +1270,7 @@ declare namespace RequireHook {
1270
1270
  /**
1271
1271
  * Require a message for `toThrow()`
1272
1272
  *
1273
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/require-to-throw-message.md
1273
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-to-throw-message.md
1274
1274
  *
1275
1275
  * ```md
1276
1276
  * | key | value |
@@ -1285,7 +1285,7 @@ declare namespace RequireToThrowMessage {
1285
1285
  /**
1286
1286
  * Require test cases and hooks to be inside a `describe` block
1287
1287
  *
1288
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/require-top-level-describe.md
1288
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/require-top-level-describe.md
1289
1289
  *
1290
1290
  * ```md
1291
1291
  * | key | value |
@@ -1321,7 +1321,7 @@ declare namespace RequireTopLevelDescribe {
1321
1321
  /**
1322
1322
  * Enforce unbound methods are called with their expected scope
1323
1323
  *
1324
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/unbound-method.md
1324
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/unbound-method.md
1325
1325
  *
1326
1326
  * ```md
1327
1327
  * | key | value |
@@ -1360,7 +1360,7 @@ declare namespace UnboundMethod {
1360
1360
  /**
1361
1361
  * Enforce valid `describe()` callback
1362
1362
  *
1363
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-describe-callback.md
1363
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-describe-callback.md
1364
1364
  *
1365
1365
  * ```md
1366
1366
  * | key | value |
@@ -1375,7 +1375,7 @@ declare namespace ValidDescribeCallback {
1375
1375
  /**
1376
1376
  * Require promises that have expectations in their chain to be valid
1377
1377
  *
1378
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-expect-in-promise.md
1378
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect-in-promise.md
1379
1379
  *
1380
1380
  * ```md
1381
1381
  * | key | value |
@@ -1390,7 +1390,7 @@ declare namespace ValidExpectInPromise {
1390
1390
  /**
1391
1391
  * Enforce valid `expect()` usage
1392
1392
  *
1393
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-expect.md
1393
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-expect.md
1394
1394
  *
1395
1395
  * ```md
1396
1396
  * | key | value |
@@ -1442,10 +1442,49 @@ declare namespace ValidExpect {
1442
1442
  }>;
1443
1443
  type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1444
1444
  }
1445
+ /**
1446
+ * Disallow mocking of non-existing module paths
1447
+ *
1448
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-mock-module-path.md
1449
+ *
1450
+ * ```md
1451
+ * | key | value |
1452
+ * | :--------- | :------ |
1453
+ * | type | problem |
1454
+ * | deprecated | false |
1455
+ * ```
1456
+ */
1457
+ declare namespace ValidMockModulePath {
1458
+ /**
1459
+ * ### schema
1460
+ *
1461
+ * ```json
1462
+ * [
1463
+ * {
1464
+ * "type": "object",
1465
+ * "properties": {
1466
+ * "moduleFileExtensions": {
1467
+ * "type": "array",
1468
+ * "items": {
1469
+ * "type": "string"
1470
+ * },
1471
+ * "additionalItems": false
1472
+ * }
1473
+ * },
1474
+ * "additionalProperties": false
1475
+ * }
1476
+ * ]
1477
+ * ```
1478
+ */
1479
+ type Options = Readonly<{
1480
+ moduleFileExtensions?: readonly string[];
1481
+ }>;
1482
+ type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1483
+ }
1445
1484
  /**
1446
1485
  * Enforce valid titles
1447
1486
  *
1448
- * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-title.md
1487
+ * @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.2.1/docs/rules/valid-title.md
1449
1488
  *
1450
1489
  * ```md
1451
1490
  * | key | value |
@@ -1614,6 +1653,7 @@ export type EslintJestRules = Readonly<{
1614
1653
  'jest/valid-describe-callback': ValidDescribeCallback.RuleEntry;
1615
1654
  'jest/valid-expect-in-promise': ValidExpectInPromise.RuleEntry;
1616
1655
  'jest/valid-expect': ValidExpect.RuleEntry;
1656
+ 'jest/valid-mock-module-path': ValidMockModulePath.RuleEntry;
1617
1657
  'jest/valid-title': ValidTitle.RuleEntry;
1618
1658
  }>;
1619
1659
  export type EslintJestRulesOption = Readonly<{
@@ -1635,6 +1675,7 @@ export type EslintJestRulesOption = Readonly<{
1635
1675
  'jest/require-top-level-describe': RequireTopLevelDescribe.Options;
1636
1676
  'jest/unbound-method': UnboundMethod.Options;
1637
1677
  'jest/valid-expect': ValidExpect.Options;
1678
+ 'jest/valid-mock-module-path': ValidMockModulePath.Options;
1638
1679
  'jest/valid-title': ValidTitle.Options;
1639
1680
  }>;
1640
1681
  export {};