Browse Source

Update Svelte component rules

master
buttercat1791 10 months ago
parent
commit
e1b3ec95e1
  1. 2
      .cursor/rules/svelte-style.mdc

2
.cursor/rules/svelte-style.mdc

@ -21,6 +21,8 @@ Observe the the following style guidelines when programming Svelte components or @@ -21,6 +21,8 @@ Observe the the following style guidelines when programming Svelte components or
- Avoid trying to trigger reactivity by reassigning state variables unless other options have failed.
- Write components in TypeScript, and prefer strong typing for variables, props, and function signatures.
- Limit component logic to rendering concerns. Extract business logic into separate TypeScript modules, and import functions and classes into Svelte components as needed.
- Use PascalCase when naming Svelte components.
- Keep component files under 500 lines, when possible.
## Component Code Organization Example

Loading…
Cancel
Save