-
-
Notifications
You must be signed in to change notification settings - Fork 196
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: improve error messaging when validating ecmaVersion #421
Conversation
d749279
to
40b62ea
Compare
Whoops, fixed the commit message 😅 |
(fwiw using |
Cool, useful to know 👍 |
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!
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!
Inspired by eslint/eslint#12101. This PR enhances the error messaging when validating
ecmaVersion
to distinguish between when the the value provided is the incorrect data type versus when it's not a valid numeric value.I labeled this an enhancement since it's not technically a bug fix, but please let me know if you disagree!