Skip to content

Commit a06e532

Browse files
authored
Make error/warning output more useful (facebook#2161)
1 parent 3e092dc commit a06e532

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

scripts/utils/createWebpackCompiler.js

+6-10
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,14 @@ module.exports = function createWebpackCompiler(config, onReadyCallback) {
103103

104104
// Teach some ESLint tricks.
105105
console.log(
106-
chalk.dim(
107-
'Search for the ' +
108-
chalk.cyan('rule keywords') +
109-
' to learn more about each warning.'
110-
)
106+
'Search for the ' +
107+
chalk.underline('rule keywords') +
108+
' to learn more about each warning.'
111109
);
112110
console.log(
113-
chalk.dim(
114-
'To ignore, add ' +
115-
chalk.yellow('// eslint-disable-next-line') +
116-
' to the previous line.'
117-
)
111+
'To ignore, add ' +
112+
chalk.yellow('// eslint-disable-next-line') +
113+
' to the previous line.'
118114
);
119115
console.log();
120116
}

0 commit comments

Comments
 (0)