mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 09:25:42 +08:00
Tweak colors for better contrast on Windows (#2180)
This commit is contained in:
4
packages/react-dev-utils/eslintFormatter.js
vendored
4
packages/react-dev-utils/eslintFormatter.js
vendored
@@ -45,9 +45,9 @@ function formatter(results) {
|
||||
messages = messages.filter(m => m[2] === 'error');
|
||||
}
|
||||
|
||||
// add color to messageTypes
|
||||
// add color to rule keywords
|
||||
messages.forEach(m => {
|
||||
m[3] = m[2] === 'error' ? chalk.red(m[3]) : chalk.yellow(m[3]);
|
||||
m[4] = m[2] === 'error' ? chalk.red(m[4]) : chalk.yellow(m[4]);
|
||||
m.splice(2, 1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user