From 9a6eefe49647b068341bff627adabaa9882450c4 Mon Sep 17 00:00:00 2001 From: Lev Chelyadinov Date: Sun, 9 Jun 2024 18:17:16 +0200 Subject: [PATCH] Remove another message about auto-fixes --- packages/pretty-reporter/src/index.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/pretty-reporter/src/index.ts b/packages/pretty-reporter/src/index.ts index bb53ad7..f51cb28 100644 --- a/packages/pretty-reporter/src/index.ts +++ b/packages/pretty-reporter/src/index.ts @@ -7,16 +7,17 @@ export function formatPretty(diagnostics: Array) { return chalk.green(`${figures.tick} No problems found!`) } - let footer = chalk.red.bold(`Found ${diagnostics.length} problem${diagnostics.length > 1 ? 's' : ''}`) - - const autofixable = diagnostics.filter((d) => (d.fixes?.length ?? 0) > 0) - if (autofixable.length === diagnostics.length) { - footer += ' (all can be fixed automatically)' - } else if (autofixable.length > 0) { - footer += ` (${autofixable.length} can be fixed automatically)` - } else { - footer += ' (none can be fixed automatically)' - } + const footer = chalk.red.bold(`Found ${diagnostics.length} problem${diagnostics.length > 1 ? 's' : ''}`) + + // TODO: enable when we have auto-fixes + // const autofixable = diagnostics.filter((d) => (d.fixes?.length ?? 0) > 0) + // if (autofixable.length === diagnostics.length) { + // footer += ' (all can be fixed automatically)' + // } else if (autofixable.length > 0) { + // footer += ` (${autofixable.length} can be fixed automatically)` + // } else { + // footer += ' (none can be fixed automatically)' + // } return ( '\n' +