Open ptrxyz opened 4 months ago
As i mentioned this has nothing to do with svelte, you get the same error even in js files and it's a rule from typescript-eslint (and is also technically correct since you are assigning a property without reading from it)
Doesn't seem to be like that for me:
This is it on a simple .ts file.Here the linter is complaining about the non-exported stuff (rightfully so) and allows the exported things. Bindable props might still be read from outside of the components context and should thus more be treated like exports and not trigger a warning/error.
The ESlint rule in question is @typescript-eslint/no-unused-vars however plain old no-unused-vars (from bare eslint) also triggers the error.
Describe the bug
Consider this component:
I create a property
busy
that's bindable and that I only set, but never read. ESLint reports an "no-unused-vars" error. I think that's wrong, since the property might be read from a parent component.Reproduction
no-unused-vars
ruleLogs
No response
System Info
Severity
annoyance