]> git.proxmox.com Git - pve-eslint.git/commitdiff
set cwd of CLIEngine to process.cwd()
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 9 Jun 2021 11:49:27 +0000 (13:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Jun 2021 14:36:27 +0000 (16:36 +0200)
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>
src/app.js

index 020d552d2c4a6640c2495f79182aea45d8f5c160..922623403acf0ce01c0a51d0a7e049cd0e0b5f2d 100644 (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);