Skip to content

Commit

Permalink
Stop hiding the column number of ESLint errors (#6980)
Browse files Browse the repository at this point in the history
  • Loading branch information
justingrant authored and ianschmitz committed Oct 1, 2019
1 parent 6980616 commit 85aac9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/react-dev-utils/formatWebpackMessages.js
Expand Up @@ -41,9 +41,6 @@ function formatMessage(message) {
/SyntaxError\s+\((\d+):(\d+)\)\s*(.+?)\n/g,
`${friendlySyntaxErrorLabel} $3 ($1:$2)\n`
);
// Remove columns from ESLint formatter output (we added these for more
// accurate syntax errors)
message = message.replace(/Line (\d+):\d+:/g, 'Line $1:');
// Clean up export errors
message = message.replace(
/^.*export '(.+?)' was not found in '(.+?)'.*$/gm,
Expand Down
Expand Up @@ -62,7 +62,7 @@ Object {
Failed to compile.
./src/App.js
Line 4: 'b' is not defined no-undef
Line 4:13: 'b' is not defined no-undef
Search for the keywords to learn more about each error.
Expand All @@ -79,7 +79,7 @@ Object {
Compiled with warnings.
./src/App.js
Line 3: 'foo' is defined but never used no-unused-vars
Line 3:10: 'foo' is defined but never used no-unused-vars
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
Expand Down

0 comments on commit 85aac9b

Please sign in to comment.