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

Update latest as ecmaVersion property in parserOptions #60

Open
htoo-eain-lwin opened this issue Jul 11, 2023 · 0 comments
Open

Update latest as ecmaVersion property in parserOptions #60

htoo-eain-lwin opened this issue Jul 11, 2023 · 0 comments

Comments

@htoo-eain-lwin
Copy link

htoo-eain-lwin commented Jul 11, 2023

Why

I think the current version set up in here is 2018. It's a little bit outdated. Ref

For one of the things missing from ecmaVersion 2018 is it does not support the "static" syntax used in the codebase.
This leads to parsing errors and unexpected token issues when running yarn eslint, specifically with statements like static targets = ['foo', 'bar'];.

We use static in stimulus controllers in our rails project.

Screenshot 2023-07-11 at 11 55 59

Setting latest or above and equal to 13 as the property value will fix the issue.

Who Benefits?

Developers who try to run yarn eslint on stimulus controllers.

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

No branches or pull requests

1 participant