You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`name`|`string`| Display name of the tool (used in logs and skip-variable derivation). |
37
-
|`command`|`string`| The binary command to run (e.g., `eslint`, `rector`). |
38
-
|`commandAlternatives`|`string[]`| (Optional) Fallback commands tried in order if `command` is not found (e.g., `['psalm.phar']`). |
39
-
|`type`|`'node' \| 'php' \| 'system'`| Where to resolve the binary: `node_modules/.bin`, `vendor/bin`, or system `PATH`. |
40
-
|`args`|`string[]`| (Optional) Arguments to pass to the command. |
41
-
|`extensions`|`string[]`| (Optional) Only run on files with these extensions. |
42
-
|`stagesFilesAfter`|`boolean`| (Optional) If `true`, re-stages files after execution (useful for auto-fixers). |
43
-
|`passFiles`|`boolean`| (Optional) If `false`, does not pass staged files to the command. Default is `true`. |
44
-
|`runForEachFile`|`boolean`| (Optional) If `true`, runs the command once per file instead of passing all files at once. |
45
-
|`description`|`string`| (Optional) Custom log message shown while the tool is running. |
46
-
|`onFailure`|`'continue' \| 'stop'`| (Optional) What happens when this tool fails. Default is `'continue'`. Use `'stop'` for syntax checks that must pass before other tools run. |
47
-
|`group`|`'format' \| 'lint' \| 'analysis' \| 'refactor'`| (Optional) Tool category for selective execution via `HOOKS_ONLY`. |
|`name`|`string`| Display name of the tool (used in logs and skip-variable derivation).|
37
+
|`command`|`string`| The binary command to run (e.g., `eslint`, `rector`).|
38
+
|`commandAlternatives`|`string[]`| (Optional) Fallback commands tried in order if `command` is not found (e.g., `['psalm.phar']`).|
39
+
|`type`|`'node' \| 'php' \| 'system'`| Where to resolve the binary: `node_modules/.bin`, `vendor/bin`, or system `PATH`.|
40
+
|`args`|`string[]`| (Optional) Arguments to pass to the command.|
41
+
|`extensions`|`string[]`| (Optional) Only run on files with these extensions.|
42
+
|`stagesFilesAfter`|`boolean`| (Optional) If `true`, re-stages files after execution (useful for auto-fixers).|
43
+
|`passFiles`|`boolean`| (Optional) If `false`, does not pass staged files to the command. Default is `true`.|
44
+
|`runForEachFile`|`boolean`| (Optional) If `true`, runs the command once per file instead of passing all files at once.|
45
+
|`description`|`string`| (Optional) Custom log message shown while the tool is running.|
46
+
|`onFailure`|`'continue' \| 'stop'`| (Optional) What happens when this tool fails. Default is `'continue'`. Use `'stop'` for syntax checks that must pass before other tools run. |
47
+
|`group`|`'format' \| 'lint' \| 'analysis' \| 'refactor'`| (Optional) Tool category for selective execution via `HOOKS_ONLY`.|
48
48
49
49
### Example
50
50
@@ -94,16 +94,16 @@ Create a `.git-hooks.config.json` file (or `.githooks.json`) in the project root
0 commit comments