Configure options below — the preview updates in real time.
Configure which Git lifecycle hooks Husky manages. Each hook maps to a shell script in the .husky/ directory.
Command(s) to run before a commit is created (e.g. npx lint-staged).
Command(s) to run to validate the commit message (e.g. npx commitlint --edit $1).
Command(s) to run before pushing to a remote (e.g. npm test).
Command(s) to run before a merge commit is created.
Command(s) to run after the default commit message is created but before the editor opens.
Command(s) to run after a commit is created.
Command(s) to run after a successful git checkout.
Command(s) to run after a successful merge.
Command(s) to run before a rebase starts.
Command(s) to run after commands that rewrite commits (e.g. rebase, amend).
Husky behavior configuration, including disabling hooks and the prepare script.
Git hooks directory path (managed by npx husky init).
The prepare script in package.json. Use "husky || true" for CI safety.
Define micromatch glob patterns and the linter/formatter commands to run on matched staged files.
Glob pattern to command(s) mapping. Each key is a glob, each value is one or more commands.
Behavioral flags passed via CLI when running lint-staged (e.g. npx lint-staged --concurrent false).
Run all tasks simultaneously. Set to false to run sequentially, or a positive number to limit parallelism.
Manually specify a path to the lint-staged configuration file, or use - to read from stdin.
Override the directory where tasks run (useful for monorepos).
Override default git diff to check files between branches or commits. Implies --no-stash.
Git diff-filter string (e.g. ACMR for Added, Copied, Modified, Renamed).
Maximum length of generated command strings before splitting into chunks.
1