Skip to content

[tree-view] Enforce top-level type imports#23034

Merged
Janpot merged 2 commits into
mui:masterfrom
Janpot:feat/treeview-type-imports
Jul 2, 2026
Merged

[tree-view] Enforce top-level type imports#23034
Janpot merged 2 commits into
mui:masterfrom
Janpot:feat/treeview-type-imports

Conversation

@Janpot

@Janpot Janpot commented Jul 1, 2026

Copy link
Copy Markdown
Member

Adds the tree-view packages to the top-level type-imports rule (consistent-type-imports with separate-type-imports + import/consistent-type-specifier-style: prefer-top-level), following the same enforcement already in place for charts, data-grid, date-pickers (#22679), and scheduler (#22931).

Split into two commits:

  1. The ESLint config change.
  2. The mechanical eslint --fix + prettier result.

Janpot added 2 commits July 1, 2026 17:10
Add the tree-view packages to the consistent-type-imports / import-consistent-type-specifier-style block (top-level `import type {}`), following the same enforcement already in place for charts, data-grid, date-pickers, and scheduler.
Mechanical eslint --fix + prettier result for the rule enabled in the previous commit.
@code-infra-dashboard

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-23034--material-ui-x.netlify.app/
QR code for https://deploy-preview-23034--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-scheduler 0B(0.00%) 0B(0.00%)
@mui/x-scheduler-premium 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@Janpot Janpot added scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jul 1, 2026
@Janpot
Janpot marked this pull request as ready for review July 1, 2026 15:35
@Janpot
Janpot requested a review from flaviendelangle July 1, 2026 15:36

@LukasTy LukasTy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. 👍
Thanks for handling it.

@Janpot
Janpot merged commit 76b8686 into mui:master Jul 2, 2026
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants