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

Experiment using ESLint FlatCompat to move to flat config #4009

Open
4 tasks
Tracked by #3574
romaricpascal opened this issue Aug 8, 2024 · 0 comments
Open
4 tasks
Tracked by #3574

Experiment using ESLint FlatCompat to move to flat config #4009

romaricpascal opened this issue Aug 8, 2024 · 0 comments
Labels
javascript Pull requests that update Javascript code small story tooling

Comments

@romaricpascal
Copy link
Member

romaricpascal commented Aug 8, 2024

What

Try using ESLint's FlatCompat class and other compatibility helpers to move our configuration to the new flat format and see if it'd allow npm update or Dependabot to run without errors.

Most of our plugins are compatible with the new format, but standard and eslint-plugin-import will need some workaround. This workaround for eslint-plugin-import may come handy to set them up.

Why

ESLint is making flat format the default for its configuration. However, not all plugins are ready for it, so we've had to disable dependabot for ESLint and its plugins, as it was timing out because of version incompatibilities.

ESLint is providing some utilities to make older plugins compatible with their new configuration format, so the hopes are that by using them, we can migrate to this new format and get updates for ESLint and its plugins.

Who needs to work on this

Developers

Who needs to review this

Developers

Done when

  • We've tried migrating to a flat configuration using ESLint's compatibility helpers
  • We've checked the impact on updating eslint related packages
  • We've discussed the complexity of the workarounds we'd have to maintain
  • If updates work OK again, we've re-enabled updates for ESLint and its plugins in Dependabot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code small story tooling
Projects
Status: Backlog 🏃🏼‍♀️
Development

No branches or pull requests

1 participant