eslint-config-typed 5.11.2 → 5.11.3
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.
|
@@ -3,7 +3,7 @@ import { type FixedLengthTuple, type ReadonlyRecord } from 'ts-type-forge';
|
|
|
3
3
|
type SpreadOptionsIfIsArray<T extends readonly [Linter.StringSeverity, unknown]> = T[1] extends readonly unknown[] ? readonly [Linter.StringSeverity, ...T[1]] : T;
|
|
4
4
|
/**
|
|
5
5
|
* @description Enforce `test` and `it` usage conventions
|
|
6
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
6
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/consistent-test-it.md
|
|
7
7
|
*
|
|
8
8
|
* ```md
|
|
9
9
|
* | key | value |
|
|
@@ -50,7 +50,7 @@ declare namespace ConsistentTestIt {
|
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* @description Enforce assertion to be made in a test body
|
|
53
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
53
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/expect-expect.md
|
|
54
54
|
*
|
|
55
55
|
* ```md
|
|
56
56
|
* | key | value |
|
|
@@ -94,7 +94,7 @@ declare namespace ExpectExpect {
|
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* @description Enforces a maximum number assertion calls in a test body
|
|
97
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
97
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/max-expects.md
|
|
98
98
|
*
|
|
99
99
|
* ```md
|
|
100
100
|
* | key | value |
|
|
@@ -129,7 +129,7 @@ declare namespace MaxExpects {
|
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* @description Enforces a maximum depth to nested describe calls
|
|
132
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
132
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/max-nested-describe.md
|
|
133
133
|
*
|
|
134
134
|
* ```md
|
|
135
135
|
* | key | value |
|
|
@@ -164,7 +164,7 @@ declare namespace MaxNestedDescribe {
|
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* @description Disallow alias methods
|
|
167
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
167
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-alias-methods.md
|
|
168
168
|
*
|
|
169
169
|
* ```md
|
|
170
170
|
* | key | value |
|
|
@@ -179,7 +179,7 @@ declare namespace NoAliasMethods {
|
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* @description Disallow commented out tests
|
|
182
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
182
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-commented-out-tests.md
|
|
183
183
|
*
|
|
184
184
|
* ```md
|
|
185
185
|
* | key | value |
|
|
@@ -193,7 +193,7 @@ declare namespace NoCommentedOutTests {
|
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
195
|
* @description Disallow calling `expect` conditionally
|
|
196
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
196
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-conditional-expect.md
|
|
197
197
|
*
|
|
198
198
|
* ```md
|
|
199
199
|
* | key | value |
|
|
@@ -207,7 +207,7 @@ declare namespace NoConditionalExpect {
|
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
209
|
* @description Disallow conditional logic in tests
|
|
210
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
210
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-conditional-in-test.md
|
|
211
211
|
*
|
|
212
212
|
* ```md
|
|
213
213
|
* | key | value |
|
|
@@ -241,7 +241,7 @@ declare namespace NoConditionalInTest {
|
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
243
|
* @description Disallow confusing usages of jest.setTimeout
|
|
244
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
244
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-confusing-set-timeout.md
|
|
245
245
|
*
|
|
246
246
|
* ```md
|
|
247
247
|
* | key | value |
|
|
@@ -255,7 +255,7 @@ declare namespace NoConfusingSetTimeout {
|
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
257
|
* @description Disallow use of deprecated functions
|
|
258
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
258
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-deprecated-functions.md
|
|
259
259
|
*
|
|
260
260
|
* ```md
|
|
261
261
|
* | key | value |
|
|
@@ -270,7 +270,7 @@ declare namespace NoDeprecatedFunctions {
|
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* @description Disallow disabled tests
|
|
273
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
273
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-disabled-tests.md
|
|
274
274
|
*
|
|
275
275
|
* ```md
|
|
276
276
|
* | key | value |
|
|
@@ -284,7 +284,7 @@ declare namespace NoDisabledTests {
|
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
286
|
* @description Disallow using a callback in asynchronous tests and hooks
|
|
287
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
287
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-done-callback.md
|
|
288
288
|
*
|
|
289
289
|
* ```md
|
|
290
290
|
* | key | value |
|
|
@@ -299,7 +299,7 @@ declare namespace NoDoneCallback {
|
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
301
|
* @description Disallow duplicate setup and teardown hooks
|
|
302
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
302
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-duplicate-hooks.md
|
|
303
303
|
*
|
|
304
304
|
* ```md
|
|
305
305
|
* | key | value |
|
|
@@ -313,7 +313,7 @@ declare namespace NoDuplicateHooks {
|
|
|
313
313
|
}
|
|
314
314
|
/**
|
|
315
315
|
* @description Disallow using equality matchers on error types
|
|
316
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
316
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-error-equal.md
|
|
317
317
|
*
|
|
318
318
|
* ```md
|
|
319
319
|
* | key | value |
|
|
@@ -328,7 +328,7 @@ declare namespace NoErrorEqual {
|
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
330
|
* @description Disallow using `exports` in files containing tests
|
|
331
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
331
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-export.md
|
|
332
332
|
*
|
|
333
333
|
* ```md
|
|
334
334
|
* | key | value |
|
|
@@ -342,7 +342,7 @@ declare namespace NoExport {
|
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
344
344
|
* @description Disallow focused tests
|
|
345
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
345
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-focused-tests.md
|
|
346
346
|
*
|
|
347
347
|
* ```md
|
|
348
348
|
* | key | value |
|
|
@@ -357,7 +357,7 @@ declare namespace NoFocusedTests {
|
|
|
357
357
|
}
|
|
358
358
|
/**
|
|
359
359
|
* @description Disallow setup and teardown hooks
|
|
360
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
360
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-hooks.md
|
|
361
361
|
*
|
|
362
362
|
* ```md
|
|
363
363
|
* | key | value |
|
|
@@ -397,7 +397,7 @@ declare namespace NoHooks {
|
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
399
|
* @description Disallow identical titles
|
|
400
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
400
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-identical-title.md
|
|
401
401
|
*
|
|
402
402
|
* ```md
|
|
403
403
|
* | key | value |
|
|
@@ -411,7 +411,7 @@ declare namespace NoIdenticalTitle {
|
|
|
411
411
|
}
|
|
412
412
|
/**
|
|
413
413
|
* @description Disallow string interpolation inside snapshots
|
|
414
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
414
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-interpolation-in-snapshots.md
|
|
415
415
|
*
|
|
416
416
|
* ```md
|
|
417
417
|
* | key | value |
|
|
@@ -425,7 +425,7 @@ declare namespace NoInterpolationInSnapshots {
|
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
427
427
|
* @description Disallow Jasmine globals
|
|
428
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
428
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-jasmine-globals.md
|
|
429
429
|
*
|
|
430
430
|
* ```md
|
|
431
431
|
* | key | value |
|
|
@@ -440,7 +440,7 @@ declare namespace NoJasmineGlobals {
|
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
442
|
* @description Disallow large snapshots
|
|
443
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
443
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-large-snapshots.md
|
|
444
444
|
*
|
|
445
445
|
* ```md
|
|
446
446
|
* | key | value |
|
|
@@ -485,7 +485,7 @@ declare namespace NoLargeSnapshots {
|
|
|
485
485
|
}
|
|
486
486
|
/**
|
|
487
487
|
* @description Disallow manually importing from `__mocks__`
|
|
488
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
488
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-mocks-import.md
|
|
489
489
|
*
|
|
490
490
|
* ```md
|
|
491
491
|
* | key | value |
|
|
@@ -499,7 +499,7 @@ declare namespace NoMocksImport {
|
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
501
|
* @description Disallow specific `jest.` methods
|
|
502
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
502
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-restricted-jest-methods.md
|
|
503
503
|
*
|
|
504
504
|
* ```md
|
|
505
505
|
* | key | value |
|
|
@@ -531,7 +531,7 @@ declare namespace NoRestrictedJestMethods {
|
|
|
531
531
|
}
|
|
532
532
|
/**
|
|
533
533
|
* @description Disallow specific matchers & modifiers
|
|
534
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
534
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-restricted-matchers.md
|
|
535
535
|
*
|
|
536
536
|
* ```md
|
|
537
537
|
* | key | value |
|
|
@@ -563,7 +563,7 @@ declare namespace NoRestrictedMatchers {
|
|
|
563
563
|
}
|
|
564
564
|
/**
|
|
565
565
|
* @description Disallow using `expect` outside of `it` or `test` blocks
|
|
566
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
566
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-standalone-expect.md
|
|
567
567
|
*
|
|
568
568
|
* ```md
|
|
569
569
|
* | key | value |
|
|
@@ -600,7 +600,7 @@ declare namespace NoStandaloneExpect {
|
|
|
600
600
|
}
|
|
601
601
|
/**
|
|
602
602
|
* @description Require using `.only` and `.skip` over `f` and `x`
|
|
603
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
603
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-test-prefixes.md
|
|
604
604
|
*
|
|
605
605
|
* ```md
|
|
606
606
|
* | key | value |
|
|
@@ -615,7 +615,7 @@ declare namespace NoTestPrefixes {
|
|
|
615
615
|
}
|
|
616
616
|
/**
|
|
617
617
|
* @description Disallow explicitly returning from tests
|
|
618
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
618
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-test-return-statement.md
|
|
619
619
|
*
|
|
620
620
|
* ```md
|
|
621
621
|
* | key | value |
|
|
@@ -629,7 +629,7 @@ declare namespace NoTestReturnStatement {
|
|
|
629
629
|
}
|
|
630
630
|
/**
|
|
631
631
|
* @description Disallow unnecessary assertions based on types
|
|
632
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
632
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-unnecessary-assertion.md
|
|
633
633
|
*
|
|
634
634
|
* ```md
|
|
635
635
|
* | key | value |
|
|
@@ -644,7 +644,7 @@ declare namespace NoUnnecessaryAssertion {
|
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
646
|
* @description Disallow unnecessary async function wrapper for expected promises
|
|
647
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
647
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-unneeded-async-expect-function.md
|
|
648
648
|
*
|
|
649
649
|
* ```md
|
|
650
650
|
* | key | value |
|
|
@@ -659,7 +659,7 @@ declare namespace NoUnneededAsyncExpectFunction {
|
|
|
659
659
|
}
|
|
660
660
|
/**
|
|
661
661
|
* @description Disallow using `jest.mock()` factories without an explicit type parameter
|
|
662
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
662
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-untyped-mock-factory.md
|
|
663
663
|
*
|
|
664
664
|
* ```md
|
|
665
665
|
* | key | value |
|
|
@@ -674,7 +674,7 @@ declare namespace NoUntypedMockFactory {
|
|
|
674
674
|
}
|
|
675
675
|
/**
|
|
676
676
|
* @description Enforce padding around `afterAll` blocks
|
|
677
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
677
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-after-all-blocks.md
|
|
678
678
|
*
|
|
679
679
|
* ```md
|
|
680
680
|
* | key | value |
|
|
@@ -689,7 +689,7 @@ declare namespace PaddingAroundAfterAllBlocks {
|
|
|
689
689
|
}
|
|
690
690
|
/**
|
|
691
691
|
* @description Enforce padding around `afterEach` blocks
|
|
692
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
692
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-after-each-blocks.md
|
|
693
693
|
*
|
|
694
694
|
* ```md
|
|
695
695
|
* | key | value |
|
|
@@ -704,7 +704,7 @@ declare namespace PaddingAroundAfterEachBlocks {
|
|
|
704
704
|
}
|
|
705
705
|
/**
|
|
706
706
|
* @description Enforce padding around Jest functions
|
|
707
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
707
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-all.md
|
|
708
708
|
*
|
|
709
709
|
* ```md
|
|
710
710
|
* | key | value |
|
|
@@ -719,7 +719,7 @@ declare namespace PaddingAroundAll {
|
|
|
719
719
|
}
|
|
720
720
|
/**
|
|
721
721
|
* @description Enforce padding around `beforeAll` blocks
|
|
722
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
722
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-before-all-blocks.md
|
|
723
723
|
*
|
|
724
724
|
* ```md
|
|
725
725
|
* | key | value |
|
|
@@ -734,7 +734,7 @@ declare namespace PaddingAroundBeforeAllBlocks {
|
|
|
734
734
|
}
|
|
735
735
|
/**
|
|
736
736
|
* @description Enforce padding around `beforeEach` blocks
|
|
737
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
737
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-before-each-blocks.md
|
|
738
738
|
*
|
|
739
739
|
* ```md
|
|
740
740
|
* | key | value |
|
|
@@ -749,7 +749,7 @@ declare namespace PaddingAroundBeforeEachBlocks {
|
|
|
749
749
|
}
|
|
750
750
|
/**
|
|
751
751
|
* @description Enforce padding around `describe` blocks
|
|
752
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
752
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-describe-blocks.md
|
|
753
753
|
*
|
|
754
754
|
* ```md
|
|
755
755
|
* | key | value |
|
|
@@ -764,7 +764,7 @@ declare namespace PaddingAroundDescribeBlocks {
|
|
|
764
764
|
}
|
|
765
765
|
/**
|
|
766
766
|
* @description Enforce padding around `expect` groups
|
|
767
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
767
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-expect-groups.md
|
|
768
768
|
*
|
|
769
769
|
* ```md
|
|
770
770
|
* | key | value |
|
|
@@ -779,7 +779,7 @@ declare namespace PaddingAroundExpectGroups {
|
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
781
781
|
* @description Enforce padding around `test` and `it` blocks
|
|
782
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
782
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-test-blocks.md
|
|
783
783
|
*
|
|
784
784
|
* ```md
|
|
785
785
|
* | key | value |
|
|
@@ -794,7 +794,7 @@ declare namespace PaddingAroundTestBlocks {
|
|
|
794
794
|
}
|
|
795
795
|
/**
|
|
796
796
|
* @description Suggest using `toHaveBeenCalledWith()`
|
|
797
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
797
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-called-with.md
|
|
798
798
|
*
|
|
799
799
|
* ```md
|
|
800
800
|
* | key | value |
|
|
@@ -808,7 +808,7 @@ declare namespace PreferCalledWith {
|
|
|
808
808
|
}
|
|
809
809
|
/**
|
|
810
810
|
* @description Suggest using the built-in comparison matchers
|
|
811
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
811
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-comparison-matcher.md
|
|
812
812
|
*
|
|
813
813
|
* ```md
|
|
814
814
|
* | key | value |
|
|
@@ -823,7 +823,7 @@ declare namespace PreferComparisonMatcher {
|
|
|
823
823
|
}
|
|
824
824
|
/**
|
|
825
825
|
* @description Prefer using `.each` rather than manual loops
|
|
826
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
826
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-each.md
|
|
827
827
|
*
|
|
828
828
|
* ```md
|
|
829
829
|
* | key | value |
|
|
@@ -837,7 +837,7 @@ declare namespace PreferEach {
|
|
|
837
837
|
}
|
|
838
838
|
/**
|
|
839
839
|
* @description Prefer having the last statement in a test be an assertion
|
|
840
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
840
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-ending-with-an-expect.md
|
|
841
841
|
*
|
|
842
842
|
* ```md
|
|
843
843
|
* | key | value |
|
|
@@ -881,7 +881,7 @@ declare namespace PreferEndingWithAnExpect {
|
|
|
881
881
|
}
|
|
882
882
|
/**
|
|
883
883
|
* @description Suggest using the built-in equality matchers
|
|
884
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
884
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-equality-matcher.md
|
|
885
885
|
*
|
|
886
886
|
* ```md
|
|
887
887
|
* | key | value |
|
|
@@ -896,7 +896,7 @@ declare namespace PreferEqualityMatcher {
|
|
|
896
896
|
}
|
|
897
897
|
/**
|
|
898
898
|
* @description Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
899
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
899
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-expect-assertions.md
|
|
900
900
|
*
|
|
901
901
|
* ```md
|
|
902
902
|
* | key | value |
|
|
@@ -939,7 +939,7 @@ declare namespace PreferExpectAssertions {
|
|
|
939
939
|
}
|
|
940
940
|
/**
|
|
941
941
|
* @description Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
942
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
942
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-expect-resolves.md
|
|
943
943
|
*
|
|
944
944
|
* ```md
|
|
945
945
|
* | key | value |
|
|
@@ -954,7 +954,7 @@ declare namespace PreferExpectResolves {
|
|
|
954
954
|
}
|
|
955
955
|
/**
|
|
956
956
|
* @description Prefer having hooks in a consistent order
|
|
957
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
957
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-hooks-in-order.md
|
|
958
958
|
*
|
|
959
959
|
* ```md
|
|
960
960
|
* | key | value |
|
|
@@ -968,7 +968,7 @@ declare namespace PreferHooksInOrder {
|
|
|
968
968
|
}
|
|
969
969
|
/**
|
|
970
970
|
* @description Suggest having hooks before any test cases
|
|
971
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
971
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-hooks-on-top.md
|
|
972
972
|
*
|
|
973
973
|
* ```md
|
|
974
974
|
* | key | value |
|
|
@@ -982,7 +982,7 @@ declare namespace PreferHooksOnTop {
|
|
|
982
982
|
}
|
|
983
983
|
/**
|
|
984
984
|
* @description Prefer importing Jest globals
|
|
985
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
985
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-importing-jest-globals.md
|
|
986
986
|
*
|
|
987
987
|
* ```md
|
|
988
988
|
* | key | value |
|
|
@@ -1028,7 +1028,7 @@ declare namespace PreferImportingJestGlobals {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
/**
|
|
1030
1030
|
* @description Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
1031
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1031
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-jest-mocked.md
|
|
1032
1032
|
*
|
|
1033
1033
|
* ```md
|
|
1034
1034
|
* | key | value |
|
|
@@ -1043,7 +1043,7 @@ declare namespace PreferJestMocked {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
/**
|
|
1045
1045
|
* @description Enforce lowercase test names
|
|
1046
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1046
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-lowercase-title.md
|
|
1047
1047
|
*
|
|
1048
1048
|
* ```md
|
|
1049
1049
|
* | key | value |
|
|
@@ -1111,7 +1111,7 @@ declare namespace PreferLowercaseTitle {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
/**
|
|
1113
1113
|
* @description Prefer mock resolved/rejected shorthands for promises
|
|
1114
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1114
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-mock-promise-shorthand.md
|
|
1115
1115
|
*
|
|
1116
1116
|
* ```md
|
|
1117
1117
|
* | key | value |
|
|
@@ -1126,7 +1126,7 @@ declare namespace PreferMockPromiseShorthand {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
/**
|
|
1128
1128
|
* @description Prefer mock return shorthands
|
|
1129
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1129
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-mock-return-shorthand.md
|
|
1130
1130
|
*
|
|
1131
1131
|
* ```md
|
|
1132
1132
|
* | key | value |
|
|
@@ -1141,7 +1141,7 @@ declare namespace PreferMockReturnShorthand {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
/**
|
|
1143
1143
|
* @description Prefer including a hint with external snapshots
|
|
1144
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1144
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-snapshot-hint.md
|
|
1145
1145
|
*
|
|
1146
1146
|
* ```md
|
|
1147
1147
|
* | key | value |
|
|
@@ -1171,7 +1171,7 @@ declare namespace PreferSnapshotHint {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
/**
|
|
1173
1173
|
* @description Suggest using `jest.spyOn()`
|
|
1174
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1174
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-spy-on.md
|
|
1175
1175
|
*
|
|
1176
1176
|
* ```md
|
|
1177
1177
|
* | key | value |
|
|
@@ -1186,7 +1186,7 @@ declare namespace PreferSpyOn {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
/**
|
|
1188
1188
|
* @description Suggest using `toStrictEqual()`
|
|
1189
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1189
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-strict-equal.md
|
|
1190
1190
|
*
|
|
1191
1191
|
* ```md
|
|
1192
1192
|
* | key | value |
|
|
@@ -1201,7 +1201,7 @@ declare namespace PreferStrictEqual {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
/**
|
|
1203
1203
|
* @description Suggest using `toBe()` for primitive literals
|
|
1204
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1204
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-be.md
|
|
1205
1205
|
*
|
|
1206
1206
|
* ```md
|
|
1207
1207
|
* | key | value |
|
|
@@ -1216,7 +1216,7 @@ declare namespace PreferToBe {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
/**
|
|
1218
1218
|
* @description Suggest using `toContain()`
|
|
1219
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1219
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-contain.md
|
|
1220
1220
|
*
|
|
1221
1221
|
* ```md
|
|
1222
1222
|
* | key | value |
|
|
@@ -1231,7 +1231,7 @@ declare namespace PreferToContain {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
/**
|
|
1233
1233
|
* @description Suggest using `toHaveBeenCalledTimes()`
|
|
1234
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1234
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-have-been-called-times.md
|
|
1235
1235
|
*
|
|
1236
1236
|
* ```md
|
|
1237
1237
|
* | key | value |
|
|
@@ -1246,7 +1246,7 @@ declare namespace PreferToHaveBeenCalledTimes {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
/**
|
|
1248
1248
|
* @description Suggest using `toHaveBeenCalled`
|
|
1249
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1249
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-have-been-called.md
|
|
1250
1250
|
*
|
|
1251
1251
|
* ```md
|
|
1252
1252
|
* | key | value |
|
|
@@ -1261,7 +1261,7 @@ declare namespace PreferToHaveBeenCalled {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
1263
|
* @description Suggest using `toHaveLength()`
|
|
1264
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1264
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-have-length.md
|
|
1265
1265
|
*
|
|
1266
1266
|
* ```md
|
|
1267
1267
|
* | key | value |
|
|
@@ -1276,7 +1276,7 @@ declare namespace PreferToHaveLength {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
/**
|
|
1278
1278
|
* @description Suggest using `test.todo`
|
|
1279
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1279
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-todo.md
|
|
1280
1280
|
*
|
|
1281
1281
|
* ```md
|
|
1282
1282
|
* | key | value |
|
|
@@ -1291,7 +1291,7 @@ declare namespace PreferTodo {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
/**
|
|
1293
1293
|
* @description Require setup and teardown code to be within a hook
|
|
1294
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1294
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/require-hook.md
|
|
1295
1295
|
*
|
|
1296
1296
|
* ```md
|
|
1297
1297
|
* | key | value |
|
|
@@ -1328,7 +1328,7 @@ declare namespace RequireHook {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
/**
|
|
1330
1330
|
* @description Require a message for `toThrow()`
|
|
1331
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1331
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/require-to-throw-message.md
|
|
1332
1332
|
*
|
|
1333
1333
|
* ```md
|
|
1334
1334
|
* | key | value |
|
|
@@ -1342,7 +1342,7 @@ declare namespace RequireToThrowMessage {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
/**
|
|
1344
1344
|
* @description Require test cases and hooks to be inside a `describe` block
|
|
1345
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1345
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/require-top-level-describe.md
|
|
1346
1346
|
*
|
|
1347
1347
|
* ```md
|
|
1348
1348
|
* | key | value |
|
|
@@ -1377,7 +1377,7 @@ declare namespace RequireTopLevelDescribe {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
/**
|
|
1379
1379
|
* @description Enforce unbound methods are called with their expected scope
|
|
1380
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1380
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/unbound-method.md
|
|
1381
1381
|
*
|
|
1382
1382
|
* ```md
|
|
1383
1383
|
* | key | value |
|
|
@@ -1417,7 +1417,7 @@ declare namespace UnboundMethod {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
/**
|
|
1419
1419
|
* @description Enforce valid `describe()` callback
|
|
1420
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1420
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-describe-callback.md
|
|
1421
1421
|
*
|
|
1422
1422
|
* ```md
|
|
1423
1423
|
* | key | value |
|
|
@@ -1431,7 +1431,7 @@ declare namespace ValidDescribeCallback {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
/**
|
|
1433
1433
|
* @description Require promises that have expectations in their chain to be valid
|
|
1434
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1434
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-expect-in-promise.md
|
|
1435
1435
|
*
|
|
1436
1436
|
* ```md
|
|
1437
1437
|
* | key | value |
|
|
@@ -1445,7 +1445,7 @@ declare namespace ValidExpectInPromise {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
/**
|
|
1447
1447
|
* @description Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
|
|
1448
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1448
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-expect-with-promise.md
|
|
1449
1449
|
*
|
|
1450
1450
|
* ```md
|
|
1451
1451
|
* | key | value |
|
|
@@ -1480,7 +1480,7 @@ declare namespace ValidExpectWithPromise {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
/**
|
|
1482
1482
|
* @description Enforce valid `expect()` usage
|
|
1483
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1483
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-expect.md
|
|
1484
1484
|
*
|
|
1485
1485
|
* ```md
|
|
1486
1486
|
* | key | value |
|
|
@@ -1536,7 +1536,7 @@ declare namespace ValidExpect {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
/**
|
|
1538
1538
|
* @description Disallow mocking of non-existing module paths
|
|
1539
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1539
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-mock-module-path.md
|
|
1540
1540
|
*
|
|
1541
1541
|
* ```md
|
|
1542
1542
|
* | key | value |
|
|
@@ -1574,7 +1574,7 @@ declare namespace ValidMockModulePath {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
/**
|
|
1576
1576
|
* @description Enforce valid titles
|
|
1577
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1577
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-title.md
|
|
1578
1578
|
*
|
|
1579
1579
|
* ```md
|
|
1580
1580
|
* | key | value |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-typed",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"eslint-plugin-eslint-plugin": "^7.6.2",
|
|
56
56
|
"eslint-plugin-functional": "^10.0.0",
|
|
57
57
|
"eslint-plugin-import-x": "^4.17.1",
|
|
58
|
-
"eslint-plugin-jest": "^29.16.
|
|
58
|
+
"eslint-plugin-jest": "^29.16.6",
|
|
59
59
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
60
60
|
"eslint-plugin-math": "^0.13.1",
|
|
61
61
|
"eslint-plugin-n": "^18.3.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"is-glob": "^4.0.3",
|
|
75
75
|
"is-immutable-type": "^5.0.4",
|
|
76
76
|
"micromatch": "^4.0.8",
|
|
77
|
-
"ts-data-forge": "^14.6.
|
|
77
|
+
"ts-data-forge": "^14.6.4",
|
|
78
78
|
"ts-type-forge": "^9.2.2",
|
|
79
79
|
"tsutils": "^3.21.0"
|
|
80
80
|
},
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"@vitest/ui": "4.1.11",
|
|
90
90
|
"cspell": "10.1.1",
|
|
91
91
|
"dedent": "1.7.2",
|
|
92
|
-
"eslint-config-typed": "5.11.
|
|
93
|
-
"eslint-plugin-ts-data-forge": "0.7.
|
|
92
|
+
"eslint-config-typed": "5.11.3",
|
|
93
|
+
"eslint-plugin-ts-data-forge": "0.7.1",
|
|
94
94
|
"eslint-plugin-ts-fortress": "1.2.0",
|
|
95
95
|
"eslint-plugin-ts-type-forge": "0.8.1",
|
|
96
96
|
"immer": "11.1.18",
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
"prettier-plugin-packagejson": "3.0.2",
|
|
104
104
|
"react": "19.2.8",
|
|
105
105
|
"ts-codemod-lib": "3.3.1",
|
|
106
|
-
"ts-repo-utils": "10.6.
|
|
107
|
-
"tsx": "4.23.
|
|
106
|
+
"ts-repo-utils": "10.6.1",
|
|
107
|
+
"tsx": "4.23.13",
|
|
108
108
|
"typescript": "6.0.3",
|
|
109
109
|
"typescript-native": "npm:typescript@7.0.2",
|
|
110
110
|
"vitest": "4.1.11"
|
|
@@ -10,7 +10,7 @@ type SpreadOptionsIfIsArray<
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @description Enforce `test` and `it` usage conventions
|
|
13
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
13
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/consistent-test-it.md
|
|
14
14
|
*
|
|
15
15
|
* ```md
|
|
16
16
|
* | key | value |
|
|
@@ -62,7 +62,7 @@ namespace ConsistentTestIt {
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* @description Enforce assertion to be made in a test body
|
|
65
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
65
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/expect-expect.md
|
|
66
66
|
*
|
|
67
67
|
* ```md
|
|
68
68
|
* | key | value |
|
|
@@ -111,7 +111,7 @@ namespace ExpectExpect {
|
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* @description Enforces a maximum number assertion calls in a test body
|
|
114
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
114
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/max-expects.md
|
|
115
115
|
*
|
|
116
116
|
* ```md
|
|
117
117
|
* | key | value |
|
|
@@ -151,7 +151,7 @@ namespace MaxExpects {
|
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @description Enforces a maximum depth to nested describe calls
|
|
154
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
154
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/max-nested-describe.md
|
|
155
155
|
*
|
|
156
156
|
* ```md
|
|
157
157
|
* | key | value |
|
|
@@ -191,7 +191,7 @@ namespace MaxNestedDescribe {
|
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
* @description Disallow alias methods
|
|
194
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
194
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-alias-methods.md
|
|
195
195
|
*
|
|
196
196
|
* ```md
|
|
197
197
|
* | key | value |
|
|
@@ -207,7 +207,7 @@ namespace NoAliasMethods {
|
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* @description Disallow commented out tests
|
|
210
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
210
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-commented-out-tests.md
|
|
211
211
|
*
|
|
212
212
|
* ```md
|
|
213
213
|
* | key | value |
|
|
@@ -222,7 +222,7 @@ namespace NoCommentedOutTests {
|
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* @description Disallow calling `expect` conditionally
|
|
225
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
225
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-conditional-expect.md
|
|
226
226
|
*
|
|
227
227
|
* ```md
|
|
228
228
|
* | key | value |
|
|
@@ -237,7 +237,7 @@ namespace NoConditionalExpect {
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* @description Disallow conditional logic in tests
|
|
240
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
240
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-conditional-in-test.md
|
|
241
241
|
*
|
|
242
242
|
* ```md
|
|
243
243
|
* | key | value |
|
|
@@ -276,7 +276,7 @@ namespace NoConditionalInTest {
|
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* @description Disallow confusing usages of jest.setTimeout
|
|
279
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
279
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-confusing-set-timeout.md
|
|
280
280
|
*
|
|
281
281
|
* ```md
|
|
282
282
|
* | key | value |
|
|
@@ -291,7 +291,7 @@ namespace NoConfusingSetTimeout {
|
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* @description Disallow use of deprecated functions
|
|
294
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
294
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-deprecated-functions.md
|
|
295
295
|
*
|
|
296
296
|
* ```md
|
|
297
297
|
* | key | value |
|
|
@@ -307,7 +307,7 @@ namespace NoDeprecatedFunctions {
|
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* @description Disallow disabled tests
|
|
310
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
310
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-disabled-tests.md
|
|
311
311
|
*
|
|
312
312
|
* ```md
|
|
313
313
|
* | key | value |
|
|
@@ -322,7 +322,7 @@ namespace NoDisabledTests {
|
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
324
|
* @description Disallow using a callback in asynchronous tests and hooks
|
|
325
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
325
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-done-callback.md
|
|
326
326
|
*
|
|
327
327
|
* ```md
|
|
328
328
|
* | key | value |
|
|
@@ -338,7 +338,7 @@ namespace NoDoneCallback {
|
|
|
338
338
|
|
|
339
339
|
/**
|
|
340
340
|
* @description Disallow duplicate setup and teardown hooks
|
|
341
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
341
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-duplicate-hooks.md
|
|
342
342
|
*
|
|
343
343
|
* ```md
|
|
344
344
|
* | key | value |
|
|
@@ -353,7 +353,7 @@ namespace NoDuplicateHooks {
|
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* @description Disallow using equality matchers on error types
|
|
356
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
356
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-error-equal.md
|
|
357
357
|
*
|
|
358
358
|
* ```md
|
|
359
359
|
* | key | value |
|
|
@@ -369,7 +369,7 @@ namespace NoErrorEqual {
|
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
371
|
* @description Disallow using `exports` in files containing tests
|
|
372
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
372
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-export.md
|
|
373
373
|
*
|
|
374
374
|
* ```md
|
|
375
375
|
* | key | value |
|
|
@@ -384,7 +384,7 @@ namespace NoExport {
|
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* @description Disallow focused tests
|
|
387
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
387
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-focused-tests.md
|
|
388
388
|
*
|
|
389
389
|
* ```md
|
|
390
390
|
* | key | value |
|
|
@@ -400,7 +400,7 @@ namespace NoFocusedTests {
|
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
402
|
* @description Disallow setup and teardown hooks
|
|
403
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
403
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-hooks.md
|
|
404
404
|
*
|
|
405
405
|
* ```md
|
|
406
406
|
* | key | value |
|
|
@@ -445,7 +445,7 @@ namespace NoHooks {
|
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* @description Disallow identical titles
|
|
448
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
448
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-identical-title.md
|
|
449
449
|
*
|
|
450
450
|
* ```md
|
|
451
451
|
* | key | value |
|
|
@@ -460,7 +460,7 @@ namespace NoIdenticalTitle {
|
|
|
460
460
|
|
|
461
461
|
/**
|
|
462
462
|
* @description Disallow string interpolation inside snapshots
|
|
463
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
463
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-interpolation-in-snapshots.md
|
|
464
464
|
*
|
|
465
465
|
* ```md
|
|
466
466
|
* | key | value |
|
|
@@ -475,7 +475,7 @@ namespace NoInterpolationInSnapshots {
|
|
|
475
475
|
|
|
476
476
|
/**
|
|
477
477
|
* @description Disallow Jasmine globals
|
|
478
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
478
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-jasmine-globals.md
|
|
479
479
|
*
|
|
480
480
|
* ```md
|
|
481
481
|
* | key | value |
|
|
@@ -491,7 +491,7 @@ namespace NoJasmineGlobals {
|
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* @description Disallow large snapshots
|
|
494
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
494
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-large-snapshots.md
|
|
495
495
|
*
|
|
496
496
|
* ```md
|
|
497
497
|
* | key | value |
|
|
@@ -541,7 +541,7 @@ namespace NoLargeSnapshots {
|
|
|
541
541
|
|
|
542
542
|
/**
|
|
543
543
|
* @description Disallow manually importing from `__mocks__`
|
|
544
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
544
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-mocks-import.md
|
|
545
545
|
*
|
|
546
546
|
* ```md
|
|
547
547
|
* | key | value |
|
|
@@ -556,7 +556,7 @@ namespace NoMocksImport {
|
|
|
556
556
|
|
|
557
557
|
/**
|
|
558
558
|
* @description Disallow specific `jest.` methods
|
|
559
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
559
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-restricted-jest-methods.md
|
|
560
560
|
*
|
|
561
561
|
* ```md
|
|
562
562
|
* | key | value |
|
|
@@ -593,7 +593,7 @@ namespace NoRestrictedJestMethods {
|
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* @description Disallow specific matchers & modifiers
|
|
596
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
596
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-restricted-matchers.md
|
|
597
597
|
*
|
|
598
598
|
* ```md
|
|
599
599
|
* | key | value |
|
|
@@ -630,7 +630,7 @@ namespace NoRestrictedMatchers {
|
|
|
630
630
|
|
|
631
631
|
/**
|
|
632
632
|
* @description Disallow using `expect` outside of `it` or `test` blocks
|
|
633
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
633
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-standalone-expect.md
|
|
634
634
|
*
|
|
635
635
|
* ```md
|
|
636
636
|
* | key | value |
|
|
@@ -672,7 +672,7 @@ namespace NoStandaloneExpect {
|
|
|
672
672
|
|
|
673
673
|
/**
|
|
674
674
|
* @description Require using `.only` and `.skip` over `f` and `x`
|
|
675
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
675
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-test-prefixes.md
|
|
676
676
|
*
|
|
677
677
|
* ```md
|
|
678
678
|
* | key | value |
|
|
@@ -688,7 +688,7 @@ namespace NoTestPrefixes {
|
|
|
688
688
|
|
|
689
689
|
/**
|
|
690
690
|
* @description Disallow explicitly returning from tests
|
|
691
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
691
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-test-return-statement.md
|
|
692
692
|
*
|
|
693
693
|
* ```md
|
|
694
694
|
* | key | value |
|
|
@@ -703,7 +703,7 @@ namespace NoTestReturnStatement {
|
|
|
703
703
|
|
|
704
704
|
/**
|
|
705
705
|
* @description Disallow unnecessary assertions based on types
|
|
706
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
706
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-unnecessary-assertion.md
|
|
707
707
|
*
|
|
708
708
|
* ```md
|
|
709
709
|
* | key | value |
|
|
@@ -719,7 +719,7 @@ namespace NoUnnecessaryAssertion {
|
|
|
719
719
|
|
|
720
720
|
/**
|
|
721
721
|
* @description Disallow unnecessary async function wrapper for expected promises
|
|
722
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
722
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-unneeded-async-expect-function.md
|
|
723
723
|
*
|
|
724
724
|
* ```md
|
|
725
725
|
* | key | value |
|
|
@@ -735,7 +735,7 @@ namespace NoUnneededAsyncExpectFunction {
|
|
|
735
735
|
|
|
736
736
|
/**
|
|
737
737
|
* @description Disallow using `jest.mock()` factories without an explicit type parameter
|
|
738
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
738
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/no-untyped-mock-factory.md
|
|
739
739
|
*
|
|
740
740
|
* ```md
|
|
741
741
|
* | key | value |
|
|
@@ -751,7 +751,7 @@ namespace NoUntypedMockFactory {
|
|
|
751
751
|
|
|
752
752
|
/**
|
|
753
753
|
* @description Enforce padding around `afterAll` blocks
|
|
754
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
754
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-after-all-blocks.md
|
|
755
755
|
*
|
|
756
756
|
* ```md
|
|
757
757
|
* | key | value |
|
|
@@ -767,7 +767,7 @@ namespace PaddingAroundAfterAllBlocks {
|
|
|
767
767
|
|
|
768
768
|
/**
|
|
769
769
|
* @description Enforce padding around `afterEach` blocks
|
|
770
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
770
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-after-each-blocks.md
|
|
771
771
|
*
|
|
772
772
|
* ```md
|
|
773
773
|
* | key | value |
|
|
@@ -783,7 +783,7 @@ namespace PaddingAroundAfterEachBlocks {
|
|
|
783
783
|
|
|
784
784
|
/**
|
|
785
785
|
* @description Enforce padding around Jest functions
|
|
786
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
786
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-all.md
|
|
787
787
|
*
|
|
788
788
|
* ```md
|
|
789
789
|
* | key | value |
|
|
@@ -799,7 +799,7 @@ namespace PaddingAroundAll {
|
|
|
799
799
|
|
|
800
800
|
/**
|
|
801
801
|
* @description Enforce padding around `beforeAll` blocks
|
|
802
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
802
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-before-all-blocks.md
|
|
803
803
|
*
|
|
804
804
|
* ```md
|
|
805
805
|
* | key | value |
|
|
@@ -815,7 +815,7 @@ namespace PaddingAroundBeforeAllBlocks {
|
|
|
815
815
|
|
|
816
816
|
/**
|
|
817
817
|
* @description Enforce padding around `beforeEach` blocks
|
|
818
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
818
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-before-each-blocks.md
|
|
819
819
|
*
|
|
820
820
|
* ```md
|
|
821
821
|
* | key | value |
|
|
@@ -831,7 +831,7 @@ namespace PaddingAroundBeforeEachBlocks {
|
|
|
831
831
|
|
|
832
832
|
/**
|
|
833
833
|
* @description Enforce padding around `describe` blocks
|
|
834
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
834
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-describe-blocks.md
|
|
835
835
|
*
|
|
836
836
|
* ```md
|
|
837
837
|
* | key | value |
|
|
@@ -847,7 +847,7 @@ namespace PaddingAroundDescribeBlocks {
|
|
|
847
847
|
|
|
848
848
|
/**
|
|
849
849
|
* @description Enforce padding around `expect` groups
|
|
850
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
850
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-expect-groups.md
|
|
851
851
|
*
|
|
852
852
|
* ```md
|
|
853
853
|
* | key | value |
|
|
@@ -863,7 +863,7 @@ namespace PaddingAroundExpectGroups {
|
|
|
863
863
|
|
|
864
864
|
/**
|
|
865
865
|
* @description Enforce padding around `test` and `it` blocks
|
|
866
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
866
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/padding-around-test-blocks.md
|
|
867
867
|
*
|
|
868
868
|
* ```md
|
|
869
869
|
* | key | value |
|
|
@@ -879,7 +879,7 @@ namespace PaddingAroundTestBlocks {
|
|
|
879
879
|
|
|
880
880
|
/**
|
|
881
881
|
* @description Suggest using `toHaveBeenCalledWith()`
|
|
882
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
882
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-called-with.md
|
|
883
883
|
*
|
|
884
884
|
* ```md
|
|
885
885
|
* | key | value |
|
|
@@ -894,7 +894,7 @@ namespace PreferCalledWith {
|
|
|
894
894
|
|
|
895
895
|
/**
|
|
896
896
|
* @description Suggest using the built-in comparison matchers
|
|
897
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
897
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-comparison-matcher.md
|
|
898
898
|
*
|
|
899
899
|
* ```md
|
|
900
900
|
* | key | value |
|
|
@@ -910,7 +910,7 @@ namespace PreferComparisonMatcher {
|
|
|
910
910
|
|
|
911
911
|
/**
|
|
912
912
|
* @description Prefer using `.each` rather than manual loops
|
|
913
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
913
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-each.md
|
|
914
914
|
*
|
|
915
915
|
* ```md
|
|
916
916
|
* | key | value |
|
|
@@ -925,7 +925,7 @@ namespace PreferEach {
|
|
|
925
925
|
|
|
926
926
|
/**
|
|
927
927
|
* @description Prefer having the last statement in a test be an assertion
|
|
928
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
928
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-ending-with-an-expect.md
|
|
929
929
|
*
|
|
930
930
|
* ```md
|
|
931
931
|
* | key | value |
|
|
@@ -974,7 +974,7 @@ namespace PreferEndingWithAnExpect {
|
|
|
974
974
|
|
|
975
975
|
/**
|
|
976
976
|
* @description Suggest using the built-in equality matchers
|
|
977
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
977
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-equality-matcher.md
|
|
978
978
|
*
|
|
979
979
|
* ```md
|
|
980
980
|
* | key | value |
|
|
@@ -990,7 +990,7 @@ namespace PreferEqualityMatcher {
|
|
|
990
990
|
|
|
991
991
|
/**
|
|
992
992
|
* @description Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
993
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
993
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-expect-assertions.md
|
|
994
994
|
*
|
|
995
995
|
* ```md
|
|
996
996
|
* | key | value |
|
|
@@ -1038,7 +1038,7 @@ namespace PreferExpectAssertions {
|
|
|
1038
1038
|
|
|
1039
1039
|
/**
|
|
1040
1040
|
* @description Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
1041
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1041
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-expect-resolves.md
|
|
1042
1042
|
*
|
|
1043
1043
|
* ```md
|
|
1044
1044
|
* | key | value |
|
|
@@ -1054,7 +1054,7 @@ namespace PreferExpectResolves {
|
|
|
1054
1054
|
|
|
1055
1055
|
/**
|
|
1056
1056
|
* @description Prefer having hooks in a consistent order
|
|
1057
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1057
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-hooks-in-order.md
|
|
1058
1058
|
*
|
|
1059
1059
|
* ```md
|
|
1060
1060
|
* | key | value |
|
|
@@ -1069,7 +1069,7 @@ namespace PreferHooksInOrder {
|
|
|
1069
1069
|
|
|
1070
1070
|
/**
|
|
1071
1071
|
* @description Suggest having hooks before any test cases
|
|
1072
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1072
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-hooks-on-top.md
|
|
1073
1073
|
*
|
|
1074
1074
|
* ```md
|
|
1075
1075
|
* | key | value |
|
|
@@ -1084,7 +1084,7 @@ namespace PreferHooksOnTop {
|
|
|
1084
1084
|
|
|
1085
1085
|
/**
|
|
1086
1086
|
* @description Prefer importing Jest globals
|
|
1087
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1087
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-importing-jest-globals.md
|
|
1088
1088
|
*
|
|
1089
1089
|
* ```md
|
|
1090
1090
|
* | key | value |
|
|
@@ -1137,7 +1137,7 @@ namespace PreferImportingJestGlobals {
|
|
|
1137
1137
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* @description Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
1140
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1140
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-jest-mocked.md
|
|
1141
1141
|
*
|
|
1142
1142
|
* ```md
|
|
1143
1143
|
* | key | value |
|
|
@@ -1153,7 +1153,7 @@ namespace PreferJestMocked {
|
|
|
1153
1153
|
|
|
1154
1154
|
/**
|
|
1155
1155
|
* @description Enforce lowercase test names
|
|
1156
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1156
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-lowercase-title.md
|
|
1157
1157
|
*
|
|
1158
1158
|
* ```md
|
|
1159
1159
|
* | key | value |
|
|
@@ -1226,7 +1226,7 @@ namespace PreferLowercaseTitle {
|
|
|
1226
1226
|
|
|
1227
1227
|
/**
|
|
1228
1228
|
* @description Prefer mock resolved/rejected shorthands for promises
|
|
1229
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1229
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-mock-promise-shorthand.md
|
|
1230
1230
|
*
|
|
1231
1231
|
* ```md
|
|
1232
1232
|
* | key | value |
|
|
@@ -1242,7 +1242,7 @@ namespace PreferMockPromiseShorthand {
|
|
|
1242
1242
|
|
|
1243
1243
|
/**
|
|
1244
1244
|
* @description Prefer mock return shorthands
|
|
1245
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1245
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-mock-return-shorthand.md
|
|
1246
1246
|
*
|
|
1247
1247
|
* ```md
|
|
1248
1248
|
* | key | value |
|
|
@@ -1258,7 +1258,7 @@ namespace PreferMockReturnShorthand {
|
|
|
1258
1258
|
|
|
1259
1259
|
/**
|
|
1260
1260
|
* @description Prefer including a hint with external snapshots
|
|
1261
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1261
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-snapshot-hint.md
|
|
1262
1262
|
*
|
|
1263
1263
|
* ```md
|
|
1264
1264
|
* | key | value |
|
|
@@ -1293,7 +1293,7 @@ namespace PreferSnapshotHint {
|
|
|
1293
1293
|
|
|
1294
1294
|
/**
|
|
1295
1295
|
* @description Suggest using `jest.spyOn()`
|
|
1296
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1296
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-spy-on.md
|
|
1297
1297
|
*
|
|
1298
1298
|
* ```md
|
|
1299
1299
|
* | key | value |
|
|
@@ -1309,7 +1309,7 @@ namespace PreferSpyOn {
|
|
|
1309
1309
|
|
|
1310
1310
|
/**
|
|
1311
1311
|
* @description Suggest using `toStrictEqual()`
|
|
1312
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1312
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-strict-equal.md
|
|
1313
1313
|
*
|
|
1314
1314
|
* ```md
|
|
1315
1315
|
* | key | value |
|
|
@@ -1325,7 +1325,7 @@ namespace PreferStrictEqual {
|
|
|
1325
1325
|
|
|
1326
1326
|
/**
|
|
1327
1327
|
* @description Suggest using `toBe()` for primitive literals
|
|
1328
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1328
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-be.md
|
|
1329
1329
|
*
|
|
1330
1330
|
* ```md
|
|
1331
1331
|
* | key | value |
|
|
@@ -1341,7 +1341,7 @@ namespace PreferToBe {
|
|
|
1341
1341
|
|
|
1342
1342
|
/**
|
|
1343
1343
|
* @description Suggest using `toContain()`
|
|
1344
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1344
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-contain.md
|
|
1345
1345
|
*
|
|
1346
1346
|
* ```md
|
|
1347
1347
|
* | key | value |
|
|
@@ -1357,7 +1357,7 @@ namespace PreferToContain {
|
|
|
1357
1357
|
|
|
1358
1358
|
/**
|
|
1359
1359
|
* @description Suggest using `toHaveBeenCalledTimes()`
|
|
1360
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1360
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-have-been-called-times.md
|
|
1361
1361
|
*
|
|
1362
1362
|
* ```md
|
|
1363
1363
|
* | key | value |
|
|
@@ -1373,7 +1373,7 @@ namespace PreferToHaveBeenCalledTimes {
|
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
* @description Suggest using `toHaveBeenCalled`
|
|
1376
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1376
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-have-been-called.md
|
|
1377
1377
|
*
|
|
1378
1378
|
* ```md
|
|
1379
1379
|
* | key | value |
|
|
@@ -1389,7 +1389,7 @@ namespace PreferToHaveBeenCalled {
|
|
|
1389
1389
|
|
|
1390
1390
|
/**
|
|
1391
1391
|
* @description Suggest using `toHaveLength()`
|
|
1392
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1392
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-to-have-length.md
|
|
1393
1393
|
*
|
|
1394
1394
|
* ```md
|
|
1395
1395
|
* | key | value |
|
|
@@ -1405,7 +1405,7 @@ namespace PreferToHaveLength {
|
|
|
1405
1405
|
|
|
1406
1406
|
/**
|
|
1407
1407
|
* @description Suggest using `test.todo`
|
|
1408
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1408
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/prefer-todo.md
|
|
1409
1409
|
*
|
|
1410
1410
|
* ```md
|
|
1411
1411
|
* | key | value |
|
|
@@ -1421,7 +1421,7 @@ namespace PreferTodo {
|
|
|
1421
1421
|
|
|
1422
1422
|
/**
|
|
1423
1423
|
* @description Require setup and teardown code to be within a hook
|
|
1424
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1424
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/require-hook.md
|
|
1425
1425
|
*
|
|
1426
1426
|
* ```md
|
|
1427
1427
|
* | key | value |
|
|
@@ -1463,7 +1463,7 @@ namespace RequireHook {
|
|
|
1463
1463
|
|
|
1464
1464
|
/**
|
|
1465
1465
|
* @description Require a message for `toThrow()`
|
|
1466
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1466
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/require-to-throw-message.md
|
|
1467
1467
|
*
|
|
1468
1468
|
* ```md
|
|
1469
1469
|
* | key | value |
|
|
@@ -1478,7 +1478,7 @@ namespace RequireToThrowMessage {
|
|
|
1478
1478
|
|
|
1479
1479
|
/**
|
|
1480
1480
|
* @description Require test cases and hooks to be inside a `describe` block
|
|
1481
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1481
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/require-top-level-describe.md
|
|
1482
1482
|
*
|
|
1483
1483
|
* ```md
|
|
1484
1484
|
* | key | value |
|
|
@@ -1518,7 +1518,7 @@ namespace RequireTopLevelDescribe {
|
|
|
1518
1518
|
|
|
1519
1519
|
/**
|
|
1520
1520
|
* @description Enforce unbound methods are called with their expected scope
|
|
1521
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1521
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/unbound-method.md
|
|
1522
1522
|
*
|
|
1523
1523
|
* ```md
|
|
1524
1524
|
* | key | value |
|
|
@@ -1563,7 +1563,7 @@ namespace UnboundMethod {
|
|
|
1563
1563
|
|
|
1564
1564
|
/**
|
|
1565
1565
|
* @description Enforce valid `describe()` callback
|
|
1566
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1566
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-describe-callback.md
|
|
1567
1567
|
*
|
|
1568
1568
|
* ```md
|
|
1569
1569
|
* | key | value |
|
|
@@ -1578,7 +1578,7 @@ namespace ValidDescribeCallback {
|
|
|
1578
1578
|
|
|
1579
1579
|
/**
|
|
1580
1580
|
* @description Require promises that have expectations in their chain to be valid
|
|
1581
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1581
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-expect-in-promise.md
|
|
1582
1582
|
*
|
|
1583
1583
|
* ```md
|
|
1584
1584
|
* | key | value |
|
|
@@ -1593,7 +1593,7 @@ namespace ValidExpectInPromise {
|
|
|
1593
1593
|
|
|
1594
1594
|
/**
|
|
1595
1595
|
* @description Require that `resolve` and `reject` modifiers are present (and only) for promise-like types
|
|
1596
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1596
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-expect-with-promise.md
|
|
1597
1597
|
*
|
|
1598
1598
|
* ```md
|
|
1599
1599
|
* | key | value |
|
|
@@ -1633,7 +1633,7 @@ namespace ValidExpectWithPromise {
|
|
|
1633
1633
|
|
|
1634
1634
|
/**
|
|
1635
1635
|
* @description Enforce valid `expect()` usage
|
|
1636
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1636
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-expect.md
|
|
1637
1637
|
*
|
|
1638
1638
|
* ```md
|
|
1639
1639
|
* | key | value |
|
|
@@ -1694,7 +1694,7 @@ namespace ValidExpect {
|
|
|
1694
1694
|
|
|
1695
1695
|
/**
|
|
1696
1696
|
* @description Disallow mocking of non-existing module paths
|
|
1697
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1697
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-mock-module-path.md
|
|
1698
1698
|
*
|
|
1699
1699
|
* ```md
|
|
1700
1700
|
* | key | value |
|
|
@@ -1737,7 +1737,7 @@ namespace ValidMockModulePath {
|
|
|
1737
1737
|
|
|
1738
1738
|
/**
|
|
1739
1739
|
* @description Enforce valid titles
|
|
1740
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.
|
|
1740
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.6/docs/rules/valid-title.md
|
|
1741
1741
|
*
|
|
1742
1742
|
* ```md
|
|
1743
1743
|
* | key | value |
|