Overview
Lint-staged solves the biggest problem with Git hooks: speed. Instead of running ESLint and Prettier across your entire monorepo during a commit (which could take minutes), lint-staged runs those tools exclusively on the files that are currently staged in Git. This reduces your pre-commit overhead to just a few seconds.