-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
💅 Svelte Reactive Blocks marked as Unexpected/Unused #2571
Comments
We have two options here:
|
One caveat of this approach is that users cannot enable a rule if they want to. I see a third approach: providing a default config file where we have an |
how would a user need to use a rule that triggers false positives? |
Because all labels are not labels that indicate a reactive statement? I think a better strategy is just ignoring labels named |
Fair point |
Environment information
Rule names
lint/suspicious/noConfusingLabels
,lint/correctness/noUnusedLabels
Playground link
https://biomejs.dev/playground/?code=JAA6ACAAewAKACAAIABjAG8AbgBzAG8AbABlAC4AbABvAGcAKAAiAEkAJwBtACAAaQBuACAAYQAgAHIAZQBhAGMAdABpAHYAZQAgAGIAbABvAGMAawAhACIAKQAKAH0A
Expected result
While in a Svelte Code Block, a Reactive Block
can be defined, which will trigger whenever its variables change. In this case, Biome is marking the
$
symbol as anUnepected
/Unused
label, which can cause it to be removed with--apply
.I would expect the
$
symbol to be an allowed symbol in the context of Svelte Code Blocks, and thus allowed to exist.Code of Conduct
The text was updated successfully, but these errors were encountered: