Skip to content

Commit 7d9f0d9

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

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

CLAUDE.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,23 @@ This indicates the permissions above need to be enabled. Both GitHub CLI and RES
17311731
For more details, see the [GitHub documentation on managing GitHub Actions settings](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests).
17321732

17331733

1734-
## Git Commits
17351734

1736-
When committing changes, do not include a `Co-Authored-By` line for Claude in commit messages.
1735+
---
1736+
1737+
## Linting
1738+
1739+
- Use **pickier** for linting — never use eslint directly
1740+
- Run `bunx --bun pickier .` to lint, `bunx --bun pickier . --fix` to auto-fix
1741+
- When fixing unused variable warnings, prefer `// eslint-disable-next-line` comments over prefixing with `_`
1742+
1743+
## Frontend
1744+
1745+
- Use **stx** for templating — never write vanilla JS (`var`, `document.*`, `window.*`) in stx templates
1746+
- Use **crosswind** as the default CSS framework
1747+
- stx `<script>` tags should only contain stx-compatible code (signals, composables, directives)
1748+
1749+
## Dependencies
1750+
1751+
- **buddy-bot** handles dependency updates — not renovatebot
1752+
- **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`
1753+
- If `better-dx` is in `package.json`, ensure `bunfig.toml` includes `linker = "hoisted"`

0 commit comments

Comments
 (0)