File tree 3 files changed +79
-31
lines changed
3 files changed +79
-31
lines changed Original file line number Diff line number Diff line change 99
99
"eslint-plugin-unicorn" : " ^51.0.1" ,
100
100
"eslint-plugin-unused-imports" : " ^3.1.0" ,
101
101
"eslint-plugin-vitest" : " ^0.3.25" ,
102
- "eslint-plugin-vue" : " ^9.22 .0" ,
102
+ "eslint-plugin-vue" : " ^9.23 .0" ,
103
103
"globals" : " ^14.0.0" ,
104
104
"jsonc-eslint-parser" : " ^2.4.0" ,
105
105
"local-pkg" : " ^0.5.0" ,
126
126
"eslint-plugin-react-hooks" : " ^4.6.0" ,
127
127
"eslint-plugin-react-refresh" : " ^0.4.5" ,
128
128
"eslint-plugin-svelte" : " ^2.35.1" ,
129
- "esno" : " ^4.0.0" ,
130
129
"execa" : " ^8.0.1" ,
131
130
"fast-glob" : " ^3.3.2" ,
132
131
"fs-extra" : " ^11.2.0" ,
135
134
"simple-git-hooks" : " ^2.10.0" ,
136
135
"svelte-eslint-parser" : " ^0.33.1" ,
137
136
"tsup" : " ^8.0.2" ,
137
+ "tsx" : " ^4.7.1" ,
138
138
"typescript" : " ^5.3.3"
139
139
},
140
140
"simple-git-hooks" : {
Original file line number Diff line number Diff line change @@ -35,6 +35,26 @@ export async function vue(
35
35
36
36
return [
37
37
{
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
+ } ,
38
58
name : 'coderwyd:vue:setup' ,
39
59
plugins : {
40
60
vue : pluginVue ,
You can’t perform that action at this time.
0 commit comments