Skip to content

fix(eslint): flat config support - #51

Merged
utarwyn merged 15 commits into
green-code-initiative:mainfrom
AMorgaut:eslint-flat-config
Apr 24, 2025
Merged

utarwyn merged 15 commits into
green-code-initiative:mainfrom
AMorgaut:eslint-flat-config

Conversation

@AMorgaut

Copy link
Copy Markdown
Contributor

Fix issue #50 (ESLint flat config support)

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

Comment thread eslint-plugin/lib/standalone.js Outdated
Comment thread eslint-plugin/lib/standalone.js
Comment thread eslint-plugin/lib/standalone.js
Comment thread eslint-plugin/README.md Outdated
Comment thread eslint-plugin/README.md Outdated
Comment thread eslint-plugin/package.json Outdated
Comment thread eslint-plugin/lib/standalone.js Outdated
Comment thread eslint-plugin/lib/standalone.js Outdated
Comment thread eslint-plugin/README.md Outdated
Comment thread eslint-plugin/README.md Outdated
@utarwyn

utarwyn commented Apr 18, 2025

Copy link
Copy Markdown
Member

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

utarwyn commented Apr 21, 2025

Copy link
Copy Markdown
Member

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

utarwyn commented Apr 23, 2025

Copy link
Copy Markdown
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏗️ 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