-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] Remove unused classes #23473
[core] Remove unused classes #23473
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sharing. I have tried to enable it on the repository but I couldn't get it work. Any idea?
Hi @oliviertassinari! Thanks for getting back. Could you quickly explain how I can enable it in the repository? |
a58ecf0
to
2ae9eee
Compare
@jens-ox I had a second look at the pull request. I could make it work on the codebase, and even better remove dead classes in our demos :). However, I could also spot a couple of limitations:
In the end, I have removed the new eslint rule in a8b0f0e based on the direction we are taking with #22342. Getting this eslint rule to a great state will require a non-negligible amount of work. If you want to keep polishing, please do! It would be great to link the documentation to this eslint rule hosted under a different repository. |
Just created a separate package for the rule: https://github.com/jens-ox/eslint-plugin-material-ui-unused-classes Should I create a PR to link to it in the docs? |
Yes, I think that it would be interesting :) |
@jens-ox Could you add documentation for the eslint plugin in the new repository? Regarding linking it in the docs, maybe under https://next.material-ui.com/discover-more/related-projects/#ide-tools? |
Updated the docs in the repo, created PR (#23843) |
Hi all!
This is just a minor addition to the eslint plugin, which detects unused classes in
makeStyles
declarations.I saw that this was requested in different places (e.g. here and here).
Cheers!
Closes #23492