-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Print a link to package.json while displaying errors. #39
Comments
Good idea. Displaying the line numbers is tricky though since we're parsing the JSON and it doesn't provide the line numbers. We could technically assume that it's properly indented so we can guess the line number, but that feels a bit complex. In that case, I'm slightly leaning to keeping it simple so the output is cleaner too. |
For unique substrings, try https://github.com/Rich-Harris/locate-character. Otherwise just link to the |
Yeah I was thinking of just linking the |
I think it's better to keep it simple for now. We can revisit again if there's more request for this. |
publint
prints errors inpackage.json
in the formatpkg.exports["./path/to/exports"].property has error X
. A minor quality of life improvement would be printing thepackage.json
path with line numbers such that you can Ctrl+Click to the error in VS Code and friends.The text was updated successfully, but these errors were encountered: