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
Update: add eslint version to error output. (fixes #9037) #9071
Conversation
LGTM |
@aladdin-add, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nzakas, @not-an-aardvark and @platinumazure to be potential reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes more sense to require the package.json file and use its "version" property, rather than wasting cycles executing the CLI code.
LGTM |
bin/eslint.js
Outdated
|
||
console.error("\nOops! Something went wrong! :("); | ||
console.error(`\n${template(err.messageData || {})}`); | ||
console.error(`\nESLint: ${pkg.version}.${template(err.messageData || {})}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see the ESLint version on a separate line for easier reading.
Heads up: It looks like the issue hasn't been accepted for this PR. |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Comments have been addressed.
This was accepted by the TSC yesterday (see #9037) |
What is the purpose of this pull request? (put an "X" next to item)
[x] Other, please explain:
What changes did you make? (Give an overview)
add eslint version to error output. (fixes #9037)
Is there anything you'd like reviewers to focus on?
is this will be a breaking change?