Skip to content

parser doesn't infer ecmaVersion from env #168

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

Closed
jonaskuske opened this issue Sep 23, 2022 · 2 comments
Closed

parser doesn't infer ecmaVersion from env #168

jonaskuske opened this issue Sep 23, 2022 · 2 comments
Labels
needs repro Need a minimal repository that can reproduce the problem.

Comments

@jonaskuske
Copy link

When using eslint with its default parser, it is enough to specify the ECMA Version as part of the env, as it also sets parserOptions.ecmaVersion. For example, "env": { "ecma2022": true } automatically sets parserOptions.ecmaVersion to 13. This is explained in the official ESLint docs: https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-environments

When using the Vue parser that behavior does not exist, you have to set parserOptions.ecmaVersion manually.

@ota-meshi
Copy link
Member

Could you please provide a minimal repository to reproduce issue?

@ota-meshi ota-meshi added the needs repro Need a minimal repository that can reproduce the problem. label Sep 27, 2022
@jonaskuske
Copy link
Author

closed in favor of vuejs/eslint-plugin-vue#1991 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Need a minimal repository that can reproduce the problem.
Projects
None yet
Development

No branches or pull requests

2 participants