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:
Dominik Csapak 2021-06-09 13:49:27 +02:00 committed by Thomas Lamprecht
parent 35543d16f3
commit 0803a17d52

View File

@ -284,6 +284,7 @@ const cli = new eslint.CLIEngine({
baseConfig: config,
useEslintrc: true,
fix: !!program.fix,
cwd: process.cwd(),
});
const report = cli.executeOnFiles(paths);