From 8b5b81acd0a37b0f1b8863ba9963e65bcbf158fb Mon Sep 17 00:00:00 2001 From: fisker Date: Tue, 29 Oct 2019 11:33:18 +0800 Subject: [PATCH] Update messages --- test/lint/lint.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/lint/lint.js b/test/lint/lint.js index a38f6f32ef..a9ce1aa01e 100755 --- a/test/lint/lint.js +++ b/test/lint/lint.js @@ -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; @@ -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 ` again.'); + console.log('Some tests have failed, you need fix them and run `npm run lint ` to check again.'); if (hasFixable) { console.log(); @@ -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);