.eslintrc.js修改
定义全局globals
module.exports = {globals: {defineProps: 'readonly',defineEmits: 'readonly',defineExpose: 'readonly',withDefaults: 'readonly'},env: {browser: true,es2021: true},extends: ['plugin:vue/vue3-strongly-recommended', 'standard'],parserOptions: {ecmaVersion: 12,parser: '@typescript-eslint/parser',sourceType: 'module'},plugins: ['vue', '@typescript-eslint'],rules: {'vue/no-mutating-props': 'off'},overrides: [{files: ['src/api/**/*.ts'],rules: {camelcase: 'off'}}]
}