Skip to content
Dev Tools Library

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

From the same area, with a close purpose.

  • Checks whether commit messages follow a convention.

    CLIOpen source★ 18.8K
  • Interactive assistant for writing conventional commits.

    CLIOpen source★ 17.5K
  • Fast Git hook manager in a single binary.

    CLIOpen source★ 9K
  • Terminal UI for Git that saves you commands.

    CLIOpen source★ 83.5K