Skip to content

Commit 4fbcaa5

Browse files
javachefacebook-github-bot
authored andcommitted
Sync Flow options in the GitHub Flow config
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] Differential Revision: D131543925
1 parent 6d587e8 commit 4fbcaa5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎.flowconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,24 @@ react.runtime=automatic
7676

7777
ban_spread_key_props=true
7878

79+
experimental.react_managed_attributes=true
80+
experimental.jsx_intrinsic_elements=true
81+
experimental.require_function_type_param_name=true
82+
experimental.require_dictionary_key_label=true
83+
experimental.ban_explicit_exact_object_types=true
84+
experimental.strict_es6_import_export=true
85+
experimental.export_star_excludes_default=true
86+
87+
unsuppressable_error_codes=invalid-type-cast-syntax
88+
unsuppressable_error_codes=deprecated-utility
89+
unsuppressable_error_codes=missing-function-type-param-name
90+
unsuppressable_error_codes=missing-dictionary-key-label
91+
unsuppressable_error_codes=unsupported-exact-object-type
92+
unsuppressable_error_codes=react-rule-hook-naming-convention
93+
unsuppressable_error_codes=react-rule-hook-definitely-not-in-component-or-hook
94+
unsuppressable_error_codes=react-rule-hook-mixed-with-non-hook
95+
unsuppressable_error_codes=react-rule-hook-non-hook-syntax
96+
7997
[lints]
8098
sketchy-null-number=warn
8199
sketchy-null-mixed=warn

0 commit comments

Comments
 (0)