add agent rules

This commit is contained in:
Benjamin Palko 2026-08-11 15:39:16 -04:00
parent 9b9ae5c7f5
commit c37955c51b
4 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# Formatting
## Command
- `pnpm format` writes formatted code (Prettier).
- `pnpm lint` verifies formatting plus ESLint; use it as the check.
## Prettier
- `.prettierrc` is the source of truth for all Prettier settings. Read it rather than assuming defaults; if its values change, follow the file.
- Do not hand-format to match remembered settings — run `pnpm format` and let Prettier decide.
- `.prettierignore` lists files Prettier skips (lockfiles, `build/`, `node_modules/`, etc.). Respect it.
## Tailwind class ordering
- `prettier-plugin-tailwindcss` sorts utility class names automatically. Never manually reorder classes for sorting — just run `pnpm format`.