import-js/eslint-plugin-import
在 GitHub 查看"Multiple exports of name 'xxx' import/export" error is thrown if types are exported
Open
#3,136 创建于 2025年1月4日
bughelp wantedtypescript
仓库指标
- Star
- (4,946 star)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
We have the following two files in the package:
m.ts
export interface Foo {}
export function f(foo: Foo): void {
}
index.ts
export {f} from 'm';
export type * from 'm';
Actual result:
While linting this code the plugin prints the following error for index.ts:
Multiple exports of name 'f' import/export
Expected result:
I don't expect the error to be thrown for the above case as the second expression in index.ts exports types, so there should be no duplicates.
Plugin version: 2.31.0