From 58832dfec996146d4bcca64b8771aac3557a1e59 Mon Sep 17 00:00:00 2001 From: overtrue Date: Sat, 29 Nov 2025 23:59:26 +0800 Subject: [PATCH] chore: exclude pnpm-lock.yaml from prettier and update hook setup docs - Add pnpm-lock.yaml to .prettierignore (auto-generated file should not be formatted) - Update AGENTS.md with instructions for installing Git pre-commit hook - Fixes CI lint failures caused by pnpm-lock.yaml formatting --- .prettierignore | 3 ++- AGENTS.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 064f93a..2b0b32c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,4 +10,5 @@ coverage .github .specify auto-imports.d.ts -components.d.ts \ No newline at end of file +components.d.ts +pnpm-lock.yaml \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index 0e203e3..783f027 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -38,6 +38,7 @@ Before committing any code changes, you MUST run and pass: **Automated Enforcement**: The pre-commit hook (`scripts/pre-commit-check.sh`) automatically runs these checks. If any check fails, the commit will be blocked. **Quick Fix Command**: If checks fail: + 1. Run `pnpm install` to sync lockfile (if package.json changed) 2. Run `pnpm lint:fix` to auto-fix formatting 3. Address any TypeScript errors manually