Join our community: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
.husky/pre-commit is a single line, npx lint-staged, with no error handling. If a contributor's environment lacks network access for npx to resolve lint-staged (e.g. offline, or a corrupted node_modules), the hook fails with a cryptic npx error instead of a clear message telling the contributor to run npm install.
Acceptance criteria
Files to touch
Out of scope
- Adding new pre-commit checks beyond lint-staged
- Changing what lint-staged lints
Why this matters
.husky/pre-commitis a single line,npx lint-staged, with no error handling. If a contributor's environment lacks network access fornpxto resolvelint-staged(e.g. offline, or a corruptednode_modules), the hook fails with a cryptic npx error instead of a clear message telling the contributor to runnpm install.Acceptance criteria
npm installFiles to touch
.husky/pre-commitOut of scope