fix: auto-import自动导入eslint报未定义错误
Former-commit-id: 5aafa2907d8045ebdbe45d63d52317ea25a238f9
This commit is contained in:
1 parent
3a24f39649
commit
3c38628218
8 files changed
+276
-22
No files matched your search
@@ -45,6 +45,12 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
||||
AutoImport({
|
||||
// 自动导入 Vue 相关函数,如:ref, reactive, toRef 等
|
||||
imports: ['vue', '@vueuse/core'],
|
||||
//
|
||||
eslintrc: {
|
||||
enabled: true,
|
||||
filepath: './.eslintrc-auto-import.json',
|
||||
globalsPropValue: true
|
||||
},
|
||||
resolvers: [
|
||||
// 自动导入 Element Plus 相关函数,如:ElMessage, ElMessageBox... (带样式)
|
||||
ElementPlusResolver(),
|
||||
|
||||
Reference in new issue
Block a user