From a174530bb30b44e5410bc24d73daf7565de102d1 Mon Sep 17 00:00:00 2001 From: Pieter Vanderwerff Date: Fri, 24 Jun 2022 10:07:16 -0700 Subject: [PATCH] Suppress missing annotations and lock arvr/js Summary: Add annotations to function parameters required for Flow's Local Type Inference project. This codemod prepares the codebase to match Flow's new typechecking algorithm. The new algorithm will make Flow more reliable and predictable. Details: - Codemod script: `scripts/flow/tool add-comments --all --code missing-local-annot --comment "The type annotation(s) required by Flow's LTI update could not be added via codemod" .` - Local Type Inference announcement: [post](https://fb.workplace.com/groups/flowlang/posts/788206301785035) - Codemod announcement: [post](https://fb.workplace.com/groups/flowlang/posts/917522612186736) - Support group: [Flow Support](https://fb.workplace.com/groups/flow) bypass-lint drop-conflicts Reviewed By: evanyeung Differential Revision: D37403582 fbshipit-source-id: 2024542952042dd93e2c123ba047410e1feca749 --- template/App.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/App.js b/template/App.js index 7dd8e482177..4c97733b30c 100644 --- a/template/App.js +++ b/template/App.js @@ -26,6 +26,8 @@ import { ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; +/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's + * LTI update could not be added via codemod */ const Section = ({children, title}): Node => { const isDarkMode = useColorScheme() === 'dark'; return (