-
-
Notifications
You must be signed in to change notification settings - Fork 48
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/no-unnecessary-state-wrap cause unsolvable error with svelte(non_reactive_update) #1180
Comments
The footprint seems to be |
Please use https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unnecessary-state-wrap/#options |
@baseballyama thank you, this fixed the problem! Though I am wondering shouldn't the default made by |
It’s because we can use However, we’re considering changing the default behavior (which would require a major release). |
@gyzerok Does this mean there are lint errors immediately after generating a project with the I searched within the CLI project but couldn’t find any |
@baseballyama ah no, not immediately. What I meant is that you can end up in described situation with the default configuration. If you are just trying Maybe in this specific case linter could give a bit better error and say "hey, you don't need to use bind: when you are passing SvelteSet inside, just use mutations"? |
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9.23.0
What version of
eslint-plugin-svelte
are you using?3.4.1
What did you do?
In the following code snippet if I remove
$state
rune then I getsvelte(non_reactive_update)
error, however if I add it I getsvelte/no-unnecessary-state-wrap
.Configuration
What did you expect to happen?
Not entirely sure
What actually happened?
Either of these errors
The text was updated successfully, but these errors were encountered: