-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[order] Sort type imports #2398
Conversation
…ts with same path based on their kind (`type`, `typeof`) Fixes import-js#2339 Co-authored-by: Aaron Adams <[email protected]> Co-authored-by: stropho <[email protected]>
Codecov ReportBase: 95.16% // Head: 94.98% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2398 +/- ##
==========================================
- Coverage 95.16% 94.98% -0.18%
==========================================
Files 66 66
Lines 2831 2731 -100
Branches 951 916 -35
==========================================
- Hits 2694 2594 -100
Misses 137 137
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Hmm wondering what is this waiting for :) Anyway, if I was the maintainer, I would appreciate keeping the test coverage on the same level or higher. A nice non-blocking improvement could be providing and option to sort type imports before/after the regular import. On the other hand that could be a different PR.. |
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, this is great!
We need some more test coverage, and it needs to be rebased (there’s a conflict).
Regarding separate PRs, i don’t think that’s necessary, but it would be nice when rebasing to group the “cleanup” stuff into its own commits, separate from the “fix and updated tests” commits. |
Hey @aaronadamsCA , how are you? What's the status? As this feature is very useful to me right now, I'm willing to help :) If you give me access to your fork, I could move this PR a bit further ;) |
@stropho its only been 4 days over a holiday weekend, give it some time :-) |
Back after 3 weeks off, I'll take a look this week, thanks! |
@aaronadamsCA this needs a rebase, and it's not a straightforward one. any chance you'll get to it soon? |
a133e5f
to
c4f3cc4
Compare
Sorry, my contributions fell behind for a while due to offline things, so thank you for completing this! |
And now, finally publishing it after a while would be great :) |
Here's a preliminary PR that resolves #2339. It's my first contribution, so please bear with me! 🙂
typeof
support just in case (though I don't know much about Flow).I also did some opportunistic code cleanup:
fixOutOfOrder
.Let me know if there's anything I should undo here, or separate into separate PRs.