-
Notifications
You must be signed in to change notification settings - Fork 31
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
Imported modules only used as type annotation are marked as no-unused-vars
#5
Comments
no-unused-vars
no-unused-vars
Allright, sorry, fixed it with this: "extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/recommended",
"plugin:jest/recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier"
], Looks like I was missing the |
You can use the recommended set from this package, too, so that you won't need to manually add |
Had the same issue when starting a new project with vue cli (4.2.0) (with standard eslint-rules) and had to change extends: [
'standard',
'plugin:vue/essential',
'@vue/typescript',
'@vue/standard',
'@vue/typescript/recommended',
'@vue/eslint-config-typescript',
] |
Thanks for the latest update to v5! If just tried it out and it works fine, though I know have another problem which I don't exactly know if
estlint-config-typescript
introduced it or something else ...My config looks like this:
Now in my .vue files if I do this, I get a
no-unused-vars
error:The key points are:
Location
is only imported because it is used as a type annotationLocation
is never explicitly used but as the return type of the methodI didn't have this before upgrading to v5, but a lot of things changed during that upgrade (new peer dependencies, other packages upgraded) so I'm sorry if this is the wrong place to report it.
Is this something that can be fixed here or elsewhere?
The text was updated successfully, but these errors were encountered: