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

Prepare for ESLint v9 #626

Open
5 tasks
m5r opened this issue Jul 24, 2024 · 0 comments
Open
5 tasks

Prepare for ESLint v9 #626

m5r opened this issue Jul 24, 2024 · 0 comments
Labels
Type: Technical issue Improve something that users won't notice

Comments

@m5r
Copy link
Member

m5r commented Jul 24, 2024

Describe the issue
ESLint v9 comes with a new default configuration format that's incompatible with the previous one. The good thing is that ESLint v8 (the current version used in cht-conf) supports both formats and allows us to prepare the code for this migration.
Projects configurations need to prepare for this change too because cht-conf uses their ESLint configuration to lint their code when compiling app settings.

Describe the improvement you'd like
A progressive migration could look like:

  • Migrate cht-conf's ESLint config
  • Migrate ESLint config generated by cht-conf in initialise-project-layout command
  • Warn users of the deprecation of .eslintrc if we notice this file in a project and point them to ESLint's migration guide
  • Update ESLint to v9 along with the next cht-conf major (v5?)
  • Crash cht-conf with a meaningful error message when user runs cht-conf v5 in a project with an old ESLint config

Describe alternatives you've considered
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Technical issue Improve something that users won't notice
Projects
Status: Todo
Development

No branches or pull requests

1 participant