Tweak error and warning output (#2152)

* Tweak error and warning output

* Add a colon
This commit is contained in:
Dan Abramov
2017-05-15 01:07:59 +01:00
committed by GitHub
parent 77087da361
commit 21349c542b
3 changed files with 23 additions and 10 deletions

View File

@@ -103,15 +103,20 @@ module.exports = function createWebpackCompiler(config, onReadyCallback) {
// Teach some ESLint tricks.
console.log(
'Search the ' +
chalk.dim('keywords') +
' from the right column to learn more.'
chalk.dim(
'Search for the ' +
chalk.cyan('rule keywords') +
' to learn more about each warning.'
)
);
console.log(
'To ignore, add ' +
chalk.yellow('// eslint-disable-next-line') +
' to the line before.'
chalk.dim(
'To ignore, add ' +
chalk.yellow('// eslint-disable-next-line') +
' to the previous line.'
)
);
console.log();
}
});