Skip to content
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

No unused vars warning using script setup #241

Closed
Dav3rs opened this issue Jun 2, 2021 · 2 comments
Closed

No unused vars warning using script setup #241

Dav3rs opened this issue Jun 2, 2021 · 2 comments
Labels
question Further information is requested

Comments

@Dav3rs
Copy link

Dav3rs commented Jun 2, 2021

I'm using script setup and getting a warning about unused vars, but they have been used in the template.

image

@johnsoncodehk
Copy link
Member

I guess the yellow underline is not from this extension, please try disable this extension and check the problem any left.

@johnsoncodehk johnsoncodehk added the question Further information is requested label Jun 2, 2021
@Dav3rs
Copy link
Author

Dav3rs commented Jun 2, 2021

The yellow underline comes from the ESLint plugin. 😐
But anyway, if I disable the eslint extension, the warning persist in the console, the project is using it. The thing is that eslint doesn't know that those vars and functions have been used in the template, and want me to remove all. This is not a volar issue indeed.
There is already an issue for this in the eslint-vue repo
vuejs/eslint-plugin-vue#1248 (comment)

@Dav3rs Dav3rs closed this as completed Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants