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
Allow ecmaVersion
to be 'latest'
?
#74
Comments
ESLint doesn't pass "latest" around. It is normalized to the latest ecmaVersion. Honestly, eslint-scope doesn't really need ecmaVersion. The only difference is between 5 and 6+, for |
@fisker any other points I’m missing here? |
I think |
Ah I see. I’d suggest you normalize “latest” to a version number. But as I mentioned, the only thing that matters is 5 vs 6. You can probably just pass 6 all the time. |
Thank you, I'll try to make the change in babel then. |
Sounds good. |
I'm not sure if this make sense to change here, but parsers like
@babel/eslint-parser
passecmaVesion
fromeslintrc
directly toeslint-scope
, we need to make change in the parser oreslint-scope
to understand'latest'
.RR in babel codebase babel/babel#13638, review comment
The text was updated successfully, but these errors were encountered: