Skip to content

Commit 2816fdf

Browse files
committed
feat(vitest): add new rules
1 parent 8b9eb0e commit 2816fdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/vitest.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function vitest() {
5858
'vitest/no-standalone-expect': 'warn',
5959
'vitest/no-test-prefixes': 'warn',
6060
'vitest/no-test-return-statement': 'warn',
61+
'vitest/no-unneeded-async-expect-function': 'warn',
6162

6263
'vitest/prefer-called-once': 'warn',
6364
'vitest/prefer-called-times': 'off',
@@ -73,6 +74,7 @@ function vitest() {
7374
'vitest/prefer-importing-vitest-globals': 'off',
7475
'vitest/prefer-lowercase-title': 'warn',
7576
'vitest/prefer-mock-promise-shorthand': 'warn',
77+
'vitest/prefer-mock-return-shorthand': 'warn',
7678
'vitest/prefer-snapshot-hint': 'warn',
7779
'vitest/prefer-spy-on': 'warn',
7880
'vitest/prefer-strict-boolean-matchers': 'off',

0 commit comments

Comments
 (0)