mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-10-05 00:52:40 +00:00
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:
parent
69748fae3d
commit
dd99a1694d
@ -390,7 +390,7 @@ console.log('------------------------------------------------------------');
|
|||||||
if (program.fix) {
|
if (program.fix) {
|
||||||
if (fixes > 0) {
|
if (fixes > 0) {
|
||||||
console.log(`Writing ${color.bold(fixes)} fixed files...`);
|
console.log(`Writing ${color.bold(fixes)} fixed files...`);
|
||||||
eslint.ESLint.outputFixes({ results });
|
await eslint.ESLint.outputFixes(results);
|
||||||
console.log('Done');
|
console.log('Done');
|
||||||
} else {
|
} else {
|
||||||
console.log("No fixable Errors/Warnings found.");
|
console.log("No fixable Errors/Warnings found.");
|
||||||
|
Loading…
Reference in New Issue
Block a user