From 0803a17d5214719d43dee85216e4dcb412d28a41 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 9 Jun 2021 13:49:27 +0200 Subject: [PATCH] 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 --- src/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.js b/src/app.js index 020d552..9226234 100644 --- a/src/app.js +++ b/src/app.js @@ -284,6 +284,7 @@ const cli = new eslint.CLIEngine({ baseConfig: config, useEslintrc: true, fix: !!program.fix, + cwd: process.cwd(), }); const report = cli.executeOnFiles(paths); -- 2.39.2