import-js/eslint-plugin-import
Type only exports get flagged as not used by import/no-unused-modules
开放
#2,502 创建于 2022年7月19日
bughelp wantedtypescript
仓库指标
- 星标
- (5,940 个星标)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
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?