You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 aconst
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#13897The text was updated successfully, but these errors were encountered: