-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix]
no-cycle
: fix false negative when file imports a type after i…
…mporting a value in Flow This fixes this situation: `a.js`: ```js import { foo } from './b' ``` `b.js`: ```js // @flow import { bar, type Baz } from './a' ``` Previously, `no-cycle` would have not reported a dependency cycle for the import in `a.js`, even though `b.js` is importing `bar`, which is not a type import, from `a.js`. This commit fixes that.
- Loading branch information
1 parent
30bba6a
commit 72b9c3d
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @flow | ||
|
||
import { foo, type BarType } from './depth-zero' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters