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

Syntax error when using ES2020 features #3035

Closed
tomgreenfield opened this issue Feb 15, 2021 · 0 comments · Fixed by #3037
Closed

Syntax error when using ES2020 features #3035

tomgreenfield opened this issue Feb 15, 2021 · 0 comments · Fixed by #3037
Assignees
Labels

Comments

@tomgreenfield
Copy link
Contributor

Subject of the issue/enhancement/features

ESLint warns with an error in the code editor when using ES2020/ES11 features such as optional chaining.

Your environment

  • Framework 5.10.1

Steps to reproduce

Add code such as:

if (foo?.bar) return;

Expected behaviour

No syntax errors.

Actual behaviour

eslint      	error     	Parsing error: Unexpected token .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant