lint-staged

JSON →
library 0.0.0-development ·javascript
verified May 1, 2026

A tool to run linters (like ESLint, Prettier, Stylelint) against only staged git files, preventing bad code from entering the repository. Version 16 is the latest stable release, with frequent patch releases (e.g., v16.3.4). Key differentiators: it filters linters to just staged files, improving performance and relevance compared to running linters on the entire project. It supports advanced configurations like per-file-type tasks, concurrency, and automatic stash restoration. Requires a Git repository and a pre-commit hook setup (commonly via Husky).

total hits 25
actors 8 distinct systems
last hit 4d ago AhrefsBot
Amazonbot
3
ByteDance
3
MetaBot
3
GPTBot
2
Script
1
Humans
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇫🇷 France · 🇨🇦 Canada · 🇸🇬 Singapore