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). |
34
-
|`command`|`string`| The binary command to run (e.g., `eslint`, `rector`). |
35
-
|`type`|`'node' \| 'php'`| Determines where to look for the binary (`node_modules/.bin` or `vendor/bin`). |
36
-
|`args`|`string[]`| (Optional) Arguments to pass to the command. |
37
-
|`extensions`|`string[]`| (Optional) Only run on files with these extensions. |
38
-
|`stagesFilesAfter`|`boolean`| (Optional) If `true`, re-stages files after execution (useful for fixers). |
39
-
|`passFiles`|`boolean`| (Optional) If `false`, does not pass the list of staged files to the command. Default is `true`. |
40
-
|`required`|`boolean`| (Optional) If `true`, the hook will fail if this tool fails. Default is `false` (but usually the hook fails if any tool fails). |
41
-
|`blocking`|`boolean`| (Optional) If `true`, stops running subsequent tools if this tool fails. Useful for syntax checks that must pass first. |
|`name`|`string`| Display name of the tool (used in logs). |
34
+
|`command`|`string`| The binary command to run (e.g., `eslint`, `rector`). |
35
+
|`type`|`'node' \| 'php'`| Determines where to look for the binary (`node_modules/.bin` or `vendor/bin`). |
36
+
|`args`|`string[]`| (Optional) Arguments to pass to the command. |
37
+
|`extensions`|`string[]`| (Optional) Only run on files with these extensions. |
38
+
|`stagesFilesAfter`|`boolean`| (Optional) If `true`, re-stages files after execution (useful for fixers). |
39
+
|`passFiles`|`boolean`| (Optional) If `false`, does not pass the list of staged files to the command. Default is `true`. |
40
+
|`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. |
42
41
43
42
### Example
44
43
@@ -49,7 +48,8 @@ To add a new tool, simply add a `ToolConfig` object to the `TOOLS` array.
49
48
args: ['--check'],
50
49
type: 'node',
51
50
extensions: ['.ts', '.js'],
52
-
stagesFilesAfter: false
51
+
stagesFilesAfter: false,
52
+
onFailure: 'continue'// or 'stop' for critical checks
0 commit comments