lint-staged/lint-staged
🚫💩 — Run tasks like formatters and linters against staged git files observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 6
- age_days: 3883
- days_rel: 33
- days_push: 11
- n_releases_24m: 44
Adoption not part of the score
14721 stars · 472 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
lint-staged is an npm CLI tool that runs arbitrary shell tasks, such as formatters and linters, against only the files staged in git. It is typically wired into a pre-commit hook so code quality checks run on just the files being committed.
Use cases
- run prettier only on staged files before commit
- lint changed files in a pre-commit git hook
- prevent unformatted code from being committed
- run eslint on files about to be committed
- speed up linting by checking only staged files
- auto-fix lint errors before each git commit
When to choose
- you want fast pre-commit checks limited to staged files
- you already use husky or git hooks and want to run formatters/linters on commit
- you want to auto-fix and re-stage files before they enter the repo
When to avoid
- you need to lint the entire codebase in CI rather than staged files
- your project does not use git
- you only want a simple check script without configuration
Facets
cli-tool · maturity stable
linter formatter developer-tools ci-cd cli developer-tools version-control web-development cli cross-platform git-hooks pre-commit staged-files code-quality prettier eslint husky automation nodejs
1 source
- readme: https://github.com/lint-staged/lint-staged · fetched 2026-08-28 · b896a61036a7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lint-staged/lint-staged | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="lint-staged/lint-staged")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem