From 0bedb800d3d8b019859424e2c5ad4e52f1b5dd93 Mon Sep 17 00:00:00 2001 From: Eli White <> Date: Fri, 8 Jun 2018 21:42:42 -0700 Subject: [PATCH] Disallow requiring from invariant/warning --- .flowconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.flowconfig b/.flowconfig index 0d576609315e64..10c13ea400f5ec 100644 --- a/.flowconfig +++ b/.flowconfig @@ -25,6 +25,11 @@ ; Ignore metro .*/node_modules/metro/.* +; These should not be required directly +; require from fbjs/lib instead: require('fbjs/lib/invariant') +.*/node_modules/invariant/.* +.*/node_modules/warning/.* + [include] [libs]