From 8e94b644e7afe976cd3eb051f04ffa3a1add60ae Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 28 Jun 2025 13:44:09 +0200 Subject: [PATCH] Clarify that pnpm run check is the primary command for concurrent checking --- web/CLAUDE.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/web/CLAUDE.md b/web/CLAUDE.md index 9a019171..6d7baaa2 100644 --- a/web/CLAUDE.md +++ b/web/CLAUDE.md @@ -29,15 +29,18 @@ As code changes, the spec.md might get outdated. If you detect outdated informat ## Development Workflow - Make changes to source files in `src/` -- Check code quality after making changes: +- **ALWAYS run code quality checks before committing:** - `pnpm run check` - Run all checks (format, lint, typecheck) in parallel - - `pnpm run check:fix` - Auto-fix formatting and linting issues - - Or run individually: - - `pnpm run format` / `pnpm run format:check` - - `pnpm run lint` / `pnpm run lint:fix` - - `pnpm run typecheck` + - This is the ONLY command you need to run for checking + - It runs everything concurrently for maximum speed +- **If there are issues to fix:** + - `pnpm run check:fix` - Auto-fix formatting and linting issues (runs sequentially to avoid conflicts) +- **Individual commands (rarely needed):** + - `pnpm run format` / `pnpm run format:check` + - `pnpm run lint` / `pnpm run lint:fix` + - `pnpm run typecheck` - Always fix all linting and type checking errors, including in unrelated code -- Never run the tests, unless explicitely asked to. `pnpm run test` +- Never run the tests, unless explicitly asked to. `pnpm run test` ## Code References **THIS IS OF UTTER IMPORTANCE THE USERS HAPPINESS DEPENDS ON IT!**