-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: [consistent-type-assertions] error when type check is disabled for vue files #8153
New issue
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
Comments
Could you try to do the following? module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic",
],
parserOptions: {
project: ["./tsconfig.json", "./tsconfig.node.json"],
},
overrides: [
{
files: ["*.vue"],
+ parserOptions: {
+ parser: '@typescript-eslint/parser',
+ },
extends: [
"plugin:@typescript-eslint/disable-type-checked",
"plugin:vue/vue3-recommended",
],
},
],
}; |
Hi @auvred In my original repo. I set paser to:
It will get the same error. |
But only |
It's because
|
https://typescript-eslint.io/linting/typed-linting here are our docs on type-aware linting. if you're struggling to configure our parser with |
related to vuejs/vue-eslint-parser#104 set because the |
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://codesandbox.io/p/devbox/delicate-platform-64cd72
Repro Code
ESLint Config
tsconfig
Expected Result
No error report
Actual Result
Additional Info
#7723
The text was updated successfully, but these errors were encountered: