fix: auto-import自动导入eslint报未定义错误

Former-commit-id: 5aafa2907d8045ebdbe45d63d52317ea25a238f9
This commit is contained in:
haoxr
2023-01-15 10:36:14 +08:00
parent 3a24f39649
commit 3c38628218
8 changed files with 276 additions and 22 deletions

View File

@@ -10,23 +10,13 @@ module.exports = {
defineExpose: 'readonly',
DialogType: "readonly",
OptionType: "readonly",
ElMessageBox: "readonly",
ElMessage: "readonly",
computed: "readonly",
watch: "readonly",
ref:"readonly",
toRef:"readonly",
reactive:"readonly",
toRefs:"readonly",
onMounted:"readonly",
onBeforeUnmount:"readonly",
getCurrentInstance:"readonly",
},
parser: 'vue-eslint-parser',
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:@typescript-eslint/recommended'
'plugin:@typescript-eslint/recommended',
"./.eslintrc-auto-import.json"
],
parserOptions: {
ecmaVersion: 'latest',