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
Checklist
Tell us about your environment
Please show your full configuration:
// eslint.config.mjs import pluginVue from 'eslint-plugin-vue' /** @type {import('eslint').Linter.Config[]} */ export default [ ...pluginVue.configs['flat/recommended'], ]
What did you do?
enable strict type checking in JS files
What did you expect to happen? no error in lint config
What actually happened?
TS doesn't like the types here:
Type '({ name: string; plugins: { readonly vue: { meta: typeof import("/home/phi/b/git-log--graph-vscode-ext/node_modules/eslint-plugin-vue/lib/meta"); configs: { base: { parser: string; parserOptions: { ecmaVersion: number; sourceType: string; }; env: { ...; }; plugins: string[]; rules: { ...; }; }; ... 13 more ...; 'fla...' is not assignable to type 'Config<RulesRecord>[]'. Type '{ name: string; plugins: { readonly vue: { meta: typeof import("/home/phi/b/git-log--graph-vscode-ext/node_modules/eslint-plugin-vue/lib/meta"); configs: { base: { parser: string; parserOptions: { ecmaVersion: number; sourceType: string; }; env: { ...; }; plugins: string[]; rules: { ...; }; }; ... 13 more ...; 'flat...' is not assignable to type 'Config<RulesRecord>'. Type '{ name: string; plugins: { readonly vue: { meta: typeof import("/home/phi/b/git-log--graph-vscode-ext/node_modules/eslint-plugin-vue/lib/meta"); configs: { base: { parser: string; parserOptions: { ecmaVersion: number; sourceType: string; }; env: { ...; }; plugins: string[]; rules: { ...; }; }; ... 13 more ...; 'flat...' is not assignable to type 'Config<RulesRecord>'. The types of 'languageOptions.sourceType' are incompatible between these types. Type 'string' is not assignable to type 'SourceType | undefined'.ts(2322)
Repository to reproduce this issue
https://github.com/phil294/bug-repro-vue-eslint
Clone and open in VSCode, open eslint.config.mjs
eslint.config.mjs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
enable strict type checking in JS files
What did you expect to happen?
no error in lint config
What actually happened?
TS doesn't like the types here:
Repository to reproduce this issue
https://github.com/phil294/bug-repro-vue-eslint
Clone and open in VSCode, open
eslint.config.mjs
The text was updated successfully, but these errors were encountered: