import-js/eslint-plugin-import
Auf GitHub ansehenimport/no-duplicates does not catch all duplicates
Open
#1.456 geöffnet am 19. Aug. 2019
enhancementflowhelp wanted
Repository-Metriken
- Stars
- (4.946 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 138T 22h) (3 gemergte PRs in 30 T)
Beschreibung
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.