Lefthook
Fast and powerful Git hooks manager
| Type | object |
|---|---|
| File match |
.lefthook.json
.lefthook.jsonc
.lefthook.toml
.lefthook.yaml
.lefthook.yml
.lefthook-local.json
.lefthook-local.jsonc
.lefthook-local.toml
.lefthook-local.yaml
.lefthook-local.yml
lefthook.json
lefthook.jsonc
lefthook.toml
lefthook.yaml
lefthook.yml
lefthook-local.json
lefthook-local.jsonc
lefthook-local.toml
lefthook-local.yaml
lefthook-local.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/lefthook/latest.json |
| Source | https://raw.githubusercontent.com/evilmartians/lefthook/master/schema.json |
Validate with Lintel
npx @lintel/lintel check
Properties
Specify a minimum version for the lefthook binary
Lefthook executable path or command
Change a directory for script files. Directory for script files contains folders with git hook names which contain script files.
Change a directory for local script files (not stored in VCS)
Provide an rc file - a simple sh script
Manage verbosity by skipping the printing of output of some steps
Enable disable or set your own colors for lefthook output
Specify files to extend config with
Whether hide spinner and other interactive things
Skip running Git LFS hooks (enabled by default)
Do not automatically install hooks when running lefthook
Install non-Git hooks to .git/hooks
Choose the glob matching engine: 'gobwas' (default) or 'doublestar' (standard ** behavior)
Provide multiple remote configs to use lefthook configurations shared across projects. Lefthook will automatically download and merge configurations into main config.
Custom templates for replacements in run commands.
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
14 nested properties
Definitions
A URL to Git repository. It will be accessed with privileges of the machine lefthook runs on.
An optional branch or tag name
An optional array of config paths from remote's root
[
"lefthook.yml"
]
Set to true if you want to always refetch the remote
Provide a frequency for the remotes refetches