feat: enable oxlint suspicious category, fix 24 violations (#22727)

This commit is contained in:
Kit Langton
2026-04-16 02:53:10 +00:00
committed by GitHub
parent 665a843086
commit 702f741267
20 changed files with 49 additions and 22 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export function wslPath(path: string, mode: "windows" | "linux" | null): string
const output = execFileSync("wsl", ["-e", "wslpath", flag, path])
return output.toString().trim()
} catch (error) {
throw new Error(`Failed to run wslpath: ${String(error)}`)
throw new Error(`Failed to run wslpath: ${String(error)}`, { cause: error })
}
}