[no-duplicate-imports] Detect duplicates when paths are different #4225
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
working as intended
Issues that are closed as they are working as intended
Repro
Full reduced test case: https://github.com/OliverJAsh/no-duplicate-imports-test.git
.eslintrc.js
:tsconfig.json
:app/helpers/foo.ts
:app/main.ts
:Expected Result
@typescript-eslint/no-duplicate-imports
should produce an error.Actual Result
No error
Additional Info
I understand that the base rule
no-duplicate-imports
wouldn't be able to detect this duplicate because it doesn't have enough information about the dependency graph and thebaseUrl
to detect whether the duplicate, however I think@typescript-eslint/no-duplicate-imports
does have the information necessary to detect this?Versions
package.json
:The text was updated successfully, but these errors were encountered: