Closed
Description
I'm not sure what mechanism is being used to suppress prefer-const warnings for variables that have bind:
s in the template, but these warnings should also be suppressed for $props()
and $derived()
. Using a const
for a $derived()
feels like a weird thing to force on people, and a mixture of bindable and non-bindable $props()
can cause more serious issues where ESLint will encourage components that can't be compiled - sveltejs/svelte#13897
Metadata
Metadata
Assignees
Labels
No labels