Skip to content

Commit a1a2ae5

Browse files
gaearonakstuhl
authored andcommitted
Remove stripColor() usage
1 parent 13ee1aa commit a1a2ae5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-dev-utils/eslintFormatter.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'use strict';
99

1010
const chalk = require('chalk');
11+
const stripAnsi = require('strip-ansi');
1112
const table = require('text-table');
1213

1314
function isError(message) {
@@ -65,7 +66,7 @@ function formatter(results) {
6566
let outputTable = table(messages, {
6667
align: ['l', 'l', 'l'],
6768
stringLength(str) {
68-
return chalk.stripColor(str).length;
69+
return stripAnsi(str).length;
6970
},
7071
});
7172

0 commit comments

Comments
 (0)