-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Trouble with no-unused-vars rule #149
Comments
Thank you for the report. It can be fixed by doing scope analysis in the parser. I will fix that. |
Thank you for the quick fix, @ota-meshi! |
@ota-meshi - I've just tried upgrading to the latest plugin and parser versions and this issue came up again (planetlabs/maps#501). Let me know if I should open a new issue in the eslint-plugin-astro project or in astro-eslint-parser. |
I see that the regression was reported in #378 |
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
v8.32.0
What version of
eslint-plugin-astro
are you using?0.21.1
What did you do?
Configuration
What did you expect to happen?
I was hoping that the Astro plugin would work with the
no-unused-vars
rule.What actually happened?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-nzoac8?file=README.md
Additional comments
Much like the
eslint-plugin-react
allows ESLint rules (such asno-unused-vars
) to work with JSX, I was hoping that this plugin would allow the same for Astro components. I see that there are integration tests using theno-unused-vars
rule, but it looks like those don't cover the use of a variable from a component script in a component template.The text was updated successfully, but these errors were encountered: