]> git.proxmox.com Git - pve-eslint.git/commitdiff
repair '--fix' option
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 10 Dec 2021 11:59:48 +0000 (12:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 10 Dec 2021 12:17:49 +0000 (13:17 +0100)
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

index a1ba89fb673b0736da2781fa066d4efa6c0afa37..7343bebca4f0a362072525f81dd3ffa3b1c50387 100644 (file)
@@ -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.");