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

[#441] Update ESlint RC #442

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

htoo-eain-lwin
Copy link
Contributor

@htoo-eain-lwin htoo-eain-lwin commented Jul 11, 2023

close #441

What happened 👀

update the ESlint RC for stimulus controller so developer can run yarn eslint

Insight 📝

The existing configuration did not support the "static" syntax used in Stimulus controllers, resulting in parsing errors.
To resolve this, the .eslintrc file has been updated with the necessary "parserOptions" configuration

I tried to change ecmaVersion to 2023, 2022, 2021. It's only working in both 2023 and 2022.

Proof Of Work 📹

Before After
Screenshot 2023-07-11 at 11 55 59 Screenshot 2023-07-11 at 12 03 16

@htoo-eain-lwin htoo-eain-lwin changed the title update .eslintrc [gh-441] update eslint rc Jul 11, 2023
@htoo-eain-lwin htoo-eain-lwin changed the title [gh-441] update eslint rc [#441] update eslint rc Jul 11, 2023
@htoo-eain-lwin htoo-eain-lwin self-assigned this Jul 11, 2023
@olivierobert olivierobert changed the title [#441] update eslint rc [#441] uUpdate ESlint RC Jul 11, 2023
Copy link
Contributor

@olivierobert olivierobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget to edit the default text from the PR template? 🙈

image

@htoo-eain-lwin htoo-eain-lwin changed the title [#441] uUpdate ESlint RC [#441] Update ESlint RC Jul 11, 2023
Copy link
Contributor

@tyrro tyrro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@htoo-eain-lwin , could you create a new issue in the eslint-config-nimble to use latest as ecmaVersion property in parserOptions? Thanks!

@malparty malparty merged commit 23c1455 into nimblehq:develop Jul 12, 2023
@malparty malparty added this to the 5.7.0 milestone Jul 26, 2023
@malparty malparty mentioned this pull request Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix: Update .eslintrc for Stimulus to Support "static" Syntax
5 participants