-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
no-duplicates: fix false positive #232
base: master
Are you sure you want to change the base?
no-duplicates: fix false positive #232
Conversation
|
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. |
Just wondering, will |
hmm I'm not sure, but it would be a significant amount of work to migrate the codebase to a consistent import style, there's a lot of various import styles currently I think the current setup of the autofix resulting in broken builds is what I'm trying to avoid! |
But this PR is not a correct fix, it's just ignoring issues. |
Yeah fair enough, need to think about this more. I've updated the test cases with a new failing test that exercise the issue I ran into |
fixes #231
This PR removes the auto fix for:
as our heuristic for type vs non-type imports has changed slightly.
The second import would be considered a type-only import, and the first import would be considered a value import, so we aren't combining them.
We could make this more sophisticated if we wanted to but this fixes the bad autofix that would change:
into:
related: import-js#2697