Skip to content

Commit

Permalink
chore: add vitest eslint plugin to example
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Oct 5, 2024
1 parent 5758214 commit 3fb6aba
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/with-vitest/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pluginVue from 'eslint-plugin-vue'
import pluginVitest from '@vitest/eslint-plugin'
import vueTsEslintConfig from '@vue/eslint-config-typescript'

export default [
Expand All @@ -10,4 +11,9 @@ export default [

...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),

{
...pluginVitest.configs['recommended'],
files: ['src/**/__tests__/*'],
},
]
1 change: 1 addition & 0 deletions examples/with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@types/jsdom": "^21.1.7",
"@types/node": "^20.16.5",
"@vitejs/plugin-vue": "^5.1.4",
"@vitest/eslint-plugin": "^1.1.6",
"@vue/eslint-config-typescript": "workspace:*",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
Expand Down
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fb6aba

Please sign in to comment.