Skip to content

import/no-duplicates does not catch all duplicates #1456

Open
@tbergquist-godaddy

Description

@tbergquist-godaddy

Hi, I came across an example in our codebase where this rule did not catch the duplicate import.

import { ProfilePictureCard, SectionCard } from 'our-component-library';
import type { NativeEventHandler } from 'our-component-library';
// Expected ^^ to trigger error, but it did not. 

However this is correctly reported:

import { ProfilePictureCard, SectionCard } from 'our-component-library';
import { type NativeEventHandler } from 'our-component-library';
// ^^ Triggers error. 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions