feat: add oxlint with correctness defaults (#22682)

This commit is contained in:
Kit Langton 2026-04-15 20:45:19 -04:00 committed by GitHub
commit 3d6f90cb53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
57 changed files with 165 additions and 122 deletions

View file

@ -20,7 +20,7 @@ export function wslPath(path: string, mode: "windows" | "linux" | null): string
try {
if (path.startsWith("~")) {
const suffix = path.slice(1)
const cmd = `wslpath ${flag} \"$HOME${suffix.replace(/\"/g, '\\"')}\"`
const cmd = `wslpath ${flag} "$HOME${suffix.replace(/"/g, '\\"')}"`
const output = execFileSync("wsl", ["-e", "sh", "-lc", cmd])
return output.toString().trim()
}

View file

@ -82,7 +82,7 @@ export function loadShellEnv(shell: string) {
export function mergeShellEnv(shell: Record<string, string> | null, env: Record<string, string>) {
return {
...(shell || {}),
...shell,
...env,
}
}