Skip to content

Conversation

@JCQuintas
Copy link
Member

I was finding cryptic errors when running #20404 in development mode.

It took me a long time to figure out the issue was cyclic deps and fix them, so we might as well enable the plugin instead 😆

The @typescript-eslint/consistent-type-imports is important because type imports are not counted towards cyclic deps, as they are stripped when compiling. This makes it much easier to find the correct cyclic issues, eg: it was something like 400 errors originally and about 27 after.

Screenshot 2025-12-03 at 19 26 48 Screenshot 2025-12-03 at 19 26 14

@JCQuintas JCQuintas self-assigned this Dec 3, 2025
@JCQuintas JCQuintas added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: charts Changes related to the charts. labels Dec 3, 2025
@mui-bot
Copy link

mui-bot commented Dec 3, 2025

Localization writing tips ✍️

Seems you are updating localization 🌍 files.

Thank you for contributing to the localization! 🎉 To make your PR perfect, here is a list of elements to check: ✔️

  • Verify if the PR title respects the release format. Here are two examples (depending if you update or add a locale file)

    [l10n] Improve Swedish (sv-SE) locale
    [l10n] Add Danish (da-DK) locale

  • Update the documentation of supported locales by running pnpm l10n
  • Clean files with pnpm prettier.

Deploy preview: https://deploy-preview-20554--material-ui-x.netlify.app/

Bundle size report

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%) ▼-5B(0.00%)
@mui/x-charts-pro 0B(0.00%) 🔺+115B(+0.09%)
@mui/x-charts-premium 0B(0.00%) 🔺+115B(+0.09%)
@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%)

Details of bundle changes

Generated by 🚫 dangerJS against 133f6c3

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 3, 2025

CodSpeed Performance Report

Merging #20554 will not alter performance

Comparing JCQuintas:eslint-cyclic (133f6c3) with master (8fc993d)

Summary

✅ 13 untouched

return reverse ? !invertStartCoordinate : invertStartCoordinate;
}

export function getBarDimensions(params: {
Copy link
Member Author

@JCQuintas JCQuintas Dec 4, 2025

Choose a reason for hiding this comment

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

The main cyclic change here was that I had to move this function from packages/x-charts/src/BarChart/useBarPlotData.ts into its own file

Copy link
Member

Choose a reason for hiding this comment

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

Can we isolate the changes in a different PR? Ideally in this PR we'd only enable the ESLint rules and adds the type imports. Otherwise it's impossible to review ~500 files

Copy link
Member Author

Choose a reason for hiding this comment

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

You will still have to trust me I didn't change any file though 😆

#20560

Copy link
Member

Choose a reason for hiding this comment

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

It's not a trust question, it's to split code modification from type modification ;)

I 100% trust you to introduce bugs :p

Copy link
Member Author

Choose a reason for hiding this comment

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

I 100% trust you to introduce bugs :p

Glad I'm hold to a high standard. It makes me thank my long history of spectacular bug implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: charts Changes related to the charts. 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.

4 participants