优化unplugin-auto-import插件配置

This commit is contained in:
hooray
2022-05-02 16:45:38 +08:00
parent cf6fef85c0
commit e1344e7c91
4 changed files with 16 additions and 58 deletions
+14 -1
View File
@@ -5,8 +5,21 @@ export default function createAutoImport() {
return autoImport({
imports: [
'vue',
'vue-router'
'vue-router',
{
'vue': [
'defineProps',
'defineEmits',
'defineExpose',
'withDefaults'
]
}
],
eslintrc: {
enabled: true,
filepath: './.eslintrc-auto-import.json',
globalsPropValue: true
},
resolvers: [
ElementPlusResolver()
],