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

Bindable props are treated as unused variables by eslint in some cases. #768

Closed
ptrxyz opened this issue Jun 4, 2024 · 1 comment · Fixed by #778
Closed

Bindable props are treated as unused variables by eslint in some cases. #768

ptrxyz opened this issue Jun 4, 2024 · 1 comment · Fixed by #778
Labels
bug Something isn't working feat: svelte v5

Comments

@ptrxyz
Copy link
Contributor

ptrxyz commented Jun 4, 2024

Since this came up today and Thomas G. Lopes mentioned the possibility of having the issue handled by Svelte's eslint plugin I want to cross post the issue sveltejs/svelte#11901 here:

When creating a component like this:

image

The prop is treated as unread variable yet it should rather be treated as an exported variable since it might still be read from outside.

@ota-meshi
Copy link
Member

Thank you for posting the issue!
I think we need to fix the parser. But I don't have time to do that right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feat: svelte v5
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants