Skip to content

Commit

Permalink
style(src): add colorful messagee for done message
Browse files Browse the repository at this point in the history
  • Loading branch information
emjimadhu committed Apr 15, 2020
1 parent 3cff5e6 commit 0e479ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CLIEngine } from 'eslint';
import chalk from 'chalk';

const formatter = ((results: CLIEngine.LintResult[]): string => {
let totalErrorCount = 0;
Expand All @@ -20,7 +21,7 @@ const formatter = ((results: CLIEngine.LintResult[]): string => {

if (totalErrorCount + totalWarningCount === 0) {
return (
'DONE: No lint errors found!\'}\n'
`\n${chalk.bgHex('#2e7d32').white.bold(' DONE ')}: ${chalk.hex('#43a047')('No lint errors found!')}\n`
);
} else {
return (
Expand Down

0 comments on commit 0e479ac

Please sign in to comment.