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

remove unused css classes #3273

Merged
merged 3 commits into from
Mar 10, 2023
Merged

remove unused css classes #3273

merged 3 commits into from
Mar 10, 2023

Conversation

wentokay
Copy link
Collaborator

unused css classes weren't being picked up by eslint-plugin-mui-unused-classes anymore because the function name had changed from makeStyles to styles

on reflection it might've been easier to either change the eslint rule to pick up blocks called styles or renamed styles to makeStyles but then there's a chance people might import the wrong function. For now I changed import { styles } to import { styles as makeStyles }

I had to add some other changes because of eslint errors, when it involved requiring changes that might affect the functionality of backpack without testing them I put eslint ignores for now, but they should be addressed at some point

@vercel
Copy link

vercel bot commented Mar 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
backpack ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 10, 2023 at 5:00PM (UTC)

@github-actions
Copy link
Contributor

yarn.lock changes

Click to toggle table visibility
Name Status Previous Current
eslint-plugin-mui-unused-classes UPDATED 1.0.3 2.0.0

@github-actions github-actions bot added the mobile Related to expo mobile app label Mar 10, 2023
@wentokay wentokay marked this pull request as ready for review March 10, 2023 18:34
@wentokay wentokay merged commit 2bddc21 into master Mar 10, 2023
@wentokay wentokay deleted the wen/eslint-css branch March 10, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension mobile Related to expo mobile app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant