eslint-config-typed 4.3.0 → 4.4.0
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/plugins/immer-coding-style/rules/prefer-curried-produce.d.mts.map +1 -1
- package/dist/plugins/immer-coding-style/rules/prefer-curried-produce.mjs +1 -2
- package/dist/plugins/immer-coding-style/rules/prefer-curried-produce.mjs.map +1 -1
- package/dist/plugins/react-coding-style/rules/import-style.mjs +2 -2
- package/dist/plugins/react-coding-style/rules/import-style.mjs.map +1 -1
- package/dist/plugins/react-coding-style/rules/props-type-annotation-style.d.mts.map +1 -1
- package/dist/plugins/react-coding-style/rules/props-type-annotation-style.mjs +2 -4
- package/dist/plugins/react-coding-style/rules/props-type-annotation-style.mjs.map +1 -1
- package/dist/plugins/react-coding-style/rules/react-memo-props-argument-name.d.mts.map +1 -1
- package/dist/plugins/react-coding-style/rules/react-memo-props-argument-name.mjs +1 -2
- package/dist/plugins/react-coding-style/rules/react-memo-props-argument-name.mjs.map +1 -1
- package/dist/plugins/total-functions/rules/common.d.mts +3 -1
- package/dist/plugins/total-functions/rules/common.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-enums.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-enums.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-hidden-type-assertions.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-hidden-type-assertions.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-nested-fp-ts-effects.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-nested-fp-ts-effects.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-partial-array-reduce.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-partial-array-reduce.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-partial-division.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-partial-division.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-partial-string-normalize.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-partial-string-normalize.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-partial-url-constructor.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-partial-url-constructor.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-partial-url-constructor.mjs +3 -6
- package/dist/plugins/total-functions/rules/no-partial-url-constructor.mjs.map +1 -1
- package/dist/plugins/total-functions/rules/no-premature-fp-ts-effects.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-premature-fp-ts-effects.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-unsafe-enum-assignment.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-unsafe-enum-assignment.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-unsafe-optional-property-assignment.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-unsafe-optional-property-assignment.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/no-unsafe-type-assertion.d.mts +3 -1
- package/dist/plugins/total-functions/rules/no-unsafe-type-assertion.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/require-strict-mode.d.mts +3 -1
- package/dist/plugins/total-functions/rules/require-strict-mode.d.mts.map +1 -1
- package/dist/plugins/total-functions/rules/rules.d.mts +42 -14
- package/dist/plugins/total-functions/rules/rules.d.mts.map +1 -1
- package/dist/plugins/ts-data-forge/rules/prefer-range-for-loop.d.mts.map +1 -1
- package/dist/plugins/ts-data-forge/rules/prefer-range-for-loop.mjs +2 -4
- package/dist/plugins/ts-data-forge/rules/prefer-range-for-loop.mjs.map +1 -1
- package/dist/rules/eslint-jest-rules.d.mts +1 -0
- package/dist/rules/eslint-jest-rules.d.mts.map +1 -1
- package/dist/rules/eslint-jest-rules.mjs +1 -0
- package/dist/rules/eslint-jest-rules.mjs.map +1 -1
- 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 +87 -70
- package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-rules.d.mts +18 -0
- package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/dist/types/rules/typescript-eslint-rules.d.mts +0 -1
- package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/package.json +15 -15
- package/src/plugins/immer-coding-style/rules/prefer-curried-produce.mts +1 -2
- package/src/plugins/react-coding-style/rules/import-style.mts +2 -2
- package/src/plugins/react-coding-style/rules/props-type-annotation-style.mts +2 -8
- package/src/plugins/react-coding-style/rules/react-memo-props-argument-name.mts +1 -4
- package/src/plugins/strict-dependencies/rules/resolve-import-path.test.mts +3 -3
- package/src/plugins/total-functions/rules/no-partial-url-constructor.mts +3 -6
- package/src/plugins/ts-data-forge/rules/prefer-range-for-loop.mts +2 -4
- package/src/rules/eslint-jest-rules.mts +1 -0
- package/src/rules/eslint-vitest-rules.mts +1 -0
- package/src/types/rules/eslint-jest-rules.mts +88 -70
- package/src/types/rules/eslint-vitest-rules.mts +19 -0
- package/src/types/rules/typescript-eslint-rules.mts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-vitest-rules.mjs","sources":["../../src/rules/eslint-vitest-rules.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAEO,MAAM,iBAAiB,GAAG;;AAE/B,IAAA,sBAAsB,EAAE,iBAAiB,CAAC,OAAO,CAAC;AAClD,IAAA,oBAAoB,EAAE,KAAK;AAC3B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;AACE,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,EAAE,EAAE,MAAM;AACV,YAAA,QAAQ,EAAE,MAAM;AAChB,YAAA,KAAK,EAAE,MAAM;AACd,SAAA;AACF,KAAA;AACD,IAAA,0CAA0C,EAAE,OAAO;AACnD,IAAA,yCAAyC,EAAE,OAAO;;AAGlD,IAAA,yBAAyB,EAAE,CAAC;;;;;"}
|
|
@@ -3,7 +3,7 @@ type SpreadOptionsIfIsArray<T extends readonly [Linter.StringSeverity, unknown]>
|
|
|
3
3
|
/**
|
|
4
4
|
* Enforce `test` and `it` usage conventions
|
|
5
5
|
*
|
|
6
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
6
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
54
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
99
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
135
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
171
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
187
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
202
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
217
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
232
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
247
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
263
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
278
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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.
|
|
294
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/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 equality matchers on error types
|
|
308
308
|
*
|
|
309
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
309
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-error-equal.md
|
|
310
310
|
*
|
|
311
311
|
* ```md
|
|
312
312
|
* | key | value |
|
|
@@ -322,7 +322,7 @@ declare namespace NoErrorEqual {
|
|
|
322
322
|
/**
|
|
323
323
|
* Disallow using `exports` in files containing tests
|
|
324
324
|
*
|
|
325
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
325
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-export.md
|
|
326
326
|
*
|
|
327
327
|
* ```md
|
|
328
328
|
* | key | value |
|
|
@@ -337,7 +337,7 @@ declare namespace NoExport {
|
|
|
337
337
|
/**
|
|
338
338
|
* Disallow focused tests
|
|
339
339
|
*
|
|
340
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
340
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-focused-tests.md
|
|
341
341
|
*
|
|
342
342
|
* ```md
|
|
343
343
|
* | key | value |
|
|
@@ -353,7 +353,7 @@ declare namespace NoFocusedTests {
|
|
|
353
353
|
/**
|
|
354
354
|
* Disallow setup and teardown hooks
|
|
355
355
|
*
|
|
356
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
356
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-hooks.md
|
|
357
357
|
*
|
|
358
358
|
* ```md
|
|
359
359
|
* | key | value |
|
|
@@ -394,7 +394,7 @@ declare namespace NoHooks {
|
|
|
394
394
|
/**
|
|
395
395
|
* Disallow identical titles
|
|
396
396
|
*
|
|
397
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
397
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-identical-title.md
|
|
398
398
|
*
|
|
399
399
|
* ```md
|
|
400
400
|
* | key | value |
|
|
@@ -409,7 +409,7 @@ declare namespace NoIdenticalTitle {
|
|
|
409
409
|
/**
|
|
410
410
|
* Disallow string interpolation inside snapshots
|
|
411
411
|
*
|
|
412
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
412
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-interpolation-in-snapshots.md
|
|
413
413
|
*
|
|
414
414
|
* ```md
|
|
415
415
|
* | key | value |
|
|
@@ -424,7 +424,7 @@ declare namespace NoInterpolationInSnapshots {
|
|
|
424
424
|
/**
|
|
425
425
|
* Disallow Jasmine globals
|
|
426
426
|
*
|
|
427
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
427
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-jasmine-globals.md
|
|
428
428
|
*
|
|
429
429
|
* ```md
|
|
430
430
|
* | key | value |
|
|
@@ -440,7 +440,7 @@ declare namespace NoJasmineGlobals {
|
|
|
440
440
|
/**
|
|
441
441
|
* Disallow large snapshots
|
|
442
442
|
*
|
|
443
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
443
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-large-snapshots.md
|
|
444
444
|
*
|
|
445
445
|
* ```md
|
|
446
446
|
* | key | value |
|
|
@@ -486,7 +486,7 @@ declare namespace NoLargeSnapshots {
|
|
|
486
486
|
/**
|
|
487
487
|
* Disallow manually importing from `__mocks__`
|
|
488
488
|
*
|
|
489
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
489
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-mocks-import.md
|
|
490
490
|
*
|
|
491
491
|
* ```md
|
|
492
492
|
* | key | value |
|
|
@@ -501,7 +501,7 @@ declare namespace NoMocksImport {
|
|
|
501
501
|
/**
|
|
502
502
|
* Disallow specific `jest.` methods
|
|
503
503
|
*
|
|
504
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
504
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-restricted-jest-methods.md
|
|
505
505
|
*
|
|
506
506
|
* ```md
|
|
507
507
|
* | key | value |
|
|
@@ -534,7 +534,7 @@ declare namespace NoRestrictedJestMethods {
|
|
|
534
534
|
/**
|
|
535
535
|
* Disallow specific matchers & modifiers
|
|
536
536
|
*
|
|
537
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
537
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-restricted-matchers.md
|
|
538
538
|
*
|
|
539
539
|
* ```md
|
|
540
540
|
* | key | value |
|
|
@@ -567,7 +567,7 @@ declare namespace NoRestrictedMatchers {
|
|
|
567
567
|
/**
|
|
568
568
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
569
569
|
*
|
|
570
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
570
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-standalone-expect.md
|
|
571
571
|
*
|
|
572
572
|
* ```md
|
|
573
573
|
* | key | value |
|
|
@@ -605,7 +605,7 @@ declare namespace NoStandaloneExpect {
|
|
|
605
605
|
/**
|
|
606
606
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
607
607
|
*
|
|
608
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
608
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-test-prefixes.md
|
|
609
609
|
*
|
|
610
610
|
* ```md
|
|
611
611
|
* | key | value |
|
|
@@ -621,7 +621,7 @@ declare namespace NoTestPrefixes {
|
|
|
621
621
|
/**
|
|
622
622
|
* Disallow explicitly returning from tests
|
|
623
623
|
*
|
|
624
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
624
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-test-return-statement.md
|
|
625
625
|
*
|
|
626
626
|
* ```md
|
|
627
627
|
* | key | value |
|
|
@@ -636,7 +636,7 @@ declare namespace NoTestReturnStatement {
|
|
|
636
636
|
/**
|
|
637
637
|
* Disallow unnecessary assertions based on types
|
|
638
638
|
*
|
|
639
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
639
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-unnecessary-assertion.md
|
|
640
640
|
*
|
|
641
641
|
* ```md
|
|
642
642
|
* | key | value |
|
|
@@ -652,7 +652,7 @@ declare namespace NoUnnecessaryAssertion {
|
|
|
652
652
|
/**
|
|
653
653
|
* Disallow unnecessary async function wrapper for expected promises
|
|
654
654
|
*
|
|
655
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
655
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-unneeded-async-expect-function.md
|
|
656
656
|
*
|
|
657
657
|
* ```md
|
|
658
658
|
* | key | value |
|
|
@@ -668,7 +668,7 @@ declare namespace NoUnneededAsyncExpectFunction {
|
|
|
668
668
|
/**
|
|
669
669
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
670
670
|
*
|
|
671
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
671
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-untyped-mock-factory.md
|
|
672
672
|
*
|
|
673
673
|
* ```md
|
|
674
674
|
* | key | value |
|
|
@@ -684,7 +684,7 @@ declare namespace NoUntypedMockFactory {
|
|
|
684
684
|
/**
|
|
685
685
|
* Enforce padding around `afterAll` blocks
|
|
686
686
|
*
|
|
687
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
687
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-after-all-blocks.md
|
|
688
688
|
*
|
|
689
689
|
* ```md
|
|
690
690
|
* | key | value |
|
|
@@ -700,7 +700,7 @@ declare namespace PaddingAroundAfterAllBlocks {
|
|
|
700
700
|
/**
|
|
701
701
|
* Enforce padding around `afterEach` blocks
|
|
702
702
|
*
|
|
703
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
703
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-after-each-blocks.md
|
|
704
704
|
*
|
|
705
705
|
* ```md
|
|
706
706
|
* | key | value |
|
|
@@ -716,7 +716,7 @@ declare namespace PaddingAroundAfterEachBlocks {
|
|
|
716
716
|
/**
|
|
717
717
|
* Enforce padding around Jest functions
|
|
718
718
|
*
|
|
719
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
719
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-all.md
|
|
720
720
|
*
|
|
721
721
|
* ```md
|
|
722
722
|
* | key | value |
|
|
@@ -732,7 +732,7 @@ declare namespace PaddingAroundAll {
|
|
|
732
732
|
/**
|
|
733
733
|
* Enforce padding around `beforeAll` blocks
|
|
734
734
|
*
|
|
735
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
735
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-before-all-blocks.md
|
|
736
736
|
*
|
|
737
737
|
* ```md
|
|
738
738
|
* | key | value |
|
|
@@ -748,7 +748,7 @@ declare namespace PaddingAroundBeforeAllBlocks {
|
|
|
748
748
|
/**
|
|
749
749
|
* Enforce padding around `beforeEach` blocks
|
|
750
750
|
*
|
|
751
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
751
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-before-each-blocks.md
|
|
752
752
|
*
|
|
753
753
|
* ```md
|
|
754
754
|
* | key | value |
|
|
@@ -764,7 +764,7 @@ declare namespace PaddingAroundBeforeEachBlocks {
|
|
|
764
764
|
/**
|
|
765
765
|
* Enforce padding around `describe` blocks
|
|
766
766
|
*
|
|
767
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
767
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-describe-blocks.md
|
|
768
768
|
*
|
|
769
769
|
* ```md
|
|
770
770
|
* | key | value |
|
|
@@ -780,7 +780,7 @@ declare namespace PaddingAroundDescribeBlocks {
|
|
|
780
780
|
/**
|
|
781
781
|
* Enforce padding around `expect` groups
|
|
782
782
|
*
|
|
783
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
783
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-expect-groups.md
|
|
784
784
|
*
|
|
785
785
|
* ```md
|
|
786
786
|
* | key | value |
|
|
@@ -796,7 +796,7 @@ declare namespace PaddingAroundExpectGroups {
|
|
|
796
796
|
/**
|
|
797
797
|
* Enforce padding around `test` and `it` blocks
|
|
798
798
|
*
|
|
799
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
799
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-test-blocks.md
|
|
800
800
|
*
|
|
801
801
|
* ```md
|
|
802
802
|
* | key | value |
|
|
@@ -812,7 +812,7 @@ declare namespace PaddingAroundTestBlocks {
|
|
|
812
812
|
/**
|
|
813
813
|
* Suggest using `toHaveBeenCalledWith()`
|
|
814
814
|
*
|
|
815
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
815
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-called-with.md
|
|
816
816
|
*
|
|
817
817
|
* ```md
|
|
818
818
|
* | key | value |
|
|
@@ -827,7 +827,7 @@ declare namespace PreferCalledWith {
|
|
|
827
827
|
/**
|
|
828
828
|
* Suggest using the built-in comparison matchers
|
|
829
829
|
*
|
|
830
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
830
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-comparison-matcher.md
|
|
831
831
|
*
|
|
832
832
|
* ```md
|
|
833
833
|
* | key | value |
|
|
@@ -843,7 +843,7 @@ declare namespace PreferComparisonMatcher {
|
|
|
843
843
|
/**
|
|
844
844
|
* Prefer using `.each` rather than manual loops
|
|
845
845
|
*
|
|
846
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
846
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-each.md
|
|
847
847
|
*
|
|
848
848
|
* ```md
|
|
849
849
|
* | key | value |
|
|
@@ -858,7 +858,7 @@ declare namespace PreferEach {
|
|
|
858
858
|
/**
|
|
859
859
|
* Prefer having the last statement in a test be an assertion
|
|
860
860
|
*
|
|
861
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
861
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-ending-with-an-expect.md
|
|
862
862
|
*
|
|
863
863
|
* ```md
|
|
864
864
|
* | key | value |
|
|
@@ -903,7 +903,7 @@ declare namespace PreferEndingWithAnExpect {
|
|
|
903
903
|
/**
|
|
904
904
|
* Suggest using the built-in equality matchers
|
|
905
905
|
*
|
|
906
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
906
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-equality-matcher.md
|
|
907
907
|
*
|
|
908
908
|
* ```md
|
|
909
909
|
* | key | value |
|
|
@@ -919,7 +919,7 @@ declare namespace PreferEqualityMatcher {
|
|
|
919
919
|
/**
|
|
920
920
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
921
921
|
*
|
|
922
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
922
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-expect-assertions.md
|
|
923
923
|
*
|
|
924
924
|
* ```md
|
|
925
925
|
* | key | value |
|
|
@@ -963,7 +963,7 @@ declare namespace PreferExpectAssertions {
|
|
|
963
963
|
/**
|
|
964
964
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
965
965
|
*
|
|
966
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
966
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-expect-resolves.md
|
|
967
967
|
*
|
|
968
968
|
* ```md
|
|
969
969
|
* | key | value |
|
|
@@ -979,7 +979,7 @@ declare namespace PreferExpectResolves {
|
|
|
979
979
|
/**
|
|
980
980
|
* Prefer having hooks in a consistent order
|
|
981
981
|
*
|
|
982
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
982
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-hooks-in-order.md
|
|
983
983
|
*
|
|
984
984
|
* ```md
|
|
985
985
|
* | key | value |
|
|
@@ -994,7 +994,7 @@ declare namespace PreferHooksInOrder {
|
|
|
994
994
|
/**
|
|
995
995
|
* Suggest having hooks before any test cases
|
|
996
996
|
*
|
|
997
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
997
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-hooks-on-top.md
|
|
998
998
|
*
|
|
999
999
|
* ```md
|
|
1000
1000
|
* | key | value |
|
|
@@ -1009,7 +1009,7 @@ declare namespace PreferHooksOnTop {
|
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Prefer importing Jest globals
|
|
1011
1011
|
*
|
|
1012
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1012
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-importing-jest-globals.md
|
|
1013
1013
|
*
|
|
1014
1014
|
* ```md
|
|
1015
1015
|
* | key | value |
|
|
@@ -1056,7 +1056,7 @@ declare namespace PreferImportingJestGlobals {
|
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
1058
1058
|
*
|
|
1059
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1059
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-jest-mocked.md
|
|
1060
1060
|
*
|
|
1061
1061
|
* ```md
|
|
1062
1062
|
* | key | value |
|
|
@@ -1072,7 +1072,7 @@ declare namespace PreferJestMocked {
|
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Enforce lowercase test names
|
|
1074
1074
|
*
|
|
1075
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1075
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-lowercase-title.md
|
|
1076
1076
|
*
|
|
1077
1077
|
* ```md
|
|
1078
1078
|
* | key | value |
|
|
@@ -1137,7 +1137,7 @@ declare namespace PreferLowercaseTitle {
|
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Prefer mock resolved/rejected shorthands for promises
|
|
1139
1139
|
*
|
|
1140
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1140
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-mock-promise-shorthand.md
|
|
1141
1141
|
*
|
|
1142
1142
|
* ```md
|
|
1143
1143
|
* | key | value |
|
|
@@ -1150,10 +1150,26 @@ declare namespace PreferLowercaseTitle {
|
|
|
1150
1150
|
declare namespace PreferMockPromiseShorthand {
|
|
1151
1151
|
type RuleEntry = Linter.StringSeverity;
|
|
1152
1152
|
}
|
|
1153
|
+
/**
|
|
1154
|
+
* Prefer mock return shorthands
|
|
1155
|
+
*
|
|
1156
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-mock-return-shorthand.md
|
|
1157
|
+
*
|
|
1158
|
+
* ```md
|
|
1159
|
+
* | key | value |
|
|
1160
|
+
* | :--------- | :--------- |
|
|
1161
|
+
* | type | suggestion |
|
|
1162
|
+
* | deprecated | false |
|
|
1163
|
+
* | fixable | code |
|
|
1164
|
+
* ```
|
|
1165
|
+
*/
|
|
1166
|
+
declare namespace PreferMockReturnShorthand {
|
|
1167
|
+
type RuleEntry = Linter.StringSeverity;
|
|
1168
|
+
}
|
|
1153
1169
|
/**
|
|
1154
1170
|
* Prefer including a hint with external snapshots
|
|
1155
1171
|
*
|
|
1156
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1172
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-snapshot-hint.md
|
|
1157
1173
|
*
|
|
1158
1174
|
* ```md
|
|
1159
1175
|
* | key | value |
|
|
@@ -1184,7 +1200,7 @@ declare namespace PreferSnapshotHint {
|
|
|
1184
1200
|
/**
|
|
1185
1201
|
* Suggest using `jest.spyOn()`
|
|
1186
1202
|
*
|
|
1187
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1203
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-spy-on.md
|
|
1188
1204
|
*
|
|
1189
1205
|
* ```md
|
|
1190
1206
|
* | key | value |
|
|
@@ -1200,7 +1216,7 @@ declare namespace PreferSpyOn {
|
|
|
1200
1216
|
/**
|
|
1201
1217
|
* Suggest using `toStrictEqual()`
|
|
1202
1218
|
*
|
|
1203
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1219
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-strict-equal.md
|
|
1204
1220
|
*
|
|
1205
1221
|
* ```md
|
|
1206
1222
|
* | key | value |
|
|
@@ -1216,7 +1232,7 @@ declare namespace PreferStrictEqual {
|
|
|
1216
1232
|
/**
|
|
1217
1233
|
* Suggest using `toBe()` for primitive literals
|
|
1218
1234
|
*
|
|
1219
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1235
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-be.md
|
|
1220
1236
|
*
|
|
1221
1237
|
* ```md
|
|
1222
1238
|
* | key | value |
|
|
@@ -1232,7 +1248,7 @@ declare namespace PreferToBe {
|
|
|
1232
1248
|
/**
|
|
1233
1249
|
* Suggest using `toContain()`
|
|
1234
1250
|
*
|
|
1235
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1251
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-contain.md
|
|
1236
1252
|
*
|
|
1237
1253
|
* ```md
|
|
1238
1254
|
* | key | value |
|
|
@@ -1248,7 +1264,7 @@ declare namespace PreferToContain {
|
|
|
1248
1264
|
/**
|
|
1249
1265
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
1250
1266
|
*
|
|
1251
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1267
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-have-been-called-times.md
|
|
1252
1268
|
*
|
|
1253
1269
|
* ```md
|
|
1254
1270
|
* | key | value |
|
|
@@ -1264,7 +1280,7 @@ declare namespace PreferToHaveBeenCalledTimes {
|
|
|
1264
1280
|
/**
|
|
1265
1281
|
* Suggest using `toHaveBeenCalled`
|
|
1266
1282
|
*
|
|
1267
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1283
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-have-been-called.md
|
|
1268
1284
|
*
|
|
1269
1285
|
* ```md
|
|
1270
1286
|
* | key | value |
|
|
@@ -1280,7 +1296,7 @@ declare namespace PreferToHaveBeenCalled {
|
|
|
1280
1296
|
/**
|
|
1281
1297
|
* Suggest using `toHaveLength()`
|
|
1282
1298
|
*
|
|
1283
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1299
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-have-length.md
|
|
1284
1300
|
*
|
|
1285
1301
|
* ```md
|
|
1286
1302
|
* | key | value |
|
|
@@ -1296,7 +1312,7 @@ declare namespace PreferToHaveLength {
|
|
|
1296
1312
|
/**
|
|
1297
1313
|
* Suggest using `test.todo`
|
|
1298
1314
|
*
|
|
1299
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1315
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-todo.md
|
|
1300
1316
|
*
|
|
1301
1317
|
* ```md
|
|
1302
1318
|
* | key | value |
|
|
@@ -1312,7 +1328,7 @@ declare namespace PreferTodo {
|
|
|
1312
1328
|
/**
|
|
1313
1329
|
* Require setup and teardown code to be within a hook
|
|
1314
1330
|
*
|
|
1315
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1331
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/require-hook.md
|
|
1316
1332
|
*
|
|
1317
1333
|
* ```md
|
|
1318
1334
|
* | key | value |
|
|
@@ -1350,7 +1366,7 @@ declare namespace RequireHook {
|
|
|
1350
1366
|
/**
|
|
1351
1367
|
* Require a message for `toThrow()`
|
|
1352
1368
|
*
|
|
1353
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1369
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/require-to-throw-message.md
|
|
1354
1370
|
*
|
|
1355
1371
|
* ```md
|
|
1356
1372
|
* | key | value |
|
|
@@ -1365,7 +1381,7 @@ declare namespace RequireToThrowMessage {
|
|
|
1365
1381
|
/**
|
|
1366
1382
|
* Require test cases and hooks to be inside a `describe` block
|
|
1367
1383
|
*
|
|
1368
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1384
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/require-top-level-describe.md
|
|
1369
1385
|
*
|
|
1370
1386
|
* ```md
|
|
1371
1387
|
* | key | value |
|
|
@@ -1401,7 +1417,7 @@ declare namespace RequireTopLevelDescribe {
|
|
|
1401
1417
|
/**
|
|
1402
1418
|
* Enforce unbound methods are called with their expected scope
|
|
1403
1419
|
*
|
|
1404
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1420
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/unbound-method.md
|
|
1405
1421
|
*
|
|
1406
1422
|
* ```md
|
|
1407
1423
|
* | key | value |
|
|
@@ -1440,7 +1456,7 @@ declare namespace UnboundMethod {
|
|
|
1440
1456
|
/**
|
|
1441
1457
|
* Enforce valid `describe()` callback
|
|
1442
1458
|
*
|
|
1443
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1459
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-describe-callback.md
|
|
1444
1460
|
*
|
|
1445
1461
|
* ```md
|
|
1446
1462
|
* | key | value |
|
|
@@ -1455,7 +1471,7 @@ declare namespace ValidDescribeCallback {
|
|
|
1455
1471
|
/**
|
|
1456
1472
|
* Require promises that have expectations in their chain to be valid
|
|
1457
1473
|
*
|
|
1458
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1474
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-expect-in-promise.md
|
|
1459
1475
|
*
|
|
1460
1476
|
* ```md
|
|
1461
1477
|
* | key | value |
|
|
@@ -1471,7 +1487,7 @@ declare namespace ValidExpectInPromise {
|
|
|
1471
1487
|
* Require that `resolve` and `reject` modifiers are present (and only) for
|
|
1472
1488
|
* promise-like types
|
|
1473
1489
|
*
|
|
1474
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1490
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-expect-with-promise.md
|
|
1475
1491
|
*
|
|
1476
1492
|
* ```md
|
|
1477
1493
|
* | key | value |
|
|
@@ -1487,7 +1503,7 @@ declare namespace ValidExpectWithPromise {
|
|
|
1487
1503
|
/**
|
|
1488
1504
|
* Enforce valid `expect()` usage
|
|
1489
1505
|
*
|
|
1490
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1506
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-expect.md
|
|
1491
1507
|
*
|
|
1492
1508
|
* ```md
|
|
1493
1509
|
* | key | value |
|
|
@@ -1542,7 +1558,7 @@ declare namespace ValidExpect {
|
|
|
1542
1558
|
/**
|
|
1543
1559
|
* Disallow mocking of non-existing module paths
|
|
1544
1560
|
*
|
|
1545
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1561
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-mock-module-path.md
|
|
1546
1562
|
*
|
|
1547
1563
|
* ```md
|
|
1548
1564
|
* | key | value |
|
|
@@ -1581,7 +1597,7 @@ declare namespace ValidMockModulePath {
|
|
|
1581
1597
|
/**
|
|
1582
1598
|
* Enforce valid titles
|
|
1583
1599
|
*
|
|
1584
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1600
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-title.md
|
|
1585
1601
|
*
|
|
1586
1602
|
* ```md
|
|
1587
1603
|
* | key | value |
|
|
@@ -1741,6 +1757,7 @@ export type EslintJestRules = Readonly<{
|
|
|
1741
1757
|
'jest/prefer-jest-mocked': PreferJestMocked.RuleEntry;
|
|
1742
1758
|
'jest/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
|
|
1743
1759
|
'jest/prefer-mock-promise-shorthand': PreferMockPromiseShorthand.RuleEntry;
|
|
1760
|
+
'jest/prefer-mock-return-shorthand': PreferMockReturnShorthand.RuleEntry;
|
|
1744
1761
|
'jest/prefer-snapshot-hint': PreferSnapshotHint.RuleEntry;
|
|
1745
1762
|
'jest/prefer-spy-on': PreferSpyOn.RuleEntry;
|
|
1746
1763
|
'jest/prefer-strict-equal': PreferStrictEqual.RuleEntry;
|