We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3176874 commit f57ec1cCopy full SHA for f57ec1c
src/git.ts
@@ -24,7 +24,7 @@ const getDiffForFile = (filePath: string, staged = false): string => {
24
"--diff-filter=ACM",
25
staged && "--staged",
26
"--unified=0",
27
- process.env.ESLINT_PLUGIN_DIFF_COMMIT ?? "HEAD",
+ JSON.stringify(process.env.ESLINT_PLUGIN_DIFF_COMMIT) ?? "HEAD",
28
"--",
29
sanitizeFilePath(filePath),
30
]
@@ -48,7 +48,7 @@ const getDiffFileList = (staged = false): string[] => {
48
49
"--name-only",
50
51
52
53
.filter(Boolean)
54
.join(" ");
0 commit comments