lint-staged
Runs linters only on the files in the commit.
LibraryOpen source
Runs linters and formatters only on staged files, keeping the pre-commit hook fast even in large projects.
When to use
To keep pre-commit fast by checking only what changed.
When to avoid
If CI already does all the checking and local hooks aren't needed.
Alternatives
They do a similar job. Compare before choosing.
Simple Git hooks for Node projects.
LibraryOpen source★ 35.4K
Related
From the same area, with a close purpose.
Checks whether commit messages follow a convention.
CLIOpen source★ 18.8KInteractive assistant for writing conventional commits.
CLIOpen source★ 17.5KFast Git hook manager in a single binary.
CLIOpen source★ 9KTerminal UI for Git that saves you commands.
CLIOpen source★ 83.5K