* [pve-devel] [PATCH] repair '--fix' option
@ 2021-12-10 11:59 Dominik Csapak
2021-12-10 12:19 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-12-10 11:59 UTC (permalink / raw)
To: pve-devel
when changing to ESLint from CLIEgnine, i forgot to change
the outputFixes call. It's now async and takes a list of results.
fixes 7a730cb60189b4b2b4c0e167797d9aa1ccf15ea6
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
src/bin/app.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/app.js b/src/bin/app.js
index a1ba89f..7343beb 100644
--- a/src/bin/app.js
+++ b/src/bin/app.js
@@ -390,7 +390,7 @@ console.log('------------------------------------------------------------');
if (program.fix) {
if (fixes > 0) {
console.log(`Writing ${color.bold(fixes)} fixed files...`);
- eslint.ESLint.outputFixes({ results });
+ await eslint.ESLint.outputFixes(results);
console.log('Done');
} else {
console.log("No fixable Errors/Warnings found.");
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH] repair '--fix' option
2021-12-10 11:59 [pve-devel] [PATCH] repair '--fix' option Dominik Csapak
@ 2021-12-10 12:19 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-12-10 12:19 UTC (permalink / raw)
To: Proxmox VE development discussion, Dominik Csapak
On 10.12.21 12:59, Dominik Csapak wrote:
> when changing to ESLint from CLIEgnine, i forgot to change
> the outputFixes call. It's now async and takes a list of results.
>
> fixes 7a730cb60189b4b2b4c0e167797d9aa1ccf15ea6
>
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
> src/bin/app.js | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-10 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 11:59 [pve-devel] [PATCH] repair '--fix' option Dominik Csapak
2021-12-10 12:19 ` [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