From 07a03567718d8e37bad572f5fcd991d7bc41aeb9 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Fri, 13 Nov 2026 11:10:01 -0800 Subject: [PATCH] Sync Flow options in the GitHub Flow config (#59988) Summary: Enable the stricter Flow options that React Native code is already held to downstream, so pull requests that violate them fail GitHub CI instead of after merge: - `experimental.require_dictionary_key_label`, `experimental.require_function_type_param_name`, `experimental.ban_explicit_exact_object_types`, `experimental.react_managed_attributes`, `experimental.jsx_intrinsic_elements`, `experimental.strict_es6_import_export` and `experimental.export_star_excludes_default`. - The matching `unsuppressable_error_codes`, so these errors cannot be silenced with suppression comments. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D131543925 --- .flowconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.flowconfig b/.flowconfig index 2b273f8cbbb..561a2608821 100644 --- a/.flowconfig +++ b/.flowconfig @@ -76,6 +76,24 @@ react.runtime=automatic ban_spread_key_props=true +experimental.react_managed_attributes=true +experimental.jsx_intrinsic_elements=true +experimental.require_function_type_param_name=true +experimental.require_dictionary_key_label=true +experimental.ban_explicit_exact_object_types=true +experimental.strict_es6_import_export=true +experimental.export_star_excludes_default=true + +unsuppressable_error_codes=invalid-type-cast-syntax +unsuppressable_error_codes=deprecated-utility +unsuppressable_error_codes=missing-function-type-param-name +unsuppressable_error_codes=missing-dictionary-key-label +unsuppressable_error_codes=unsupported-exact-object-type +unsuppressable_error_codes=react-rule-hook-naming-convention +unsuppressable_error_codes=react-rule-hook-definitely-not-in-component-or-hook +unsuppressable_error_codes=react-rule-hook-mixed-with-non-hook +unsuppressable_error_codes=react-rule-hook-non-hook-syntax + [lints] sketchy-null-number=warn sketchy-null-mixed=warn