Skip to content

Commit 81153a0

Browse files
committed
Move rules to .cursor/rules and add svelte-wxt-standards
1 parent 5a198c2 commit 81153a0

3 files changed

Lines changed: 25 additions & 36 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
description: Svelte 5 + WXT + Tailwind v4 coding standards; runes-only, no comments, readability first
3+
alwaysApply: true
4+
---
5+
6+
# Svelte WXT standards
7+
8+
## Svelte / WXT / stack
9+
10+
- Use PascalCase for component file names (e.g. MyComponent.svelte).
11+
- Use semantic HTML where possible.
12+
- Use Svelte stores for global state; TypeScript for type safety.
13+
- Svelte 5 runes only: never use legacy reactive statements ($:) or reactive `let`.
14+
- Use $state() for reactive local state, $derived() for computed values, $effect() for side effects, $props() for component props.
15+
- No comments; rely on clear naming and structure.
16+
- Use Tailwind v4 classes instead of custom styles.
17+
18+
## General
19+
20+
- Follow the user's requirements carefully and fully.
21+
- Prefer readable, correct, and complete code; avoid todos and placeholders.
22+
- Reference file names; be concise; follow project structure and formatting.
23+
- If the answer is uncertain or unknown, say so instead of guessing.
24+
- When asked, produce or update architecture diagrams from project structure and requirements.

.nvimlog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
WRN 2026-02-19T02:34:45.291 ?.37696 server_start:199: Failed to start server: operation not permitted: /var/folders/6s/6hxbdndn20d8733dr526x60w0000gn/T/nvim.yoda/u6axJ0/nvim.37696.0

.rules

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)