-
-
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
[import/no-duplicates] False positive on multiple imports from submodules #2054
Comments
This seems like it's related to the typescript resolver. |
If it helps I am using
If this is an issue in that lib, happy to move this issue. I am a bit new to these two libs so I am stilling trying to get my bearings on what owns what part. |
What I mean is, if all of the imports are resolving to the same d.ts file, then the import plugin will assume they're duplicate imports. |
I have the same problem, but with date-fns lib. this is the code where I got the "import/no-duplicates" warning:
this is not correct, right? |
@murilocp you're correct, those are two different specifiers/modules and should not be warned on. |
This stil seems to be a problem. |
@the-ult here, which is why there’s a help wanted label. |
duplicate of #1479 |
I am seeing the following warning twice for
.../node_modules/firebase/empty-import.d.ts' imported multiple times import/no-duplicates
for the following code:Interesting I am no seeing this warning if its simply
Additionally I saw this PR #1612 where a comment is made about circling back on the second case. The fact that the second case isn't triggering a warning makes me think that maybe this is just a bug handling 3 and not 2 🤷♂️ .
The text was updated successfully, but these errors were encountered: