Skip to content

Commit

Permalink
Enable exact objects by default in the project template
Browse files Browse the repository at this point in the history
Summary:
This template for new projects isn't configured with exact objects by default, which could cause issues with code in react-native assuming this option is enabled.

Changelog: [Changed] Enabled exact_by_default in Flow for new projects using the template

Reviewed By: cpojer

Differential Revision: D22571745

fbshipit-source-id: da5affe903114484384764be2142e1c46244bfac
  • Loading branch information
rubennorte authored and facebook-github-bot committed Jul 22, 2020
1 parent 09a1120 commit 050a7dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ emoji=true
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

exact_by_default=true

module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js
Expand Down

0 comments on commit 050a7dd

Please sign in to comment.