eslint-config-typed 3.5.1 → 3.5.2
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.
- package/dist/rules/eslint-vitest-rules.d.mts +1 -0
- package/dist/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/dist/rules/eslint-vitest-rules.mjs +1 -0
- package/dist/rules/eslint-vitest-rules.mjs.map +1 -1
- package/dist/types/rules/eslint-jest-rules.d.mts +68 -63
- package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-rules.d.mts +32 -7
- package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/package.json +24 -24
- package/src/rules/eslint-vitest-rules.mts +1 -0
- package/src/types/rules/eslint-jest-rules.mts +68 -63
- package/src/types/rules/eslint-vitest-rules.mts +38 -7
|
@@ -81,6 +81,7 @@ export declare const eslintVitestRules: {
|
|
|
81
81
|
readonly 'vitest/require-mock-type-parameters': "off";
|
|
82
82
|
readonly 'vitest/valid-expect-in-promise': "error";
|
|
83
83
|
readonly 'vitest/warn-todo': "error";
|
|
84
|
+
readonly 'vitest/require-awaited-expect-poll': "error";
|
|
84
85
|
readonly 'vitest/no-done-callback': 0;
|
|
85
86
|
};
|
|
86
87
|
//# sourceMappingURL=eslint-vitest-rules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-vitest-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-vitest-rules.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"eslint-vitest-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-vitest-rules.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GQ,CAAC"}
|
|
@@ -1 +1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ptionsIfIsArray<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.0
|
|
6
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
54
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
99
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
135
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
171
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
187
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
202
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
217
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
232
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
247
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
263
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
278
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
294
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
309
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
324
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
340
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
381
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
396
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
411
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
427
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
473
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
488
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
521
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
554
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
592
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
608
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
623
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
639
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
655
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
671
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
687
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
703
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
719
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
735
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
751
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
767
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
782
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
798
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
813
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
858
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
874
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
918
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
934
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
949
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
964
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
1011
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/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.0
|
|
1027
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-lowercase-title.md
|
|
1028
1028
|
*
|
|
1029
1029
|
* ```md
|
|
1030
1030
|
* | key | value |
|
|
@@ -1065,6 +1065,10 @@ declare namespace PreferLowercaseTitle {
|
|
|
1065
1065
|
* "ignoreTopLevelDescribe": {
|
|
1066
1066
|
* "type": "boolean",
|
|
1067
1067
|
* "default": false
|
|
1068
|
+
* },
|
|
1069
|
+
* "ignoreTodos": {
|
|
1070
|
+
* "type": "boolean",
|
|
1071
|
+
* "default": false
|
|
1068
1072
|
* }
|
|
1069
1073
|
* },
|
|
1070
1074
|
* "additionalProperties": false
|
|
@@ -1076,13 +1080,14 @@ declare namespace PreferLowercaseTitle {
|
|
|
1076
1080
|
readonly ignore?: readonly ('describe' | 'it' | 'test')[];
|
|
1077
1081
|
readonly allowedPrefixes?: readonly string[];
|
|
1078
1082
|
readonly ignoreTopLevelDescribe?: boolean;
|
|
1083
|
+
readonly ignoreTodos?: boolean;
|
|
1079
1084
|
};
|
|
1080
1085
|
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
|
|
1081
1086
|
}
|
|
1082
1087
|
/**
|
|
1083
1088
|
* Prefer mock resolved/rejected shorthands for promises
|
|
1084
1089
|
*
|
|
1085
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1090
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-mock-promise-shorthand.md
|
|
1086
1091
|
*
|
|
1087
1092
|
* ```md
|
|
1088
1093
|
* | key | value |
|
|
@@ -1098,7 +1103,7 @@ declare namespace PreferMockPromiseShorthand {
|
|
|
1098
1103
|
/**
|
|
1099
1104
|
* Prefer including a hint with external snapshots
|
|
1100
1105
|
*
|
|
1101
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1106
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-snapshot-hint.md
|
|
1102
1107
|
*
|
|
1103
1108
|
* ```md
|
|
1104
1109
|
* | key | value |
|
|
@@ -1129,7 +1134,7 @@ declare namespace PreferSnapshotHint {
|
|
|
1129
1134
|
/**
|
|
1130
1135
|
* Suggest using `jest.spyOn()`
|
|
1131
1136
|
*
|
|
1132
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1137
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-spy-on.md
|
|
1133
1138
|
*
|
|
1134
1139
|
* ```md
|
|
1135
1140
|
* | key | value |
|
|
@@ -1145,7 +1150,7 @@ declare namespace PreferSpyOn {
|
|
|
1145
1150
|
/**
|
|
1146
1151
|
* Suggest using `toStrictEqual()`
|
|
1147
1152
|
*
|
|
1148
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1153
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-strict-equal.md
|
|
1149
1154
|
*
|
|
1150
1155
|
* ```md
|
|
1151
1156
|
* | key | value |
|
|
@@ -1161,7 +1166,7 @@ declare namespace PreferStrictEqual {
|
|
|
1161
1166
|
/**
|
|
1162
1167
|
* Suggest using `toBe()` for primitive literals
|
|
1163
1168
|
*
|
|
1164
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1169
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-to-be.md
|
|
1165
1170
|
*
|
|
1166
1171
|
* ```md
|
|
1167
1172
|
* | key | value |
|
|
@@ -1177,7 +1182,7 @@ declare namespace PreferToBe {
|
|
|
1177
1182
|
/**
|
|
1178
1183
|
* Suggest using `toContain()`
|
|
1179
1184
|
*
|
|
1180
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1185
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-to-contain.md
|
|
1181
1186
|
*
|
|
1182
1187
|
* ```md
|
|
1183
1188
|
* | key | value |
|
|
@@ -1193,7 +1198,7 @@ declare namespace PreferToContain {
|
|
|
1193
1198
|
/**
|
|
1194
1199
|
* Suggest using `toHaveLength()`
|
|
1195
1200
|
*
|
|
1196
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1201
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-to-have-length.md
|
|
1197
1202
|
*
|
|
1198
1203
|
* ```md
|
|
1199
1204
|
* | key | value |
|
|
@@ -1209,7 +1214,7 @@ declare namespace PreferToHaveLength {
|
|
|
1209
1214
|
/**
|
|
1210
1215
|
* Suggest using `test.todo`
|
|
1211
1216
|
*
|
|
1212
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1217
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/prefer-todo.md
|
|
1213
1218
|
*
|
|
1214
1219
|
* ```md
|
|
1215
1220
|
* | key | value |
|
|
@@ -1225,7 +1230,7 @@ declare namespace PreferTodo {
|
|
|
1225
1230
|
/**
|
|
1226
1231
|
* Require setup and teardown code to be within a hook
|
|
1227
1232
|
*
|
|
1228
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1233
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/require-hook.md
|
|
1229
1234
|
*
|
|
1230
1235
|
* ```md
|
|
1231
1236
|
* | key | value |
|
|
@@ -1263,7 +1268,7 @@ declare namespace RequireHook {
|
|
|
1263
1268
|
/**
|
|
1264
1269
|
* Require a message for `toThrow()`
|
|
1265
1270
|
*
|
|
1266
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1271
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/require-to-throw-message.md
|
|
1267
1272
|
*
|
|
1268
1273
|
* ```md
|
|
1269
1274
|
* | key | value |
|
|
@@ -1278,7 +1283,7 @@ declare namespace RequireToThrowMessage {
|
|
|
1278
1283
|
/**
|
|
1279
1284
|
* Require test cases and hooks to be inside a `describe` block
|
|
1280
1285
|
*
|
|
1281
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1286
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/require-top-level-describe.md
|
|
1282
1287
|
*
|
|
1283
1288
|
* ```md
|
|
1284
1289
|
* | key | value |
|
|
@@ -1314,7 +1319,7 @@ declare namespace RequireTopLevelDescribe {
|
|
|
1314
1319
|
/**
|
|
1315
1320
|
* Enforce unbound methods are called with their expected scope
|
|
1316
1321
|
*
|
|
1317
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1322
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/unbound-method.md
|
|
1318
1323
|
*
|
|
1319
1324
|
* ```md
|
|
1320
1325
|
* | key | value |
|
|
@@ -1353,7 +1358,7 @@ declare namespace UnboundMethod {
|
|
|
1353
1358
|
/**
|
|
1354
1359
|
* Enforce valid `describe()` callback
|
|
1355
1360
|
*
|
|
1356
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1361
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-describe-callback.md
|
|
1357
1362
|
*
|
|
1358
1363
|
* ```md
|
|
1359
1364
|
* | key | value |
|
|
@@ -1368,7 +1373,7 @@ declare namespace ValidDescribeCallback {
|
|
|
1368
1373
|
/**
|
|
1369
1374
|
* Require promises that have expectations in their chain to be valid
|
|
1370
1375
|
*
|
|
1371
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1376
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-expect-in-promise.md
|
|
1372
1377
|
*
|
|
1373
1378
|
* ```md
|
|
1374
1379
|
* | key | value |
|
|
@@ -1383,7 +1388,7 @@ declare namespace ValidExpectInPromise {
|
|
|
1383
1388
|
/**
|
|
1384
1389
|
* Enforce valid `expect()` usage
|
|
1385
1390
|
*
|
|
1386
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1391
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-expect.md
|
|
1387
1392
|
*
|
|
1388
1393
|
* ```md
|
|
1389
1394
|
* | key | value |
|
|
@@ -1437,7 +1442,7 @@ declare namespace ValidExpect {
|
|
|
1437
1442
|
/**
|
|
1438
1443
|
* Enforce valid titles
|
|
1439
1444
|
*
|
|
1440
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.0
|
|
1445
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.1.0/docs/rules/valid-title.md
|
|
1441
1446
|
*
|
|
1442
1447
|
* ```md
|
|
1443
1448
|
* | key | value |
|