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

Add script to upgrade to ESLint v9 #58

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

manuelblum
Copy link
Contributor

adds an update script that:

  • updates eslint to version 9.
  • creates new eslint.config.mjs file with default configuration
  • copies content from .eslint.json to new eslint.config.mjs as a comment
  • deletes old .eslint.json file

Screen Recording 2025-01-30 at 11 43 08

@manuelblum
Copy link
Contributor Author

Currently the update script fails after executing the before-install stage, when the upgrade tries to eslint files. I think we have to upgrade eslint to v9 in this repo as well, before this can work.

@johnnyomair
Copy link
Collaborator

Currently the update script fails after executing the before-install stage, when the upgrade tries to eslint files. I think we have to upgrade eslint to v9 in this repo as well, before this can work.

So maybe we should merge this only before releasing Comet 8 stable?

});
deleteOldEslintRc({ workingDirectory: "api/" });
}
if (existsSync("site/package.json")) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are projects that have multiple sites (e.g., sites/site-a, sites/site-b). Should we change this script to check for all package.json files?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can try to do this.

@johnnyomair johnnyomair changed the title add update script to eslint 9 Add script to upgrade to ESLint v9 Jan 30, 2025
@thomasdax98 thomasdax98 added this to the v8.0.0 milestone Mar 3, 2025
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

Successfully merging this pull request may close these issues.

3 participants