-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
[untyped]
config for files that exist but should be untyped
Summary: the `[ignore]` config section causes matching files to be ignored by the module resolver, which inherently makes them un-typechecked, and also unresolvable by `import` or `require`. this diff introduces `[untyped]`, which causes a file to be ignored by the typechecker as if it had `noflow` in it, but NOT ignored by the module resolver. any matching file is skipped by flow (not even parsed, like other noflow files!), but can still be `require()`'d. Fixes #3208 Fixes #869 Thanks to LegNeato for a similar PR in #4916. That PR proposes a `[silence]` section which still typechecks matching files but suppresses all errors. Whereas `[untyped]` treats the whole file as `any`, `[silence]` would treat only broken stuff as `any`, which is also useful. Reviewed By: avikchaudhuri Differential Revision: D6378529 fbshipit-source-id: a0fd1444824affb40f50f47d9863640205973779
- Loading branch information
1 parent
089d763
commit 1fdf33d
Showing
17 changed files
with
148 additions
and
28 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
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
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
Oops, something went wrong.