bugflowhelp wanted
仓库指标
- 星标
- (5,938 个星标)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
When type import goes before default import from the same file, the default export is marked as unused:
// foo.js
// @flow strict
export type Foo = string
export default ''
// index.js
// @flow strict
import type {Foo} from './foo'
import foo from './foo'
3:1 error exported declaration 'default' not used within other modules import/no-unused-modules
It works OK if I change the imports order:
// index.js
// @flow strict
import foo from './foo'
import type {Foo} from './foo'