Skip to content

chore: implement eslint typescript-eslint/consistent-type-imports #33069

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Apr 9, 2025

Recently looked into typescript's import type keyword and its implications. Turns out using it should have noticeable impacts on bundle size and memory usage (yeh!), and there's a nice lint rule for it.

This PR is DRAFT and will be on hold until we merge the Theming branch to avoid a lot of conflicts.

Note that:

  • there are north of 2k lint instance
  • --fix seems to cover most cases, short by 100-200
  • unclear how much we'll save on bundle size, but clearly is good hygiene

Let's pick this up after the great merge of #31590

✖ 2606 problems (2606 errors, 0 warnings)
  2443 errors and 0 warnings potentially fixable with the `--fix` option.

Some context:
Screenshot 2025-04-09 at 2 43 11 PM

Recently looked into typescript's import `type` keyword and its implications. Turns out using it should have noticeable impacts on bundle size and memory usage (yeh!), and there's a nice lint rule for it.

This PR is DRAFT and will be on hold until we merge the Theming branch to avoid a lot of conflicts.

Note that:
- there are north of 2k lint instance
- `--fix` seems to cover most cases, short by 100-200
- unclear how much we'll save on bundle size, but clearly is good hygiene

Let's pick this up after the great merge of #31590
Copy link

korbit-ai bot commented Apr 9, 2025

Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment /korbit-review.

Your admin can change your review schedule in the Korbit Console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants