Skip to content

Commit

Permalink
Make error/warning output more useful (facebook#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored May 15, 2017
1 parent 3e092dc commit a06e532
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions scripts/utils/createWebpackCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,14 @@ module.exports = function createWebpackCompiler(config, onReadyCallback) {

// Teach some ESLint tricks.
console.log(
chalk.dim(
'Search for the ' +
chalk.cyan('rule keywords') +
' to learn more about each warning.'
)
'Search for the ' +
chalk.underline('rule keywords') +
' to learn more about each warning.'
);
console.log(
chalk.dim(
'To ignore, add ' +
chalk.yellow('// eslint-disable-next-line') +
' to the previous line.'
)
'To ignore, add ' +
chalk.yellow('// eslint-disable-next-line') +
' to the previous line.'
);
console.log();
}
Expand Down

0 comments on commit a06e532

Please sign in to comment.