Configure options below — the preview updates in real time.

Husky: Git Hooks

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: Environment & Settings

Husky behavior configuration, including disabling hooks and the prepare script.

Husky EnabledSet to false to disable Husky entirely (sets HUSKY=0 environment variable). Useful in CI/Docker.

Git hooks directory path (managed by npx husky init).

The prepare script in package.json. Use "husky || true" for CI safety.

lint-staged: Glob-to-Command Mapping

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.

lint-staged: CLI Behavioral Settings

Behavioral flags passed via CLI when running lint-staged (e.g. npx lint-staged --concurrent false).

Allow Empty CommitAllow creating an empty Git commit if linter tasks undo all staged changes.

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).

Debug ModePrint additional debug information about staged files, commands being executed, and binary locations.

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).

Continue On ErrorRun all tasks to completion even if one fails, then report errors at the end.
Fail On ChangesFail the commit if linter tasks alter the files. Disables automatic staging. Implies --no-revert.

Maximum length of generated command strings before splitting into chunks.

No StashDisable the backup git stash before running tasks. Implies --no-revert.
No Hide Partially StagedPrevent hiding unstaged changes of partially staged files.
Hide UnstagedHide all unstaged changes to tracked files before running tasks.
Quiet ModeDisable lint-staged's own console output. Task output is still shown.
Relative PathsPass filepaths relative to process.cwd() instead of absolute paths.
No RevertPrevent reverting task modifications to original state on error.
Verbose OutputDisplay full task output even when tasks succeed.