Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 8576432

Browse files
mrkevfacebook-github-bot
authored andcommitted
Fix flow by allowing optional chaining (#2369)
Summary: **Summary** Turns out the optional chaining PR (#2330) also broke flow. We should run a flow check automatically before we build, not just strip the types. **Test Plan** `flow .` Pull Request resolved: #2369 Reviewed By: claudiopro Differential Revision: D20680346 Pulled By: mrkev fbshipit-source-id: c30392a4e8084521c7e66f303fbc5f4832866e98
1 parent 2658dd6 commit 8576432

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/.flowconfig

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.system.haste.paths.blacklist=.*/fbjs/node_modules/.*
3232
module.system.haste.paths.blacklist=.*/node_modules/invariant/.*
3333

3434
esproposal.class_static_fields=enable
35+
esproposal.optional_chaining=enable
3536
suppress_type=$FlowIssue
3637
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-8]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\).*\n
3738
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

0 commit comments

Comments
 (0)