The best lint-staged alternatives
4 tools that do a similar job to lint-staged, 4 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.
You're replacing
lint-stagedRuns formatters and linters only on the git files you are about to commit.
- 1

Husky
Open source · MIT · ★ 35.4k
Runs Git hooks like pre-commit checks from your project's config, so they're shared with the team.
Best for: JavaScript or Node.js projects that want shared pre-commit checks; Teams that want Git hooks stored with the code instead of set up by hand on each machine
- 2

pre-commit
Open source · MIT · ★ 15.7k
A framework that runs code-checking hooks automatically before each git commit.
Best for: Teams that want consistent code checks run on every commit; Developers working in projects that use several programming languages
- 3

standard
Open source · MIT · ★ 29.4k
A JavaScript style guide with a linter and auto-fixer that needs no config files.
Best for: JavaScript projects where the team wants consistent style without debating rules; Node.js developers who want a quick, zero-config check in their package.json test script
- 4

ESLint
Open source · MIT · ★ 27.6k
A JavaScript linter that finds and reports problematic code patterns, with rules you can configure.
Best for: JavaScript developers who want automatic checks on their code; Teams that want consistent rules enforced in a shared configuration
How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to lint-staged. We don't take payment for placement.