From 55a4d105e7a1eda348aae3a840bbb3bc9caa50c8 Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Fri, 15 Nov 2024 14:18:51 -0800 Subject: [PATCH] Enable ban_spread_key_props in xplat/js (#47636) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47636 We're cleaning up key spreads across WWW/Fbsource. Flow's `ban_spread_key_props` option allows us to fix existing spreads and prevent new ones from being added in code covered by Flow. Here we fix spreads within xplat/js. Also based on a unit test keeping config in sync, I've added the option to metro and RN OSS as well. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D64427942 fbshipit-source-id: db8f4aa428ce1994304b5d814b9d241d26e8d522 --- .flowconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.flowconfig b/.flowconfig index b18a1359c08..af58a6d0d27 100644 --- a/.flowconfig +++ b/.flowconfig @@ -72,6 +72,8 @@ suppress_type=$FlowFixMeProps suppress_type=$FlowFixMeState suppress_type=$FlowFixMeEmpty +ban_spread_key_props=true + [lints] sketchy-null-number=warn sketchy-null-mixed=warn