We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ota-meshi
JounQin
Learn more about funding links in repositories.
Report abuse
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
prefer-svelte-reactivity
Hi, I think it would make sense to add a rule that reports usage of non-reactive built-ins that have an alternative in svelte/reactivity.
I think the rule proposal needs some more work in order not to have too many false positives, but let's start a discussion
Report any (?) usage of Date, Map, Set, URL, URLSearchParams.
Date
Map
Set
URL
URLSearchParams
<script> import { SvelteMap } from "svelte/reactivity"; /* ✓ GOOD */ const one = new SvelteMap(); /* ✗ BAD */ const two = new Map(); const three = $state(new Map()); </script>
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Motivation
Hi,
I think it would make sense to add a rule that reports usage of non-reactive built-ins that have an alternative in svelte/reactivity.
I think the rule proposal needs some more work in order not to have too many false positives, but let's start a discussion
Description
Report any (?) usage of
Date
,Map
,Set
,URL
,URLSearchParams
.Examples
Additional comments
No response
The text was updated successfully, but these errors were encountered: