Skip to content

Commit e37dbfd

Browse files
authored
Sync Flow options in the GitHub Flow config (#59988)
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] Reviewed By: cipolleschi Differential Revision: D131543925 Pull Request resolved: #59988
1 parent 5534fd9 commit e37dbfd

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
@@ -79,6 +79,24 @@ react.runtime=automatic
7979

8080
ban_spread_key_props=true
8181

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

0 commit comments

Comments
 (0)