-
-
Notifications
You must be signed in to change notification settings - Fork 48
feat(no-unnecessary-state-wrap): support string array in allowReassign
, default to true
and improve messages
#1202
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
base: main
Are you sure you want to change the base?
Conversation
|
Try the Instant Preview in Online PlaygroundInstall the Instant Preview to Your Local
Published Instant Preview Packages:
|
I think |
Since the rule would become more complex, would it be better to implement it as a separate rule, like |
Why should |
I think that would be fine. The name seems backwards to me though. Perhaps something like
I agree. I think we ended up deciding all reassignments should be allowed by default though, so probably not an issue once that change is made. The |
Thanks 🙏 I'm a bit lost and want to understand this: Am I correct that what this PR essentially does is by default turn off the rule for any SvelteSet or SvelteMap that is re-assigned anywhere? And then the suggestion is to add a new rule that basically reverts this change? |
true
and improve messages
true
and improve messagesallowReassign
, default to true
and improve messages
The purpose of this PR is to change the default value of |
I’ve updated the PR title, and I’ll update the PR this weekend. |
close: #1154
close: #1180