lint-staged
Enrichment pending🚫💩, Run tasks like formatters and linters against staged git files
GraphCanon updated today · GitHub synced today
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 npmSimilar 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.
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:
- Install lint-staged itself:
npm install --save-dev lint-staged
- Set up the
pre-commitgit hook to run lint-staged - Install some tools like ESLint or Prettier
- 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
- for example:
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 runsgitoperations affecting the files in your repository. By default lint-staged creates agit stashas 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.