-
Notifications
You must be signed in to change notification settings - Fork 833
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
fix(eslint): add more tests and rewrite typography logic #4702
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/uber-ui-platform/baseweb/7EkrwW2Ji8s2ouC6BJKLwyFN82Mh |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b0c1112:
|
Rewrites the typography eslint logic by pulling it one level higher (executes once per import statement instead of on each import in a statement). It tracks previous imports, and renames a component to reuse the previous import instead of duplicating imports.
Updates the typography array with a map, and tracks what components need actions in the current document (based on import presence) so performance should be much better.