import-js/eslint-plugin-import
Re-exporting all flow types can cause trouble with export rule
開放
#1,937 建立於 2020年11月5日
bugflowhelp wanted
倉庫指標
- 星標
- (5,940 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
file-a.js
// @flow
const Bar = 'Bar';
export {Bar};
file-b.js
// @flow
export {Bar} from './file-a';
export type * from './file-a';
export type * is read by export rule as exporting everything inside file-a.js (not just the types), so it causes:
file-b.js
3:9 error Multiple exports of name 'Bar' import/export
5:1 error Multiple exports of name 'Bar' import/export