mirror of
https://github.com/rustfs/console.git
synced 2026-08-28 19:47:21 +08:00
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:
+2
-1
@@ -10,4 +10,5 @@ coverage
|
||||
.github
|
||||
.specify
|
||||
auto-imports.d.ts
|
||||
components.d.ts
|
||||
components.d.ts
|
||||
pnpm-lock.yaml
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user