We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite disposition:
plugins: [ vue(), vueDevTools(), AutoImport({ imports: ['vue'], resolvers: [ElementPlusResolver()], eslintrc: { enabled: true, }, }), Components({ resolvers: [ElementPlusResolver()], }), ]
How can I write the eslint configuration so that I don't get no-undef errors when using the vue api
I tried to introduce.eslintrc-auto-import.json, but it didn't work and would invalidate all of my eslint rules
eslint.config.ts
import pluginVue from 'eslint-plugin-vue' import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript' import skipFormatting from '@vue/eslint-config-prettier/skip-formatting' import eslintrcImport from './.eslintrc-auto-import.json' assert { type: 'json' } // To allow more languages other than `ts` in `.vue` files, uncomment the following lines: // import { configureVueProject } from '@vue/eslint-config-typescript' // configureVueProject({ scriptLangs: ['ts', 'tsx'] }) // More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup export default defineConfigWithVueTs( { name: 'app/files-to-lint', files: ['**/*.{ts,mts,tsx,vue}'], }, { name: 'app/files-to-ignore', ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'], }, pluginVue.configs['flat/essential'], vueTsConfigs.recommended, skipFormatting, { languageOptions: { globals: eslintrcImport.globals } }, )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vite disposition:
How can I write the eslint configuration so that I don't get no-undef errors when using the vue api
I tried to introduce.eslintrc-auto-import.json, but it didn't work and would invalidate all of my eslint rules
eslint.config.ts
The text was updated successfully, but these errors were encountered: