diff --git a/src/commands/commandUtils.ml b/src/commands/commandUtils.ml index abded9aa5b0..7473705e023 100644 --- a/src/commands/commandUtils.ml +++ b/src/commands/commandUtils.ml @@ -1378,7 +1378,7 @@ let make_options |> min Sys_utils.nbr_procs; opt_suppress_types = FlowConfig.suppress_types flowconfig; opt_max_literal_length = FlowConfig.max_literal_length flowconfig; - opt_as_const = Base.Option.value ~default:false (FlowConfig.enable_as_const flowconfig); + opt_as_const = Base.Option.value ~default:true (FlowConfig.enable_as_const flowconfig); opt_component_syntax = FlowConfig.component_syntax flowconfig; opt_react_rules = FlowConfig.react_rules flowconfig; opt_hook_compatibility = FlowConfig.hook_compatibility flowconfig; diff --git a/tests/as_const/.flowconfig b/tests/as_const/.flowconfig index 0fd5ce20d73..9b7d0f89d28 100644 --- a/tests/as_const/.flowconfig +++ b/tests/as_const/.flowconfig @@ -1,5 +1,4 @@ [options] all=true -as_const=true experimental.ts_syntax=true no_flowlib=false diff --git a/tests/natural_inference_primitive/.flowconfig b/tests/natural_inference_primitive/.flowconfig index 7c19702d118..48d74ccc0da 100644 --- a/tests/natural_inference_primitive/.flowconfig +++ b/tests/natural_inference_primitive/.flowconfig @@ -8,7 +8,6 @@ [options] all=true -as_const=true experimental.natural_inference.exports.primitive_const=true [strict] diff --git a/tests/type_at_pos_const_literals/.flowconfig b/tests/type_at_pos_const_literals/.flowconfig index e71c822f78e..40e9c12c367 100644 --- a/tests/type_at_pos_const_literals/.flowconfig +++ b/tests/type_at_pos_const_literals/.flowconfig @@ -1,3 +1,2 @@ [options] all=true -as_const=true