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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-12-10 12:59:48 +01:00 committed by Thomas Lamprecht
parent 69748fae3d
commit dd99a1694d

View 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.");