import-js/eslint-plugin-import

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

开放

#2,502 创建于 2022年7月19日

 (4 条评论) (4 个反应) (0 位负责人)JavaScript (1,548 个派生)batch import
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?

贡献者指南