[pve-devel] [PATCH] repair '--fix' option
Dominik Csapak
d.csapak at proxmox.com
Fri Dec 10 12:59:48 CET 2021
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 at 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
More information about the pve-devel
mailing list