Skip to content

Commit

Permalink
Update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 29, 2019
1 parent b69b287 commit 8b5b81a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/lint/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const cli = new CLIEngine({

cli.addPlugin('eslint-plugin-unicorn', unicorn);

// Find a way to make sure rules are loaded from codebase

const report = cli.executeOnFiles(files);

const {errorCount, warningCount, fixableErrorCount, fixableWarningCount} = report;
Expand All @@ -34,7 +36,7 @@ if (errorCount || warningCount) {
console.log(formatter(report.results));

console.log();
console.log('Some test fails, you need fix them, and run `npm run lint <file>` again.');
console.log('Some tests have failed, you need fix them and run `npm run lint <file>` to check again.');

if (hasFixable) {
console.log();
Expand All @@ -44,7 +46,7 @@ if (errorCount || warningCount) {
console.log();
console.log('* If you\'re making a new rule, you can fix this later. *');
} else {
console.log('All test have passed.');
console.log('All tests have passed.');
}

process.exit(errorCount);

0 comments on commit 8b5b81a

Please sign in to comment.