You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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 likestatic targets = ['foo', 'bar'];
.We use
static
in stimulus controllers in our rails project.Who Benefits?
Developers who try to run
yarn eslint
on stimulus controllers.The text was updated successfully, but these errors were encountered: