import-js/eslint-plugin-import

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

Open

#2750 aperta il 28 mar 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
help wantedtypescript

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

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

Guida contributor