Skip to content

chore: modernize the husky pre-commit hook#686

Open
eordano wants to merge 1 commit into
masterfrom
chore/migrate-husky
Open

chore: modernize the husky pre-commit hook#686
eordano wants to merge 1 commit into
masterfrom
chore/migrate-husky

Conversation

@eordano

@eordano eordano commented Jul 19, 2026

Copy link
Copy Markdown
Member

Husky is not deprecated, but this repo's pre-commit hook used the legacy v9 boilerplate (. "$(dirname "$0")/_/husky.sh"), which husky v10 removes — so the hook would break on the next husky major. The precommit script also pointed --config at a nonexistent .husky/pre-commit.js.

This migrates the hook to the modern husky format (the hook file runs the command directly) and fixes the precommit script, keeping husky and the lint-staged pre-commit check in place.

Supersedes #685, which removed husky entirely and would have dropped the pre-commit hook.

Drop the deprecated husky v9 shim line (removed in v10, where it breaks the
hook) and fix the precommit script's --config path, which pointed at a
nonexistent .husky/pre-commit.js. Husky and the lint-staged pre-commit hook
stay in place.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@eordano eordano mentioned this pull request Jul 19, 2026
@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

You must set up Two-Factor Authentication before accessing this team.

View Documentation: https://vercel.com/docs/two-factor-authentication

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 29686661277

Coverage remained the same at 96.058%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 10040
Covered Lines: 9952
Line Coverage: 99.12%
Relevant Branches: 4751
Covered Branches: 4256
Branch Coverage: 89.58%
Branches in Coverage %: Yes
Coverage Strength: 17.41 hits per line

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants