Quick Start
npm install lefthook --save-dev
npx lefthook install# lefthook.yml
pre-commit:
parallel: true
commands:
lint:
glob: "*.{ts,tsx}"
run: npx biome check {staged_files}Overview
Lefthook is a blazing-fast Git hooks manager written in Go with 5,000+ GitHub stars. Runs linters, formatters, and tests in parallel with only 5ms startup. A drop-in replacement for Husky + lint-staged. Best for teams needing fast, reliable pre-commit checks.
Source & Thanks
Created by Evil Martians. Licensed under MIT.
lefthook — stars 5,000+