Skip to content

Commit 3fb6aba

Browse files
committed
chore: add vitest eslint plugin to example
1 parent 5758214 commit 3fb6aba

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

examples/with-vitest/eslint.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pluginVue from 'eslint-plugin-vue'
2+
import pluginVitest from '@vitest/eslint-plugin'
23
import vueTsEslintConfig from '@vue/eslint-config-typescript'
34

45
export default [
@@ -10,4 +11,9 @@ export default [
1011

1112
...pluginVue.configs['flat/essential'],
1213
...vueTsEslintConfig(),
14+
15+
{
16+
...pluginVitest.configs['recommended'],
17+
files: ['src/**/__tests__/*'],
18+
},
1319
]

examples/with-vitest/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@types/jsdom": "^21.1.7",
2121
"@types/node": "^20.16.5",
2222
"@vitejs/plugin-vue": "^5.1.4",
23+
"@vitest/eslint-plugin": "^1.1.6",
2324
"@vue/eslint-config-typescript": "workspace:*",
2425
"@vue/test-utils": "^2.4.6",
2526
"@vue/tsconfig": "^0.5.1",

pnpm-lock.yaml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)