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,549 個分叉)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?

貢獻者指南