Enterprise Lint-Staged Config Generator

Optimize pre-commit hooks by running fast format and lint checks only on staged files.

Core Config

- Run tasks in parallel for better performance.

Tasks & Commands

- Lint JS/TS files.

Command to execute for ESLint.

- Format files.

Command to execute for Prettier.

- Type-check files.

Command to execute for tsc (Note: tsc checks the whole project by default).

- Lint CSS/SCSS files.

Command to execute for Stylelint.

Ignore Patterns

Files to ignore during lint-staged (one per line).

.lintstagedrc.json
1

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.