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 imports in different typescript ambient modules #2091
Comments
Duplicate of #2054. |
Is this a duplicate of #2054? |
I think it's the same issue in that the problem is the typescript resolver pointing multiple modules to the same d.ts file, masking the actual value-space location that should be checked. |
However, the plugin here seems to treat the I am expecting the plugin to treat the scope for module |
Right - that's the issue in #2054. Both modules resolved to the same file, so the plugin considers them the same module. |
In an ambient file
global.d.ts
import/no-duplicates
complains about importing 'react' twice.The text was updated successfully, but these errors were encountered: