[pve-devel] [PATCH pve-eslint] set cwd of CLIEngine to process.cwd()

Dominik Csapak d.csapak at proxmox.com
Wed Jun 9 13:49:27 CEST 2021


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 at proxmox.com>
---
 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.20.1






More information about the pve-devel mailing list