docs(svelte): fix stale rules/svelte path -> rules-svelte/
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
54be304485
commit
6c3997eb13
@@ -71,7 +71,7 @@ with the guardrails below.
|
||||
- `$: { sideEffect(); }` (side effect) → `$effect(() => { sideEffect(); });`
|
||||
- `createEventDispatcher()` + `dispatch('e')` → callback props
|
||||
- `<slot />` → `{@render children?.()}`
|
||||
- `on:click={h}` → `onclick={h}` (template; see `rules/svelte/template.yml`)
|
||||
- `on:click={h}` → `onclick={h}` (template; see `rules-svelte/template.yml`)
|
||||
|
||||
**Reactivity correctness (semantic — judgment required):**
|
||||
- `$effect` used to compute a value → should be `$derived` (perf + correctness).
|
||||
|
||||
Reference in New Issue
Block a user