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

lint-staged

Enrichment pending
lint-staged/lint-staged

🚫💩, Run tasks like formatters and linters against staged git files

GraphCanon updated today · GitHub synced today

15k stars464 forksLast push today JavaScript MIT

Verify the decision

Adoption

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

npm downloads (30d)
106,461,122·npm downloads API·today

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of today
Provenance
Not a fork · Organization account
As of today
Security (OSV)
No criticals
As of today

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

🚫💩 — Run tasks like formatters and linters against staged git files

Capability facts

CLI
CLI entrypoint

Source: package.json:bin|scripts · Jul 15, 2026

MCP server
No MCP server detected

Source: repo_scan · Jul 15, 2026

Languages
javascript

Source: github.language+package.json · Jul 15, 2026

Categories

Compatibility

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

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Jul 15, 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:
    • npm install --save-dev lint-staged
  2. Set up the pre-commit git hook to run lint-staged
    • Husky is a popular choice for configuring git hooks
    • Read more about git hooks here
  3. Install some tools like ESLint or Prettier
  4. Configure lint-staged to run code checkers and other tasks:
    • for example: { "*.js": "eslint" } to run ESLint for all staged JS files
    • See Configuration for more info

Don't forget to commit changes to package.json and .husky to share this setup with your team!

Now change a few files, git add or git add --patch some of them to your commit, and try to git commit them.

See examples and configuration for more information.

[!CAUTION]
Lint-staged runs git operations affecting the files in your repository. By default lint-staged creates a git stash as a backup of the original state before running any configured tasks to help prevent data loss.

For agents

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

Was this helpful?

Anonymous feedback helps us improve pages and translations.