mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-10-04 19:08:36 +00:00
set cwd of CLIEngine to process.cwd()
it seems it now defaults to '/' as the current working dir, but we assume the cwd of the process Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
35543d16f3
commit
0803a17d52
@ -284,6 +284,7 @@ const cli = new eslint.CLIEngine({
|
|||||||
baseConfig: config,
|
baseConfig: config,
|
||||||
useEslintrc: true,
|
useEslintrc: true,
|
||||||
fix: !!program.fix,
|
fix: !!program.fix,
|
||||||
|
cwd: process.cwd(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const report = cli.executeOnFiles(paths);
|
const report = cli.executeOnFiles(paths);
|
||||||
|
Loading…
Reference in New Issue
Block a user