import-js/eslint-plugin-import
Vedi su GitHubimport/no-duplicates does not catch all duplicates
Open
#1456 aperta il 19 ago 2019
enhancementflowhelp wanted
Metriche repository
- Star
- (4946 star)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
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.