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

Convert to ESLint 8 New Flat Config, Support for ESLint 9 #117

Open
karlhorky opened this issue Jan 11, 2023 · 1 comment
Open

Convert to ESLint 8 New Flat Config, Support for ESLint 9 #117

karlhorky opened this issue Jan 11, 2023 · 1 comment

Comments

@karlhorky
Copy link
Member

karlhorky commented Jan 11, 2023

ESLint 8 has a new "flat" configuration format:

https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new

Currently with ESLint 9, using eslint-plugin-upleveled results in the following error:

ESLint: 9.3.0

TypeError: context.getScope is not a function
Occurred while linting ...
Rule: "upleveled/no-submit-handler-without-preventDefault"

Seems like eslint-plugin-react merged and released a PR adding compatibility for the new Flat Config format here, which could prove to be a helpful guide how we can implement here too:

Once we have support in this plugin, then we can also switch to the new Flat Config in @upleveled/eslint-config-upleveled: upleveled/eslint-config-upleveled#160

@karlhorky karlhorky changed the title Convert to ESLint 8 New Flat Config Convert to ESLint 8 New Flat Config, Support for ESLint 9 May 20, 2024
@karlhorky
Copy link
Member Author

Worked around this temporarily in:

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

No branches or pull requests

1 participant