import-js/eslint-plugin-import
Type only exports get flagged as not used by import/no-unused-modules
オープン
#2,502 opened on 2022/07/19
bughelp wantedtypescript
Repository metrics
- Stars
- (5,940 個のスター)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
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?