The library for web and native user interfaces.
Disable ValidateNoCapitalizedCalls by default
As discussed earlier, let's disable this validation pass by default for oss since it still has many false positives ghstack-source-id: fa3c21dde7cc4c3e4bb91dfa707e64bc7a9e088b Pull Request resolved: https://github.com/facebook/react-forget/pull/2908
Lauren Tan committed
Apr 25, 2024 at 14:19 UTC
1181043d804af6b3f9473eb21b8be9a3ad7b8545
1 file changed
+1
-1
compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts
+1
-1
@@ -207,7 +207,7 @@ const EnvironmentConfigSchema = z.object({
207
* in this allowlist. You can enable this validation with no additional allowlisted calls by setting
208
* this option to the empty array.
209
*/
210
- validateNoCapitalizedCalls: z.nullable(z.array(z.string())).default([]),
210
+ validateNoCapitalizedCalls: z.nullable(z.array(z.string())).default(null),
211
212
/*
213
* When enabled, the compiler assumes that hooks follow the Rules of React: