Skip to content

Commit 6753235

Browse files
chore: add proper claude code guidelines
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ce22e5e commit 6753235

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,23 @@ Test binaries link against `sqlite3` system library. The argon2 password tests u
171171
- **Check service**: `systemctl status mail` (on server via SSM)
172172
- **View IMAP logs**: `journalctl -u mail | grep IMAP`
173173
- **Backup**: `mail-server backup create` → S3 bucket `stacks-production-s3-backups`
174+
175+
---
176+
177+
## Linting
178+
179+
- Use **pickier** for linting — never use eslint directly
180+
- Run `bunx --bun pickier .` to lint, `bunx --bun pickier . --fix` to auto-fix
181+
- When fixing unused variable warnings, prefer `// eslint-disable-next-line` comments over prefixing with `_`
182+
183+
## Frontend
184+
185+
- Use **stx** for templating — never write vanilla JS (`var`, `document.*`, `window.*`) in stx templates
186+
- Use **crosswind** as the default CSS framework
187+
- stx `<script>` tags should only contain stx-compatible code (signals, composables, directives)
188+
189+
## Dependencies
190+
191+
- **buddy-bot** handles dependency updates — not renovatebot
192+
- **better-dx** provides shared dev tooling as peer dependencies — do not install its peers (e.g., `typescript`, `pickier`, `bun-plugin-dtsx`) separately if `better-dx` is already in `package.json`
193+
- If `better-dx` is in `package.json`, ensure `bunfig.toml` includes `linker = "hoisted"`

0 commit comments

Comments
 (0)