add agent rules
This commit is contained in:
parent
9b9ae5c7f5
commit
c37955c51b
4 changed files with 52 additions and 0 deletions
16
.opencode/rules/formatting.md
Normal file
16
.opencode/rules/formatting.md
Normal 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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue