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
45 lines
831 B
Plaintext
45 lines
831 B
Plaintext
[ignore]
|
|
.*/scripts/.*
|
|
.*/coverage/.*
|
|
.*/node_modules/.*
|
|
.*/build/.*
|
|
.*/dist/.*
|
|
.*/static/.*
|
|
<PROJECT_ROOT>/src/fb/plugins/relaydevtools/relay-devtools/DevtoolsUI.js$
|
|
.*/website/.*
|
|
<PROJECT_ROOT>/src/plugins/sections/d3/d3.js$
|
|
.*\.tsx
|
|
.*\.ts
|
|
|
|
[libs]
|
|
flow-typed
|
|
|
|
[options]
|
|
esproposal.export_star_as=enable
|
|
esproposal.optional_chaining=enable
|
|
module.use_strict=true
|
|
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'
|
|
suppress_type=$FlowFixMe
|
|
|
|
[strict]
|
|
deprecated-type
|
|
nonstrict-import
|
|
sketchy-null
|
|
unclear-type
|
|
unsafe-getters-setters
|
|
untyped-import
|
|
untyped-type-import
|
|
|
|
[version]
|
|
0.102.0
|