Tweak colors for better contrast on Windows (#2180)

This commit is contained in:
Dan Abramov
2017-05-16 16:45:12 +01:00
committed by GitHub
parent 134d2297dd
commit 46eeabca7e
3 changed files with 26 additions and 17 deletions

View File

@@ -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);
});