lint-staged is a command-line tool that runs linters against staged git files. It prevents committing broken code by ensuring only clean and compliant changes are added to the repository. By running linters before each commit, lint-staged improves code quality and maintains a consistent style across the codebase. Configure your linters in package.json to automatically format and validate code upon git commit, reducing manual linting efforts and promoting a cleaner, more maintainable project.
Lint-staged has seen fluctuating release frequency since 2016. High activity periods include mid-2016, 2017, early 2020, late 2021 and early 2022. Release frequency decreased significantly after 2022 and has remained at fewer than 4 releases most months. September 2025 has had one release.
Lint-staged downloads show fluctuations. From March 2024 to August 2025, downloads generally trend upward, peaking in June 2025 at over 63 million. September 2025 data is incomplete but shows a significant drop, likely due to the month being in progress.