We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d679843 commit 26ed6abCopy full SHA for 26ed6ab
packages/react-dev-utils/eslintFormatter.js
@@ -10,6 +10,7 @@
10
'use strict';
11
12
const chalk = require('chalk');
13
+const stripAnsi = require('strip-ansi');
14
const table = require('text-table');
15
16
function isError(message) {
@@ -67,7 +68,7 @@ function formatter(results) {
67
68
let outputTable = table(messages, {
69
align: ['l', 'l', 'l'],
70
stringLength(str) {
- return chalk.stripColor(str).length;
71
+ return stripAnsi(str).length;
72
},
73
});
74
packages/react-dev-utils/package.json
@@ -36,7 +36,7 @@
36
"address": "1.0.2",
37
"anser": "1.4.1",
38
"babel-code-frame": "6.22.0",
39
- "chalk": "1.1.3",
+ "chalk": "^2.0.1",
40
"cross-spawn": "4.0.2",
41
"detect-port-alt": "1.1.3",
42
"escape-string-regexp": "1.0.5",
0 commit comments