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

Migrate to ESLint 9 and ESLint flat config #1617

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Migrate to ESLint 9 and ESLint flat config #1617

merged 1 commit into from
Oct 17, 2024

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Oct 17, 2024

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 by typescript-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

Comment on lines +15 to +16
// TODO - Lint these files
'rollup*.config.js',
Copy link
Contributor Author

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.

Comment on lines +30 to +31
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^5.0.0",
Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

@robertknight robertknight left a 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.

eslint.config.js Outdated Show resolved Hide resolved
eslint.config.js Outdated Show resolved Hide resolved
@acelaya acelaya merged commit 751db0f into main Oct 17, 2024
2 checks passed
@acelaya acelaya deleted the eslint-9 branch October 17, 2024 13:11
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.

2 participants