Skip to content
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

Update eslint rules to avoid importing MUI icons #159

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented Feb 10, 2025

Fixes #156

This PR ports jupyterlab/jupyter-ai#1225 by updating the eslint rules, to add enforcement rules for path imports on mui (thanks @krassowski).

It also moves all the linting configurations to dedicated files, instead of having all of them in the package.json file, for a better readability.

@brichet brichet added the maintenance Packaging, tests label Feb 10, 2025
Copy link
Contributor

Binder 👈 Launch a Binder on branch brichet/jupyter-chat/lint-rules

@dlqqq
Copy link
Member

dlqqq commented Feb 10, 2025

@brichet I can review this once the UI tests pass. Thank you for opening this!

@brichet
Copy link
Collaborator Author

brichet commented Feb 10, 2025

Thanks @dlqqq, it passes now.
We should fix these flaky tests.

Copy link
Member

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

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

@brichet Great work, thank you! 🎉 I verified that jlpm eslint:check fails when importing MUI icons incorrectly, and that this is being run in CI (specifically in Build / Build jupyter_chat).

@brichet brichet merged commit be22aa3 into jupyterlab:main Feb 12, 2025
14 of 15 checks passed
@brichet brichet deleted the lint-rules branch February 12, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Packaging, tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add eslint rules to avoid downloading unnecessary MUI icons
2 participants