-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[core-infra] Check dependency cycles inside packages directory only #37223
Conversation
Netlify deploy previewhttps://deploy-preview-37223--material-ui.netlify.app/ Bundle size report |
@michaldudak Should we update https://github.com/mui/mui-x as well? I imagine their |
In X, there is no difference in linting time when this option is applied only under packages. |
@michaldudak So you are confirming my proposal? My point is that this PR disable the rule for MUI X, but it seems that we want them to have it enabled. Hence the need to open a PR on their repository. |
What makes you believe so? I've just linted the MUI X codebase, and it seems to work properly - the
I made a mistake when measuring linting time improvements in the X repo before. It seems that with this PR, there's a 20s speedup on this rule: Results from before this PR:
|
@michaldudak In MUI X, A quick test on MUI X: This rule is insane 🙃 import-js/eslint-plugin-import#2348 |
@mui/x - it's your call. |
Am I missing something? How did you @oliviertassinari reproduce the difference you presented? 🤔 |
I think that we can call it a day then, it's not very important, plus it makes us use the same config everywhere. @LukasTy To reproduce my run, you need to run the latest version of the repo and run |
Yeah, the case is already closed.
Sorry, my mistake, I didn't clarify that this change was already included in the current version of |
I have found an unintended regression after these changes (which I don't think this PR is the true root cause). I have created mui/mui-x#10114 so we can keep tabs on it. |
Improve linting time by checking for cyclic dependencies in production code only.
Results from my local machine:
Before:
After: