Skip to content
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

[Bug] Parsing error when ecmaVersion:latest #135

Closed
Airkro opened this issue Nov 1, 2021 · 2 comments
Closed

[Bug] Parsing error when ecmaVersion:latest #135

Airkro opened this issue Nov 1, 2021 · 2 comments

Comments

@Airkro
Copy link

Airkro commented Nov 1, 2021

eslint: 7.32 or 8
vue-eslint-parser: 8

<!-- example.vue -->
<script>
import 'xxx';
</script>
{
  "parser": "vue-eslint-parser",
  "parserOptions": {
    "ecmaVersion": "latest",
    "sourceType": "module"
  }
}
// -> Parsing error: ImportDeclaration should appear when the mode is ES6 and in the module context
{
  "parser": "vue-eslint-parser",
  "parserOptions": {
    "ecmaVersion": 2022,
    "sourceType": "module"
  }
}
// -> fine.
@ota-meshi
Copy link
Member

The error seems to be an error in eslint-scope instead of the parser. We probably need to open the problem with eslint-scope.

@ota-meshi
Copy link
Member

I opened the issue with eslint-scope.
I don't think there's anything we can do with this repository, so I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants