Home/Developer Tools/lint-staged
lint-staged logo

lint-staged

lint-staged/lint-staged

Run tasks like formatters and linters against staged git files

GraphCanon updated Sep 14, 2026 · GitHub synced Sep 14, 2026

16views this month

15k stars473 forksLast push Sep 12, 2026 JavaScript MIT

Decision brief

Lint-staged executes tasks like formatters and linters on Git staged files to enforce coding style consistency.

Good fit when

  • When you want automated linting and formatting of only the staged git files before they are committed, ensuring consistent code practices across a team
  • If your workflow involves the use of tools such as ESLint or Prettier for maintaining code quality and style standards

Avoid when

  • When you need to lint or format all modified files in the project regardless of their staging status, as lint-staged operates exclusively on staged Git files
  • If your team's development practices do not include using Git hooks extensively since lint-staged relies on pre-commit git hooks for its functionality
Requirements:
Requires installation via npm --save-dev lint-staged; Setting up a pre-commit Git hook, preferably with Husky, is essential for this tool's operation

Observed Jul 16, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (14,731) are secondary evidence.

npm downloads (30d)
109,503,547·npm downloads API·Sep 14, 2026

Maintenance and security

Full trust report
Maintenance
Very active (1d since push)
As of Sep 14, 2026
Provenance
Not a fork · Organization account
As of Sep 14, 2026
Security (OSV)
No criticals
As of Jul 15, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install lint-staged
npm

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Lint-staged executes code formatters and linters on the Git staged files, ensuring consistent coding styles.

Capability facts

CLI
CLI entrypoint

Source: package.json:bin|scripts · Sep 14, 2026

MCP server
No MCP server detected

Source: repo_scan · Sep 14, 2026

Languages
javascript

Source: github.language+package.json · Sep 14, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Sep 14, 2026)

- `npm install --save-dev lint-staged`
Source link

Tags

README

Installation and setup To install lint staged in the recommended way, you need to: 1. Install lint staged itself: 1. Set up the git hook to run lint staged Husky is a popular choice for configuring git hooks Read more about git hooks here 1. Install some tools like ESLint or Pret...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.