-
Notifications
You must be signed in to change notification settings - Fork 129
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
Migrate to ESLint 9 and ESLint flat config #1617
Conversation
// TODO - Lint these files | ||
'rollup*.config.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept these ignored as it was before. We can change this later.
"eslint-plugin-react": "^7.37.1", | ||
"eslint-plugin-react-hooks": "^5.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This project does not really need these two plugins, but they are eslint-config-hypothesis
peer dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add separate entry points in future for Preact and non-Preact using libs/apps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to separate out unload-client.js
from the other scripts because that doesn't run in Node. All the scripts in tools/
are ESM modules. Only tests/karma.config.cjs
is ESM.
Update project to ESLint 9 and migrate ESlint config to flat format.
For this migration some eslint plugins needed to be updated:
*
@typescript-eslint/...
packages replaced bytypescript-eslint
and updated to v8*
eslint-plugin-react-hooks
updated to v5*
eslint-plugin-mocha
updated to v10.5*
eslint-plugin-react
updated to v7.37*
eslint-config-hypothesis
updated to v3