import-js/eslint-plugin-import

[import/no-duplicates] supports named imports & namespace imports for type-only imports

Open

#2,750 opened on Mar 28, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (1,540 forks)batch import
help wantedtypescript

Repository metrics

Stars
 (4,946 stars)
PR merge metrics
 (Avg merge 138d 22h) (3 merged PRs in 30d)

Description

version: 2.26.0

Example:

It seems that the following import statements can't be combined into one

import type { Foo } from 'pathToModule';
import type * as AllTypes from 'pathToModule';

Expected: supports the user-case & no import/no-duplicates error

Contributor guide