Skip to content

Pug not support @typescript-eslint/no-unused-vars rule #604

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

Closed
yoyoys opened this issue Oct 17, 2021 · 5 comments
Closed

Pug not support @typescript-eslint/no-unused-vars rule #604

yoyoys opened this issue Oct 17, 2021 · 5 comments
Labels
invalid This doesn't seem right

Comments

@yoyoys
Copy link

yoyoys commented Oct 17, 2021

CleanShot 2021-10-18 at 02 42 51@2x

If template transform to HTML this works well

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Oct 17, 2021

Thanks for the report, but this is ESLint problem not volar problem :S

You can use noUnusedLocals instead of, see #53.

@johnsoncodehk johnsoncodehk added the invalid This doesn't seem right label Oct 17, 2021
@Shinigami92
Copy link
Collaborator

Please also watch progress on Shinigami92/eslint-plugin-vue-pug-sfc#16

But it could take a while, cause it is hard to migrate this rule

@alphaelf
Copy link

it seems solved by eslint-plugin-vue-pug

@boehmrn
Copy link

boehmrn commented Dec 16, 2022

@alphaelf what makes you think that? I seems not like working on my machine

@hecktarzuli
Copy link

hecktarzuli commented Apr 25, 2023

@boehmrn If you include eslint-plugin-vue-pug in your project then add the 2 lines to your eslint file, it does seem to work. I just wish there was a more official way to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

6 participants