Skip to content

Commit

Permalink
Remove the autofix message temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Jun 8, 2024
1 parent e317502 commit 582024c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/pretty-reporter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ export function formatPretty(diagnostics: Array<AugmentedDiagnostic>) {
'\n' +
diagnostics
.map((d) => {
let message = ` ${chalk.red(figures.cross)} ${chalk.reset(d.message)} ${chalk.gray(`// ${d.ruleName}`)}`
const message = ` ${chalk.red(figures.cross)} ${chalk.reset(d.message)} ${chalk.gray(`// ${d.ruleName}`)}`

if ((d.fixes?.length ?? 0) > 0) {
message += chalk.green(`\n (${figures.tick} auto-fix available)`)
}
// TODO: enable when we have auto-fixes
// if ((d.fixes?.length ?? 0) > 0) {
// message += chalk.green(`\n (${figures.tick} auto-fix available)`)
// }

return message
})
Expand Down

0 comments on commit 582024c

Please sign in to comment.