Skip to content

Commit cf91d4c

Browse files
authored
chore: add Svelte 5 docs for prefer-destructured-store-props rule (#1034)
1 parent 3bfcc31 commit cf91d4c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/rules/prefer-destructured-store-props.md

+3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ An example of the improvements can be see in this [REPL](https://svelte.dev/repl
2424
<script>
2525
/* eslint svelte/prefer-destructured-store-props: "error" */
2626
import store from './store.js';
27+
// Svelte3/4
2728
$: ({ foo } = $store);
29+
// Svelte5 with Runes
30+
let foo = $derived($store.foo);
2831
</script>
2932
3033
<!-- ✓ GOOD -->

0 commit comments

Comments
 (0)