Re-enable flow module checking

Summary:
Setting the module extension to .tsx overrode the defaults, meaning .js files were no longer being checked when imported.

This adds the defaults back to the extensions to be checked, including `.js`
It does seem to cause errors importing `.tsx` at the moment, but there aren't many so I've just $FlowFixMe'd them for now.

https://flow.org/en/docs/config/options/#toc-module-file-ext-string

Reviewed By: passy

Differential Revision: D16333800

fbshipit-source-id: 7bea92c038048234b4f634704f71c15d79ab3c63
This commit is contained in:
John Knox
2019-07-17 06:27:25 -07:00
committed by Facebook Github Bot
parent 37f8caf714
commit 7d3f05dae3
6 changed files with 9 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ emoji=true
all=true
include_warnings=true
module.name_mapper='flipper' -> '<PROJECT_ROOT>/src/index.js'
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.mjs
module.file_ext=.tsx
module.name_mapper.extension='tsx' -> 'any'
module.name_mapper.extension='ts' -> 'any'