Skip to content

Commit b5e053e

Browse files
committed
Add eslint-plugin-vitest
1 parent ce0e635 commit b5e053e

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

.eslintrc.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,12 @@ rules:
7979
jsdoc/require-param: off
8080
jsdoc/require-param-type: off
8181
jsdoc/tag-lines: off
82+
overrides:
83+
- files: tests/**/*.test.{js,ts}
84+
plugins:
85+
- vitest
86+
rules:
87+
'vitest/lower-case-title': error
88+
'vitest/no-focused-tests': error
89+
'vitest/no-identical-title': error
90+
'vitest/no-skipped-tests': error

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"eslint-plugin-filenames": "^1.3.2",
6969
"eslint-plugin-import": "^2.26.0",
7070
"eslint-plugin-jsdoc": "^39.6.2",
71+
"eslint-plugin-vitest": "^0.0.18",
7172
"npm-run-all": "^4.1.5",
7273
"prettier-plugin-jsdoc": "^0.4.2",
7374
"release-it": "^15.5.0",

pnpm-lock.yaml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)