Skip to content

Commit

Permalink
Enable ban_spread_key_props in xplat/js (facebook#47636)
Browse files Browse the repository at this point in the history
Summary:

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.

Reviewed By: SamChou19815

Differential Revision: D64427942
  • Loading branch information
Jack Pope authored and facebook-github-bot committed Nov 15, 2024
1 parent 84265fd commit 7fc3c28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fc3c28

Please sign in to comment.