-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop hiding the column number of ESLint errors #6980
Conversation
BTW, I couldn't get the tests running on my Mac, so if this change breaks any tests then I'll fix 'em once Travis tells me where the breaks are. ;-) |
Thanks @ianschmitz. Sorry for all the Travis build spam. Last night Travis builds were all failing with network errors, e.g.
Looks like Travis's problem was fixed by the time I tried to force-push the same commit again this morning. Thanks again! |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Not stale. Hi @ianschmitz - You approved this PR a month ago, but it's still not merged. Is there anything I can do to help get it merged? And while we're talking stale PRs, #7022 to fix VSCode debugging is still waiting for a review. Is there anything I can do to help move it along? |
Hi @justingrant, this would be great for the next release. Can you rebase this and push again, so it runs through the updated CI - we can then get it merged. |
@mrmckeb - looks like @bugzpodder triggered a CI run (which passed except for a Windows 10 installation issue which I assume is unrelated to my PR). Do you still need me to rebase and push again? |
Yes please @justingrant, the PR is quite far out of date (which is our fault, sorry). |
Currently, CRA's
npm start
output only reports the line number of ESLint errors but hides the column numbers. This makes it harder for IDE users to leverage the time-saving features provided by IDEs like VSCode to deal with build errors:This PR removes one line of code (originally introduced in #5174 last year) that removes column numbers from ESLint errors. Here's the current code. As you can see, it has no side effects-- it removes column numbers but doesn't do any other changes to the string.
create-react-app/packages/react-dev-utils/formatWebpackMessages.js
Lines 44 to 46 in 4397d06
Here's what existing errors look like:
Here's what errors will look like after this PR: