Skip to content

fix(eslint): flat config support #51

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

Merged
merged 15 commits into from
Apr 24, 2025

Conversation

AMorgaut
Copy link
Contributor

Fix issue #50 (ESLint flat config support)

see: https://eslint.org/docs/latest/extend/plugin-migration-flat-config

@utarwyn utarwyn added 🚀 enhancement New feature or request 🏗️ refactoring Refactoring for best practices labels Oct 14, 2024
@utarwyn
Copy link
Member

utarwyn commented Apr 18, 2025

Just need a bit of testing and we will be good to go 🤞

@utarwyn utarwyn self-requested a review April 18, 2025 23:39
@utarwyn
Copy link
Member

utarwyn commented Apr 21, 2025

There are some problems with the rules code on the test project when upgrading it to ESLint v9 and typescript-eslint v8 (needed to parse TypeScript code using ESLint v9). We need to fix the code at some places due to some breaking changes in the AST API of typescript-eslint v8 (see more here).

I will check asap 🤞 We need to support both syntaxes in order to keep plugin working with ESLint v8.

@utarwyn
Copy link
Member

utarwyn commented Apr 23, 2025

Testing matrix

  • SonarQube 9.9 (LTA)
  • SonarQube 25.4 (latest)
  • ESLint 7.x (oldest supported)
  • ESLint 8.x
  • ESLint 9.x (latest)

@utarwyn utarwyn force-pushed the eslint-flat-config branch from af91179 to 3e7856d Compare April 23, 2025 18:47
@utarwyn utarwyn force-pushed the eslint-flat-config branch from 3e7856d to e6c6560 Compare April 23, 2025 18:49
@utarwyn utarwyn merged commit 009e7b0 into green-code-initiative:main Apr 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request 🏗️ refactoring Refactoring for best practices
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the ESLint plugin compatible with the last ESLint versions with flat configurations
2 participants