Skip to content

Commit 7d5faea

Browse files
committed
feat: upgrade vue plugin
1 parent 8e68730 commit 7d5faea

File tree

3 files changed

+79
-31
lines changed

3 files changed

+79
-31
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"eslint-plugin-unicorn": "^51.0.1",
100100
"eslint-plugin-unused-imports": "^3.1.0",
101101
"eslint-plugin-vitest": "^0.3.25",
102-
"eslint-plugin-vue": "^9.22.0",
102+
"eslint-plugin-vue": "^9.23.0",
103103
"globals": "^14.0.0",
104104
"jsonc-eslint-parser": "^2.4.0",
105105
"local-pkg": "^0.5.0",
@@ -126,7 +126,6 @@
126126
"eslint-plugin-react-hooks": "^4.6.0",
127127
"eslint-plugin-react-refresh": "^0.4.5",
128128
"eslint-plugin-svelte": "^2.35.1",
129-
"esno": "^4.0.0",
130129
"execa": "^8.0.1",
131130
"fast-glob": "^3.3.2",
132131
"fs-extra": "^11.2.0",
@@ -135,6 +134,7 @@
135134
"simple-git-hooks": "^2.10.0",
136135
"svelte-eslint-parser": "^0.33.1",
137136
"tsup": "^8.0.2",
137+
"tsx": "^4.7.1",
138138
"typescript": "^5.3.3"
139139
},
140140
"simple-git-hooks": {

pnpm-lock.yaml

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

src/configs/vue.ts

+20
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,26 @@ export async function vue(
3535

3636
return [
3737
{
38+
// This allows Vue plugin to work with auto imports
39+
// https://github.com/vuejs/eslint-plugin-vue/pull/2422
40+
languageOptions: {
41+
globals: {
42+
computed: 'readonly',
43+
defineEmits: 'readonly',
44+
defineExpose: 'readonly',
45+
defineProps: 'readonly',
46+
onMounted: 'readonly',
47+
onUnmounted: 'readonly',
48+
reactive: 'readonly',
49+
ref: 'readonly',
50+
shallowReactive: 'readonly',
51+
shallowRef: 'readonly',
52+
toRef: 'readonly',
53+
toRefs: 'readonly',
54+
watch: 'readonly',
55+
watchEffect: 'readonly',
56+
},
57+
},
3858
name: 'coderwyd:vue:setup',
3959
plugins: {
4060
vue: pluginVue,

0 commit comments

Comments
 (0)