Skip to content

[code-infra] Migrate to eslint v9 and flat config #2054

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 2 commits into from
Jul 2, 2025

Conversation

brijeshb42
Copy link
Contributor

@brijeshb42 brijeshb42 added the scope: code-infra Specific to the code-infra product label Jun 3, 2025
@mui-bot
Copy link

mui-bot commented Jun 3, 2025

Bundle size report

Bundle Parsed Size Gzip Size
@base-ui-components/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against cb09557

Copy link

pkg-pr-new bot commented Jun 3, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@base-ui-components/react@2054

commit: cb09557

Copy link

netlify bot commented Jun 3, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit cb09557
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6865152e11bd0e00084953a2
😎 Deploy Preview https://deploy-preview-2054--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@brijeshb42 brijeshb42 force-pushed the eslint-v9 branch 3 times, most recently from f186289 to dcc072a Compare June 3, 2025 10:45
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 6, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 10, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 17, 2025
@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Jun 18, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 19, 2025
@brijeshb42 brijeshb42 force-pushed the eslint-v9 branch 2 times, most recently from f47145b to b698db7 Compare June 19, 2025 10:43
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 23, 2025
@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Jun 24, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 26, 2025
@brijeshb42 brijeshb42 force-pushed the eslint-v9 branch 2 times, most recently from ea7265b to 18d6189 Compare June 26, 2025 08:40
@brijeshb42 brijeshb42 marked this pull request as ready for review June 26, 2025 08:45
@brijeshb42 brijeshb42 requested a review from michaldudak as a code owner June 26, 2025 08:45
'no-restricted-imports': [
'error',
{
patterns: NO_RESTRICTED_IMPORTS_PATTERNS_DEEPLY_NESTED,
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this already covered by an earlier rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merged.

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.

Added a bunch of small comments, but nothing blocking. Should we switch to using the file extension constants?

Final review for @mui/base-ui

@brijeshb42 brijeshb42 force-pushed the eslint-v9 branch 2 times, most recently from ab9370a to 62f3309 Compare July 1, 2025 11:36
@brijeshb42 brijeshb42 requested a review from michaldudak July 1, 2025 11:36
@brijeshb42
Copy link
Contributor Author

@michaldudak Can I get a final approval ?

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 2, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 2, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 2, 2025
@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Jul 2, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 2, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 2, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 2, 2025
@@ -7,9 +7,11 @@ import * as jsxRuntime from 'react/jsx-runtime';
import { evaluate } from '@mdx-js/mdx';
import rehypeExtractToc, { type Toc, type TocEntry } from '@stefanprobst/rehype-extract-toc';
import rehypeExportToc from '@stefanprobst/rehype-extract-toc/mdx';
/* eslint-disable import/extensions */
Copy link
Member

Choose a reason for hiding this comment

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

We should be able to explicitly import .mjs everywhere. IIRC Typescript doesn't resolve these automatically if they are extensionless.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

@@ -22,14 +22,14 @@
"docs:link-check": "pnpm --filter docs link-check",
"extract-error-codes": "cross-env MUI_EXTRACT_ERROR_CODES=true lerna run --concurrency 1 build:stable",
"install:codesandbox": "pnpm install --no-frozen-lockfile",
"jsonlint": "node ./scripts/jsonlint.mjs",
"jsonlint": "code-infra jsonlint",
Copy link
Member

Choose a reason for hiding this comment

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

❤️

{ id: '3', parentId: '1', context: contextOpen },
]);
});
describe('floating-ui-react/utils/nodes', () => {
Copy link
Member

Choose a reason for hiding this comment

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

This whole directory (packages/react/src/floating-ui-react) was copied from the Floating UI repo as we decided to maintain a local fork. It may not conform to our internal code standards fully, so we might create a separate config

@michaldudak michaldudak mentioned this pull request Jul 2, 2025
1 task
@brijeshb42 brijeshb42 merged commit cb54f89 into mui:master Jul 2, 2025
22 checks passed
@brijeshb42 brijeshb42 deleted the eslint-v9 branch July 2, 2025 11:26
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 code-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants