Skip to content
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

New Rule: no-store #813

Open
baseballyama opened this issue Jun 30, 2024 · 0 comments
Open

New Rule: no-store #813

baseballyama opened this issue Jun 30, 2024 · 0 comments
Labels
enhancement New feature or request new rule

Comments

@baseballyama
Copy link
Member

Motivation

Svelte 5 allows state management using runes. On the other hand, we can also manage state using store. This rule prohibits the use of store, thereby restricting state management to runes only.

Description

DO not use store. Please use runes instead.

Examples

<!--  GOOD -->
let count = $state(0);

/* ✗ BAD */
import { writable, readable, derived } from 'svelte/store';

Additional comments

No response

@baseballyama baseballyama added enhancement New feature or request new rule labels Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new rule
Projects
None yet
Development

No branches or pull requests

1 participant