[no-duplicate-imports] false positives when used with 'import type' #2636
Labels
bug
Something isn't working
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
I've run into some false positives with this new rule when used with
import type
. The following code triggers this rule:But it is not actually possible to write
because that results in the TypeScript error
This rule may need some additional logic to handle this case.
Expected Result
No errors reported by this rule for the given code.
Actual Result
The
no-duplicate-imports
rule reports a linting error.Versions
@typescript-eslint/eslint-plugin
4.4.0
@typescript-eslint/parser
4.4.0
TypeScript
4.0.3
ESLint
7.10.0
node
12.18.4
The text was updated successfully, but these errors were encountered: