We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13ee1aa commit a1a2ae5Copy full SHA for a1a2ae5
packages/react-dev-utils/eslintFormatter.js
@@ -8,6 +8,7 @@
8
'use strict';
9
10
const chalk = require('chalk');
11
+const stripAnsi = require('strip-ansi');
12
const table = require('text-table');
13
14
function isError(message) {
@@ -65,7 +66,7 @@ function formatter(results) {
65
66
let outputTable = table(messages, {
67
align: ['l', 'l', 'l'],
68
stringLength(str) {
- return chalk.stripColor(str).length;
69
+ return stripAnsi(str).length;
70
},
71
});
72
0 commit comments