Skip to content

[code-infra] Bump eslint to v9 #46222

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

Merged
merged 1 commit into from
May 28, 2025
Merged

[code-infra] Bump eslint to v9 #46222

merged 1 commit into from
May 28, 2025

Conversation

brijeshb42
Copy link
Contributor

@brijeshb42 brijeshb42 commented May 27, 2025

This still uses the same eslint configuration file by setting ESLINT_USE_FLAT_CONFIG to false to reduce the scope of the PR, plus we are blocked on this to be implemented.

Other change is the swapping of eslint-plugin-filenames to eslint-plugin-consistent-default-export-name since the previous one was creating issue when running the linter. The new plugin is still old but newer than eslint-plugin-filenames.

This PR doesn't change anything for other repos since they'll still be importing the same .eslintrc.js file.

Part of the effort to implement this - mui/mui-public#264

@brijeshb42 brijeshb42 added the scope: code-infra Specific to the core-infra product label May 27, 2025
@mui-bot
Copy link

mui-bot commented May 27, 2025

Netlify deploy preview

https://deploy-preview-46222--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 15476ff

@brijeshb42 brijeshb42 force-pushed the eslint-v9 branch 5 times, most recently from f8550fd to 478af7e Compare May 27, 2025 06:29
@brijeshb42 brijeshb42 requested a review from Janpot May 27, 2025 06:40
Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

Should be good. What's the effect of airbnb/javascript#2961 not being merged?

@brijeshb42
Copy link
Contributor Author

What's the effect of airbnb/javascript#2961 not being merged?

The only thing that I found is that we can't easily migrate to flat config without copy-pasting/duplicating some code.

This still uses the same eslint configuration file by setting
ESLINT_USE_FLAT_CONFIG to `false` to reduce the scope of the PR, plus we
are blocked on [this](airbnb/javascript#2961)
to be implemented.

Other change is the swapping of `eslint-plugin-filenames` to
`eslint-plugin-consistent-default-export-name` since the previous one
was creating issue when running the linter.
@brijeshb42 brijeshb42 merged commit 8cd3aa5 into mui:master May 28, 2025
20 checks passed
@brijeshb42 brijeshb42 deleted the eslint-v9 branch May 28, 2025 11:20
brijeshb42 pushed a commit to brijeshb42/mui-x that referenced this pull request May 28, 2025
See the equivalent core PR mui/material-ui#46222

The only extra change done is updating an import to
`@mui/utils/useEnhancedEffect` as eslint was complaining.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants