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
This commit is contained in:
overtrue
2025-11-29 23:59:26 +08:00
parent 5dd3019194
commit 58832dfec9
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -10,4 +10,5 @@ coverage
.github
.specify
auto-imports.d.ts
components.d.ts
components.d.ts
pnpm-lock.yaml
+1
View File
@@ -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