From 44c1012ccae1b235e1d3d8b1f8f9cbb61c7d0b55 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Fri, 3 Aug 2018 16:24:07 -0700 Subject: [PATCH] Enable optional chaining and nullish coalescing in flowconfig template (#20517) Summary: Follow up to a9792ac4c8ee04f9832a99e95e1afebbb568d230 and #20516 This makes sure new projects typecheck properly since RN can use this syntax. Pull Request resolved: https://github.com/facebook/react-native/pull/20517 Differential Revision: D9169268 Pulled By: TheSavior fbshipit-source-id: f2b08598bdc6979931e987c9a275d75f08751754 --- local-cli/templates/HelloWorld/_flowconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local-cli/templates/HelloWorld/_flowconfig b/local-cli/templates/HelloWorld/_flowconfig index ec87ad756..5e726a323 100644 --- a/local-cli/templates/HelloWorld/_flowconfig +++ b/local-cli/templates/HelloWorld/_flowconfig @@ -29,6 +29,9 @@ node_modules/react-native/flow-github/ [options] emoji=true +esproposal.optional_chaining=enable +esproposal.nullish_coalescing=enable + module.system=haste module.system.haste.use_name_reducers=true # get basename