import-js/eslint-plugin-import

Type only exports get flagged as not used by import/no-unused-modules

Offen

#2.502 geöffnet am 19.07.2022

 (4 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)JavaScript (1.549 Forks)batch import
bughelp wantedtypescript

Repository-Metriken

Stars
 (5.940 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 138T 22h) (3 gemergte PRs in 30 T)

Beschreibung

I have one file which uses a type export:

export type TopNavStore = {

Which is clearly imported with a type only import in another file:

import { createStore, ZustandProvider, type TopNavStore } from './store';

But it gets flagged with : 35:1 warning exported declaration 'TopNavStore' not used within other modules import/no-unused-modules

The file is a .tsx file from a .ts file if that matters?

Contributor Guide