eslint-config-typed 4.3.1 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/plugins/ts-restrictions/rules/check-destructuring-completeness.d.mts.map +1 -1
- package/dist/plugins/ts-restrictions/rules/check-destructuring-completeness.mjs +8 -0
- package/dist/plugins/ts-restrictions/rules/check-destructuring-completeness.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 +14 -14
- 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/plugins/ts-restrictions/rules/check-destructuring-completeness.mts +14 -0
- package/src/plugins/ts-restrictions/rules/check-destructuring-completeness.test.mts +32 -0
- 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
|
@@ -10,7 +10,7 @@ type SpreadOptionsIfIsArray<
|
|
|
10
10
|
/**
|
|
11
11
|
* Enforce `test` and `it` usage conventions
|
|
12
12
|
*
|
|
13
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
13
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/consistent-test-it.md
|
|
14
14
|
*
|
|
15
15
|
* ```md
|
|
16
16
|
* | key | value |
|
|
@@ -63,7 +63,7 @@ namespace ConsistentTestIt {
|
|
|
63
63
|
/**
|
|
64
64
|
* Enforce assertion to be made in a test body
|
|
65
65
|
*
|
|
66
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
66
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/expect-expect.md
|
|
67
67
|
*
|
|
68
68
|
* ```md
|
|
69
69
|
* | key | value |
|
|
@@ -113,7 +113,7 @@ namespace ExpectExpect {
|
|
|
113
113
|
/**
|
|
114
114
|
* Enforces a maximum number assertion calls in a test body
|
|
115
115
|
*
|
|
116
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
116
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/max-expects.md
|
|
117
117
|
*
|
|
118
118
|
* ```md
|
|
119
119
|
* | key | value |
|
|
@@ -154,7 +154,7 @@ namespace MaxExpects {
|
|
|
154
154
|
/**
|
|
155
155
|
* Enforces a maximum depth to nested describe calls
|
|
156
156
|
*
|
|
157
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
157
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/max-nested-describe.md
|
|
158
158
|
*
|
|
159
159
|
* ```md
|
|
160
160
|
* | key | value |
|
|
@@ -195,7 +195,7 @@ namespace MaxNestedDescribe {
|
|
|
195
195
|
/**
|
|
196
196
|
* Disallow alias methods
|
|
197
197
|
*
|
|
198
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
198
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-alias-methods.md
|
|
199
199
|
*
|
|
200
200
|
* ```md
|
|
201
201
|
* | key | value |
|
|
@@ -212,7 +212,7 @@ namespace NoAliasMethods {
|
|
|
212
212
|
/**
|
|
213
213
|
* Disallow commented out tests
|
|
214
214
|
*
|
|
215
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
215
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-commented-out-tests.md
|
|
216
216
|
*
|
|
217
217
|
* ```md
|
|
218
218
|
* | key | value |
|
|
@@ -228,7 +228,7 @@ namespace NoCommentedOutTests {
|
|
|
228
228
|
/**
|
|
229
229
|
* Disallow calling `expect` conditionally
|
|
230
230
|
*
|
|
231
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
231
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-conditional-expect.md
|
|
232
232
|
*
|
|
233
233
|
* ```md
|
|
234
234
|
* | key | value |
|
|
@@ -244,7 +244,7 @@ namespace NoConditionalExpect {
|
|
|
244
244
|
/**
|
|
245
245
|
* Disallow conditional logic in tests
|
|
246
246
|
*
|
|
247
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
247
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-conditional-in-test.md
|
|
248
248
|
*
|
|
249
249
|
* ```md
|
|
250
250
|
* | key | value |
|
|
@@ -260,7 +260,7 @@ namespace NoConditionalInTest {
|
|
|
260
260
|
/**
|
|
261
261
|
* Disallow confusing usages of jest.setTimeout
|
|
262
262
|
*
|
|
263
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
263
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-confusing-set-timeout.md
|
|
264
264
|
*
|
|
265
265
|
* ```md
|
|
266
266
|
* | key | value |
|
|
@@ -276,7 +276,7 @@ namespace NoConfusingSetTimeout {
|
|
|
276
276
|
/**
|
|
277
277
|
* Disallow use of deprecated functions
|
|
278
278
|
*
|
|
279
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
279
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-deprecated-functions.md
|
|
280
280
|
*
|
|
281
281
|
* ```md
|
|
282
282
|
* | key | value |
|
|
@@ -293,7 +293,7 @@ namespace NoDeprecatedFunctions {
|
|
|
293
293
|
/**
|
|
294
294
|
* Disallow disabled tests
|
|
295
295
|
*
|
|
296
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
296
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-disabled-tests.md
|
|
297
297
|
*
|
|
298
298
|
* ```md
|
|
299
299
|
* | key | value |
|
|
@@ -309,7 +309,7 @@ namespace NoDisabledTests {
|
|
|
309
309
|
/**
|
|
310
310
|
* Disallow using a callback in asynchronous tests and hooks
|
|
311
311
|
*
|
|
312
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
312
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-done-callback.md
|
|
313
313
|
*
|
|
314
314
|
* ```md
|
|
315
315
|
* | key | value |
|
|
@@ -326,7 +326,7 @@ namespace NoDoneCallback {
|
|
|
326
326
|
/**
|
|
327
327
|
* Disallow duplicate setup and teardown hooks
|
|
328
328
|
*
|
|
329
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
329
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-duplicate-hooks.md
|
|
330
330
|
*
|
|
331
331
|
* ```md
|
|
332
332
|
* | key | value |
|
|
@@ -342,7 +342,7 @@ namespace NoDuplicateHooks {
|
|
|
342
342
|
/**
|
|
343
343
|
* Disallow using equality matchers on error types
|
|
344
344
|
*
|
|
345
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
345
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-error-equal.md
|
|
346
346
|
*
|
|
347
347
|
* ```md
|
|
348
348
|
* | key | value |
|
|
@@ -359,7 +359,7 @@ namespace NoErrorEqual {
|
|
|
359
359
|
/**
|
|
360
360
|
* Disallow using `exports` in files containing tests
|
|
361
361
|
*
|
|
362
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
362
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-export.md
|
|
363
363
|
*
|
|
364
364
|
* ```md
|
|
365
365
|
* | key | value |
|
|
@@ -375,7 +375,7 @@ namespace NoExport {
|
|
|
375
375
|
/**
|
|
376
376
|
* Disallow focused tests
|
|
377
377
|
*
|
|
378
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
378
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-focused-tests.md
|
|
379
379
|
*
|
|
380
380
|
* ```md
|
|
381
381
|
* | key | value |
|
|
@@ -392,7 +392,7 @@ namespace NoFocusedTests {
|
|
|
392
392
|
/**
|
|
393
393
|
* Disallow setup and teardown hooks
|
|
394
394
|
*
|
|
395
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
395
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-hooks.md
|
|
396
396
|
*
|
|
397
397
|
* ```md
|
|
398
398
|
* | key | value |
|
|
@@ -438,7 +438,7 @@ namespace NoHooks {
|
|
|
438
438
|
/**
|
|
439
439
|
* Disallow identical titles
|
|
440
440
|
*
|
|
441
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
441
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-identical-title.md
|
|
442
442
|
*
|
|
443
443
|
* ```md
|
|
444
444
|
* | key | value |
|
|
@@ -454,7 +454,7 @@ namespace NoIdenticalTitle {
|
|
|
454
454
|
/**
|
|
455
455
|
* Disallow string interpolation inside snapshots
|
|
456
456
|
*
|
|
457
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
457
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-interpolation-in-snapshots.md
|
|
458
458
|
*
|
|
459
459
|
* ```md
|
|
460
460
|
* | key | value |
|
|
@@ -470,7 +470,7 @@ namespace NoInterpolationInSnapshots {
|
|
|
470
470
|
/**
|
|
471
471
|
* Disallow Jasmine globals
|
|
472
472
|
*
|
|
473
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
473
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-jasmine-globals.md
|
|
474
474
|
*
|
|
475
475
|
* ```md
|
|
476
476
|
* | key | value |
|
|
@@ -487,7 +487,7 @@ namespace NoJasmineGlobals {
|
|
|
487
487
|
/**
|
|
488
488
|
* Disallow large snapshots
|
|
489
489
|
*
|
|
490
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
490
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-large-snapshots.md
|
|
491
491
|
*
|
|
492
492
|
* ```md
|
|
493
493
|
* | key | value |
|
|
@@ -538,7 +538,7 @@ namespace NoLargeSnapshots {
|
|
|
538
538
|
/**
|
|
539
539
|
* Disallow manually importing from `__mocks__`
|
|
540
540
|
*
|
|
541
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
541
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-mocks-import.md
|
|
542
542
|
*
|
|
543
543
|
* ```md
|
|
544
544
|
* | key | value |
|
|
@@ -554,7 +554,7 @@ namespace NoMocksImport {
|
|
|
554
554
|
/**
|
|
555
555
|
* Disallow specific `jest.` methods
|
|
556
556
|
*
|
|
557
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
557
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-restricted-jest-methods.md
|
|
558
558
|
*
|
|
559
559
|
* ```md
|
|
560
560
|
* | key | value |
|
|
@@ -592,7 +592,7 @@ namespace NoRestrictedJestMethods {
|
|
|
592
592
|
/**
|
|
593
593
|
* Disallow specific matchers & modifiers
|
|
594
594
|
*
|
|
595
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
595
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-restricted-matchers.md
|
|
596
596
|
*
|
|
597
597
|
* ```md
|
|
598
598
|
* | key | value |
|
|
@@ -630,7 +630,7 @@ namespace NoRestrictedMatchers {
|
|
|
630
630
|
/**
|
|
631
631
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
632
632
|
*
|
|
633
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
633
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-standalone-expect.md
|
|
634
634
|
*
|
|
635
635
|
* ```md
|
|
636
636
|
* | key | value |
|
|
@@ -673,7 +673,7 @@ namespace NoStandaloneExpect {
|
|
|
673
673
|
/**
|
|
674
674
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
675
675
|
*
|
|
676
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
676
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-test-prefixes.md
|
|
677
677
|
*
|
|
678
678
|
* ```md
|
|
679
679
|
* | key | value |
|
|
@@ -690,7 +690,7 @@ namespace NoTestPrefixes {
|
|
|
690
690
|
/**
|
|
691
691
|
* Disallow explicitly returning from tests
|
|
692
692
|
*
|
|
693
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
693
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-test-return-statement.md
|
|
694
694
|
*
|
|
695
695
|
* ```md
|
|
696
696
|
* | key | value |
|
|
@@ -706,7 +706,7 @@ namespace NoTestReturnStatement {
|
|
|
706
706
|
/**
|
|
707
707
|
* Disallow unnecessary assertions based on types
|
|
708
708
|
*
|
|
709
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
709
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-unnecessary-assertion.md
|
|
710
710
|
*
|
|
711
711
|
* ```md
|
|
712
712
|
* | key | value |
|
|
@@ -723,7 +723,7 @@ namespace NoUnnecessaryAssertion {
|
|
|
723
723
|
/**
|
|
724
724
|
* Disallow unnecessary async function wrapper for expected promises
|
|
725
725
|
*
|
|
726
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
726
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-unneeded-async-expect-function.md
|
|
727
727
|
*
|
|
728
728
|
* ```md
|
|
729
729
|
* | key | value |
|
|
@@ -740,7 +740,7 @@ namespace NoUnneededAsyncExpectFunction {
|
|
|
740
740
|
/**
|
|
741
741
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
742
742
|
*
|
|
743
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
743
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/no-untyped-mock-factory.md
|
|
744
744
|
*
|
|
745
745
|
* ```md
|
|
746
746
|
* | key | value |
|
|
@@ -757,7 +757,7 @@ namespace NoUntypedMockFactory {
|
|
|
757
757
|
/**
|
|
758
758
|
* Enforce padding around `afterAll` blocks
|
|
759
759
|
*
|
|
760
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
760
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-after-all-blocks.md
|
|
761
761
|
*
|
|
762
762
|
* ```md
|
|
763
763
|
* | key | value |
|
|
@@ -774,7 +774,7 @@ namespace PaddingAroundAfterAllBlocks {
|
|
|
774
774
|
/**
|
|
775
775
|
* Enforce padding around `afterEach` blocks
|
|
776
776
|
*
|
|
777
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
777
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-after-each-blocks.md
|
|
778
778
|
*
|
|
779
779
|
* ```md
|
|
780
780
|
* | key | value |
|
|
@@ -791,7 +791,7 @@ namespace PaddingAroundAfterEachBlocks {
|
|
|
791
791
|
/**
|
|
792
792
|
* Enforce padding around Jest functions
|
|
793
793
|
*
|
|
794
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
794
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-all.md
|
|
795
795
|
*
|
|
796
796
|
* ```md
|
|
797
797
|
* | key | value |
|
|
@@ -808,7 +808,7 @@ namespace PaddingAroundAll {
|
|
|
808
808
|
/**
|
|
809
809
|
* Enforce padding around `beforeAll` blocks
|
|
810
810
|
*
|
|
811
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
811
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-before-all-blocks.md
|
|
812
812
|
*
|
|
813
813
|
* ```md
|
|
814
814
|
* | key | value |
|
|
@@ -825,7 +825,7 @@ namespace PaddingAroundBeforeAllBlocks {
|
|
|
825
825
|
/**
|
|
826
826
|
* Enforce padding around `beforeEach` blocks
|
|
827
827
|
*
|
|
828
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
828
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-before-each-blocks.md
|
|
829
829
|
*
|
|
830
830
|
* ```md
|
|
831
831
|
* | key | value |
|
|
@@ -842,7 +842,7 @@ namespace PaddingAroundBeforeEachBlocks {
|
|
|
842
842
|
/**
|
|
843
843
|
* Enforce padding around `describe` blocks
|
|
844
844
|
*
|
|
845
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
845
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-describe-blocks.md
|
|
846
846
|
*
|
|
847
847
|
* ```md
|
|
848
848
|
* | key | value |
|
|
@@ -859,7 +859,7 @@ namespace PaddingAroundDescribeBlocks {
|
|
|
859
859
|
/**
|
|
860
860
|
* Enforce padding around `expect` groups
|
|
861
861
|
*
|
|
862
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
862
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-expect-groups.md
|
|
863
863
|
*
|
|
864
864
|
* ```md
|
|
865
865
|
* | key | value |
|
|
@@ -876,7 +876,7 @@ namespace PaddingAroundExpectGroups {
|
|
|
876
876
|
/**
|
|
877
877
|
* Enforce padding around `test` and `it` blocks
|
|
878
878
|
*
|
|
879
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
879
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/padding-around-test-blocks.md
|
|
880
880
|
*
|
|
881
881
|
* ```md
|
|
882
882
|
* | key | value |
|
|
@@ -893,7 +893,7 @@ namespace PaddingAroundTestBlocks {
|
|
|
893
893
|
/**
|
|
894
894
|
* Suggest using `toHaveBeenCalledWith()`
|
|
895
895
|
*
|
|
896
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
896
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-called-with.md
|
|
897
897
|
*
|
|
898
898
|
* ```md
|
|
899
899
|
* | key | value |
|
|
@@ -909,7 +909,7 @@ namespace PreferCalledWith {
|
|
|
909
909
|
/**
|
|
910
910
|
* Suggest using the built-in comparison matchers
|
|
911
911
|
*
|
|
912
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
912
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-comparison-matcher.md
|
|
913
913
|
*
|
|
914
914
|
* ```md
|
|
915
915
|
* | key | value |
|
|
@@ -926,7 +926,7 @@ namespace PreferComparisonMatcher {
|
|
|
926
926
|
/**
|
|
927
927
|
* Prefer using `.each` rather than manual loops
|
|
928
928
|
*
|
|
929
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
929
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-each.md
|
|
930
930
|
*
|
|
931
931
|
* ```md
|
|
932
932
|
* | key | value |
|
|
@@ -942,7 +942,7 @@ namespace PreferEach {
|
|
|
942
942
|
/**
|
|
943
943
|
* Prefer having the last statement in a test be an assertion
|
|
944
944
|
*
|
|
945
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
945
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-ending-with-an-expect.md
|
|
946
946
|
*
|
|
947
947
|
* ```md
|
|
948
948
|
* | key | value |
|
|
@@ -992,7 +992,7 @@ namespace PreferEndingWithAnExpect {
|
|
|
992
992
|
/**
|
|
993
993
|
* Suggest using the built-in equality matchers
|
|
994
994
|
*
|
|
995
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
995
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-equality-matcher.md
|
|
996
996
|
*
|
|
997
997
|
* ```md
|
|
998
998
|
* | key | value |
|
|
@@ -1009,7 +1009,7 @@ namespace PreferEqualityMatcher {
|
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
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-expect-assertions.md
|
|
1013
1013
|
*
|
|
1014
1014
|
* ```md
|
|
1015
1015
|
* | key | value |
|
|
@@ -1058,7 +1058,7 @@ namespace PreferExpectAssertions {
|
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
1060
1060
|
*
|
|
1061
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1061
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-expect-resolves.md
|
|
1062
1062
|
*
|
|
1063
1063
|
* ```md
|
|
1064
1064
|
* | key | value |
|
|
@@ -1075,7 +1075,7 @@ namespace PreferExpectResolves {
|
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Prefer having hooks in a consistent order
|
|
1077
1077
|
*
|
|
1078
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1078
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-hooks-in-order.md
|
|
1079
1079
|
*
|
|
1080
1080
|
* ```md
|
|
1081
1081
|
* | key | value |
|
|
@@ -1091,7 +1091,7 @@ namespace PreferHooksInOrder {
|
|
|
1091
1091
|
/**
|
|
1092
1092
|
* Suggest having hooks before any test cases
|
|
1093
1093
|
*
|
|
1094
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1094
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-hooks-on-top.md
|
|
1095
1095
|
*
|
|
1096
1096
|
* ```md
|
|
1097
1097
|
* | key | value |
|
|
@@ -1107,7 +1107,7 @@ namespace PreferHooksOnTop {
|
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Prefer importing Jest globals
|
|
1109
1109
|
*
|
|
1110
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1110
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-importing-jest-globals.md
|
|
1111
1111
|
*
|
|
1112
1112
|
* ```md
|
|
1113
1113
|
* | key | value |
|
|
@@ -1166,7 +1166,7 @@ namespace PreferImportingJestGlobals {
|
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
1168
1168
|
*
|
|
1169
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1169
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-jest-mocked.md
|
|
1170
1170
|
*
|
|
1171
1171
|
* ```md
|
|
1172
1172
|
* | key | value |
|
|
@@ -1183,7 +1183,7 @@ namespace PreferJestMocked {
|
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Enforce lowercase test names
|
|
1185
1185
|
*
|
|
1186
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1186
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-lowercase-title.md
|
|
1187
1187
|
*
|
|
1188
1188
|
* ```md
|
|
1189
1189
|
* | key | value |
|
|
@@ -1253,7 +1253,7 @@ namespace PreferLowercaseTitle {
|
|
|
1253
1253
|
/**
|
|
1254
1254
|
* Prefer mock resolved/rejected shorthands for promises
|
|
1255
1255
|
*
|
|
1256
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1256
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-mock-promise-shorthand.md
|
|
1257
1257
|
*
|
|
1258
1258
|
* ```md
|
|
1259
1259
|
* | key | value |
|
|
@@ -1267,10 +1267,27 @@ namespace PreferMockPromiseShorthand {
|
|
|
1267
1267
|
export type RuleEntry = Linter.StringSeverity;
|
|
1268
1268
|
}
|
|
1269
1269
|
|
|
1270
|
+
/**
|
|
1271
|
+
* Prefer mock return shorthands
|
|
1272
|
+
*
|
|
1273
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-mock-return-shorthand.md
|
|
1274
|
+
*
|
|
1275
|
+
* ```md
|
|
1276
|
+
* | key | value |
|
|
1277
|
+
* | :--------- | :--------- |
|
|
1278
|
+
* | type | suggestion |
|
|
1279
|
+
* | deprecated | false |
|
|
1280
|
+
* | fixable | code |
|
|
1281
|
+
* ```
|
|
1282
|
+
*/
|
|
1283
|
+
namespace PreferMockReturnShorthand {
|
|
1284
|
+
export type RuleEntry = Linter.StringSeverity;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1270
1287
|
/**
|
|
1271
1288
|
* Prefer including a hint with external snapshots
|
|
1272
1289
|
*
|
|
1273
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1290
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-snapshot-hint.md
|
|
1274
1291
|
*
|
|
1275
1292
|
* ```md
|
|
1276
1293
|
* | key | value |
|
|
@@ -1306,7 +1323,7 @@ namespace PreferSnapshotHint {
|
|
|
1306
1323
|
/**
|
|
1307
1324
|
* Suggest using `jest.spyOn()`
|
|
1308
1325
|
*
|
|
1309
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1326
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-spy-on.md
|
|
1310
1327
|
*
|
|
1311
1328
|
* ```md
|
|
1312
1329
|
* | key | value |
|
|
@@ -1323,7 +1340,7 @@ namespace PreferSpyOn {
|
|
|
1323
1340
|
/**
|
|
1324
1341
|
* Suggest using `toStrictEqual()`
|
|
1325
1342
|
*
|
|
1326
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1343
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-strict-equal.md
|
|
1327
1344
|
*
|
|
1328
1345
|
* ```md
|
|
1329
1346
|
* | key | value |
|
|
@@ -1340,7 +1357,7 @@ namespace PreferStrictEqual {
|
|
|
1340
1357
|
/**
|
|
1341
1358
|
* Suggest using `toBe()` for primitive literals
|
|
1342
1359
|
*
|
|
1343
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1360
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-be.md
|
|
1344
1361
|
*
|
|
1345
1362
|
* ```md
|
|
1346
1363
|
* | key | value |
|
|
@@ -1357,7 +1374,7 @@ namespace PreferToBe {
|
|
|
1357
1374
|
/**
|
|
1358
1375
|
* Suggest using `toContain()`
|
|
1359
1376
|
*
|
|
1360
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1377
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-contain.md
|
|
1361
1378
|
*
|
|
1362
1379
|
* ```md
|
|
1363
1380
|
* | key | value |
|
|
@@ -1374,7 +1391,7 @@ namespace PreferToContain {
|
|
|
1374
1391
|
/**
|
|
1375
1392
|
* Suggest using `toHaveBeenCalledTimes()`
|
|
1376
1393
|
*
|
|
1377
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1394
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-have-been-called-times.md
|
|
1378
1395
|
*
|
|
1379
1396
|
* ```md
|
|
1380
1397
|
* | key | value |
|
|
@@ -1391,7 +1408,7 @@ namespace PreferToHaveBeenCalledTimes {
|
|
|
1391
1408
|
/**
|
|
1392
1409
|
* Suggest using `toHaveBeenCalled`
|
|
1393
1410
|
*
|
|
1394
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1411
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-have-been-called.md
|
|
1395
1412
|
*
|
|
1396
1413
|
* ```md
|
|
1397
1414
|
* | key | value |
|
|
@@ -1408,7 +1425,7 @@ namespace PreferToHaveBeenCalled {
|
|
|
1408
1425
|
/**
|
|
1409
1426
|
* Suggest using `toHaveLength()`
|
|
1410
1427
|
*
|
|
1411
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1428
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-to-have-length.md
|
|
1412
1429
|
*
|
|
1413
1430
|
* ```md
|
|
1414
1431
|
* | key | value |
|
|
@@ -1425,7 +1442,7 @@ namespace PreferToHaveLength {
|
|
|
1425
1442
|
/**
|
|
1426
1443
|
* Suggest using `test.todo`
|
|
1427
1444
|
*
|
|
1428
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1445
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/prefer-todo.md
|
|
1429
1446
|
*
|
|
1430
1447
|
* ```md
|
|
1431
1448
|
* | key | value |
|
|
@@ -1442,7 +1459,7 @@ namespace PreferTodo {
|
|
|
1442
1459
|
/**
|
|
1443
1460
|
* Require setup and teardown code to be within a hook
|
|
1444
1461
|
*
|
|
1445
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1462
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/require-hook.md
|
|
1446
1463
|
*
|
|
1447
1464
|
* ```md
|
|
1448
1465
|
* | key | value |
|
|
@@ -1485,7 +1502,7 @@ namespace RequireHook {
|
|
|
1485
1502
|
/**
|
|
1486
1503
|
* Require a message for `toThrow()`
|
|
1487
1504
|
*
|
|
1488
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1505
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/require-to-throw-message.md
|
|
1489
1506
|
*
|
|
1490
1507
|
* ```md
|
|
1491
1508
|
* | key | value |
|
|
@@ -1501,7 +1518,7 @@ namespace RequireToThrowMessage {
|
|
|
1501
1518
|
/**
|
|
1502
1519
|
* Require test cases and hooks to be inside a `describe` block
|
|
1503
1520
|
*
|
|
1504
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1521
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/require-top-level-describe.md
|
|
1505
1522
|
*
|
|
1506
1523
|
* ```md
|
|
1507
1524
|
* | key | value |
|
|
@@ -1542,7 +1559,7 @@ namespace RequireTopLevelDescribe {
|
|
|
1542
1559
|
/**
|
|
1543
1560
|
* Enforce unbound methods are called with their expected scope
|
|
1544
1561
|
*
|
|
1545
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1562
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/unbound-method.md
|
|
1546
1563
|
*
|
|
1547
1564
|
* ```md
|
|
1548
1565
|
* | key | value |
|
|
@@ -1586,7 +1603,7 @@ namespace UnboundMethod {
|
|
|
1586
1603
|
/**
|
|
1587
1604
|
* Enforce valid `describe()` callback
|
|
1588
1605
|
*
|
|
1589
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1606
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-describe-callback.md
|
|
1590
1607
|
*
|
|
1591
1608
|
* ```md
|
|
1592
1609
|
* | key | value |
|
|
@@ -1602,7 +1619,7 @@ namespace ValidDescribeCallback {
|
|
|
1602
1619
|
/**
|
|
1603
1620
|
* Require promises that have expectations in their chain to be valid
|
|
1604
1621
|
*
|
|
1605
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1622
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-expect-in-promise.md
|
|
1606
1623
|
*
|
|
1607
1624
|
* ```md
|
|
1608
1625
|
* | key | value |
|
|
@@ -1619,7 +1636,7 @@ namespace ValidExpectInPromise {
|
|
|
1619
1636
|
* Require that `resolve` and `reject` modifiers are present (and only) for
|
|
1620
1637
|
* promise-like types
|
|
1621
1638
|
*
|
|
1622
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1639
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-expect-with-promise.md
|
|
1623
1640
|
*
|
|
1624
1641
|
* ```md
|
|
1625
1642
|
* | key | value |
|
|
@@ -1636,7 +1653,7 @@ namespace ValidExpectWithPromise {
|
|
|
1636
1653
|
/**
|
|
1637
1654
|
* Enforce valid `expect()` usage
|
|
1638
1655
|
*
|
|
1639
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1656
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-expect.md
|
|
1640
1657
|
*
|
|
1641
1658
|
* ```md
|
|
1642
1659
|
* | key | value |
|
|
@@ -1696,7 +1713,7 @@ namespace ValidExpect {
|
|
|
1696
1713
|
/**
|
|
1697
1714
|
* Disallow mocking of non-existing module paths
|
|
1698
1715
|
*
|
|
1699
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1716
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-mock-module-path.md
|
|
1700
1717
|
*
|
|
1701
1718
|
* ```md
|
|
1702
1719
|
* | key | value |
|
|
@@ -1740,7 +1757,7 @@ namespace ValidMockModulePath {
|
|
|
1740
1757
|
/**
|
|
1741
1758
|
* Enforce valid titles
|
|
1742
1759
|
*
|
|
1743
|
-
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.
|
|
1760
|
+
* @link https://github.com/jest-community/eslint-plugin-jest/blob/v29.11.2/docs/rules/valid-title.md
|
|
1744
1761
|
*
|
|
1745
1762
|
* ```md
|
|
1746
1763
|
* | key | value |
|
|
@@ -1912,6 +1929,7 @@ export type EslintJestRules = Readonly<{
|
|
|
1912
1929
|
'jest/prefer-jest-mocked': PreferJestMocked.RuleEntry;
|
|
1913
1930
|
'jest/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
|
|
1914
1931
|
'jest/prefer-mock-promise-shorthand': PreferMockPromiseShorthand.RuleEntry;
|
|
1932
|
+
'jest/prefer-mock-return-shorthand': PreferMockReturnShorthand.RuleEntry;
|
|
1915
1933
|
'jest/prefer-snapshot-hint': PreferSnapshotHint.RuleEntry;
|
|
1916
1934
|
'jest/prefer-spy-on': PreferSpyOn.RuleEntry;
|
|
1917
1935
|
'jest/prefer-strict-equal': PreferStrictEqual.RuleEntry;
|
|
@@ -1485,6 +1485,24 @@ namespace PreferMockPromiseShorthand {
|
|
|
1485
1485
|
export type RuleEntry = Linter.StringSeverity;
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
|
+
/**
|
|
1489
|
+
* Prefer mock return shorthands
|
|
1490
|
+
*
|
|
1491
|
+
* @link https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
1492
|
+
*
|
|
1493
|
+
* ```md
|
|
1494
|
+
* | key | value |
|
|
1495
|
+
* | :---------- | :--------- |
|
|
1496
|
+
* | type | suggestion |
|
|
1497
|
+
* | deprecated | false |
|
|
1498
|
+
* | fixable | code |
|
|
1499
|
+
* | recommended | false |
|
|
1500
|
+
* ```
|
|
1501
|
+
*/
|
|
1502
|
+
namespace PreferMockReturnShorthand {
|
|
1503
|
+
export type RuleEntry = Linter.StringSeverity;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1488
1506
|
/**
|
|
1489
1507
|
* Enforce including a hint with external snapshots
|
|
1490
1508
|
*
|
|
@@ -2205,6 +2223,7 @@ export type EslintVitestRules = Readonly<{
|
|
|
2205
2223
|
'vitest/prefer-importing-vitest-globals': PreferImportingVitestGlobals.RuleEntry;
|
|
2206
2224
|
'vitest/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
|
|
2207
2225
|
'vitest/prefer-mock-promise-shorthand': PreferMockPromiseShorthand.RuleEntry;
|
|
2226
|
+
'vitest/prefer-mock-return-shorthand': PreferMockReturnShorthand.RuleEntry;
|
|
2208
2227
|
'vitest/prefer-snapshot-hint': PreferSnapshotHint.RuleEntry;
|
|
2209
2228
|
'vitest/prefer-spy-on': PreferSpyOn.RuleEntry;
|
|
2210
2229
|
'vitest/prefer-strict-boolean-matchers': PreferStrictBooleanMatchers.RuleEntry;
|