fix(hooks): enforce literal formatter invocation at spawn boundaries

This commit is contained in:
haelyra
2026-10-10 19:13:24 -04:00
parent e76ea52ae3
commit 872df03e1f
4 changed files with 42 additions and 9 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ function getLinterInvocation(command, args, platform = process.platform) {
function runLinterCommand(command, args) {
try {
const invocation = getLinterInvocation(command, args);
return spawnSync(invocation.command, invocation.args, invocation.options);
return spawnSync(invocation.command, invocation.args, { ...invocation.options, shell: false });
} catch (error) {
return { status: null, stdout: '', stderr: '', error };
}