-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Warn when stores are used without $ prefix. #7984
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
Comments
The problem is that there various intended uses without |
I think the error should only apply to stores that are used as the final value in the HTML. For other uses, regular type-checking should work fine. |
I think this is not Svelte compiler's task. |
This rule is implemented at v2.12.0 of https://ota-meshi.github.io/eslint-plugin-svelte/rules/require-store-reactive-access/ |
Describe the problem
Occasionally, I forget to prefix stores with the

$
symbol and don't find out until runtime.Describe the proposed solution
Svelte should emit a warning when stores are used as values.
Alternatives considered
None.
Importance
nice to have
The text was updated successfully, but these errors were encountered: