mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename folder
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Instructions for using snippets in Svelte 5 components to create reusable markup.
|
||||
globs: **/*.svelte
|
||||
---
|
||||
- Use snippets and render tags to create reusable chunks of markup inside components.
|
||||
- Snippets help reduce duplication and enhance maintainability.
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: General rules for Svelte 5 projects, including using runes for reactivity and simplifying event handlers.
|
||||
globs: **/*.svelte
|
||||
---
|
||||
- Always use Svelte 5 instead of Svelte 4.
|
||||
- Use runes for controlling reactivity; runes replace certain non-runes features and provide more explicit control over state and effects.
|
||||
- Treat event handlers as properties for simpler use and integration.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Guidelines for handling reactivity and reactive statements in Svelte 5.
|
||||
globs: **/*.svelte
|
||||
---
|
||||
- Prefer runes over reactive declarations ( `$:`) for reactivity, e.g. `bind:value`
|
||||
- Treat event handlers as properties, simplifying their use.
|
||||
Reference in New Issue
Block a user