From dd99a1694df7170709bd8b93a570e5a44690897c Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 10 Dec 2021 12:59:48 +0100 Subject: [PATCH] repair '--fix' option 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 --- 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.");