facebook / facebook/flow

import type doesn't show error from file with no flow pragma

Open
#4,311 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I hope it's not duplicated I couldn't find any similar issue.
If file `a.js` import type from `b.js` and `b.js` doesn't have a flow pragma it doesn't report any error. I would suggest it will report error. Since:
1. You shouldn't import type from a file which has no flow pragma
2. But even more important, To discover when `import type` had happened with a file which has a typo in the pragma of `@flow`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.