Skip to content

Commit 2d6e09f

Browse files
fix: set 'path-mode=abs' by default when 'working-directory' is used
1 parent a3942e2 commit 2d6e09f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/run.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ async function runLint(binPath: string, patchPath: string): Promise<void> {
126126
if (!userArgNames.has(`path-prefix`)) {
127127
addedArgs.push(`--path-prefix=${workingDirectory}`)
128128
}
129+
if (!userArgNames.has(`path-mode`)) {
130+
addedArgs.push(`--path-mode=abs`)
131+
}
129132
cmdArgs.cwd = path.resolve(workingDirectory)
130133
}
131134

0 commit comments

Comments
 (0)