public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-eslint] set cwd of CLIEngine to process.cwd()
@ 2021-06-09 11:49 Dominik Csapak
  2021-06-09 14:36 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-06-09 11:49 UTC (permalink / raw)
  To: pve-devel

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 | 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH pve-eslint] set cwd of CLIEngine to process.cwd()
  2021-06-09 11:49 [pve-devel] [PATCH pve-eslint] set cwd of CLIEngine to process.cwd() Dominik Csapak
@ 2021-06-09 14:36 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-06-09 14:36 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

On 09.06.21 13:49, Dominik Csapak wrote:
> 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 | 1 +
>  1 file changed, 1 insertion(+)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-09 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 11:49 [pve-devel] [PATCH pve-eslint] set cwd of CLIEngine to process.cwd() Dominik Csapak
2021-06-09 14:36 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal