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/eslint-plugin-import#2697