Skip to content

Commit bcbd308

Browse files
authored
Tweak error and warning output (facebook#2152)
* Tweak error and warning output * Add a colon
1 parent 46ef15b commit bcbd308

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

scripts/utils/createWebpackCompiler.js

+11-6
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,20 @@ module.exports = function createWebpackCompiler(config, onReadyCallback) {
103103

104104
// Teach some ESLint tricks.
105105
console.log(
106-
'Search the ' +
107-
chalk.dim('keywords') +
108-
' from the right column to learn more.'
106+
chalk.dim(
107+
'Search for the ' +
108+
chalk.cyan('rule keywords') +
109+
' to learn more about each warning.'
110+
)
109111
);
110112
console.log(
111-
'To ignore, add ' +
112-
chalk.yellow('// eslint-disable-next-line') +
113-
' to the line before.'
113+
chalk.dim(
114+
'To ignore, add ' +
115+
chalk.yellow('// eslint-disable-next-line') +
116+
' to the previous line.'
117+
)
114118
);
119+
console.log();
115120
}
116121
});
117122

0 commit comments

Comments
 (0)