Skip to content

chore: replace husky with lefthook#2

Merged
raphaeldiscky merged 1 commit into
mainfrom
chore/replace-husky-with-lefthook
May 19, 2026
Merged

chore: replace husky with lefthook#2
raphaeldiscky merged 1 commit into
mainfrom
chore/replace-husky-with-lefthook

Conversation

@raphaeldiscky

Copy link
Copy Markdown
Owner

Summary

  • Replace husky with lefthook for git hooks management.
  • Hooks behavior preserved 1:1: pre-committask format && task lint && git add -A, pre-pushtask test, commit-msgpnpm exec commitlint --edit {1}.
  • Lefthook installed via go install in scripts/install-tools.sh (pinned to v2.1.8).

Mirrors raphaeldiscky/monorepo-template@228297a.

Test plan

  • lefthook validate passes
  • lefthook install wires hooks to .git/hooks/
  • pre-commit hook runs format + lint + stage on commit
  • commit-msg hook runs commitlint on commit
  • pre-push hook runs task test on push

Switches from husky to lefthook for git hooks management. Hooks behavior
is preserved 1:1 (pre-commit: format + lint + stage, pre-push: test,
commit-msg: commitlint). Lefthook is installed via go install in
scripts/install-tools.sh.

Mirrors raphaeldiscky/monorepo-template@228297a.
@raphaeldiscky raphaeldiscky merged commit 9cee3b1 into main May 19, 2026
1 check passed
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.

1 participant