Skip to content

Commit

Permalink
Tweak error and warning output (facebook#2152)
Browse files Browse the repository at this point in the history
* Tweak error and warning output

* Add a colon
  • Loading branch information
gaearon committed May 15, 2017
1 parent 46ef15b commit bcbd308
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions scripts/utils/createWebpackCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

Expand Down

0 comments on commit bcbd308

Please sign in to comment.