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
Parsing error on optional chaining (?.) token #1084
Comments
Hi. You may need to use {
files: ['*.vue'],
extends: [
'plugin:vue/recommended',
],
+ parserOptions: {
+ parser: '@typescript-eslint/parser',
+ },
rules: vueRules,
}, https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser The parser that eslint uses by default does not yet support Optional Chaining. |
If the problem persists, please reopen this issue. |
@ota-meshi Thanks for the answer, but that didn't help. Using the parser now give me this error (with the same vue file):
But the file seems correct. Also, this parser is already set globally and works with my |
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
Successful lint
What actually happened?
See also: https://gitlab.com/nexylan/pretty/-/merge_requests/89
Note: Optional chaining parsing works on eslint core, only the plugin parser crashes.
The text was updated successfully, but these errors were encountered: