diff --git a/crates/oxc_linter/src/service.rs b/crates/oxc_linter/src/service.rs index caa5251c6f7ee..c54cacf2c6c1f 100644 --- a/crates/oxc_linter/src/service.rs +++ b/crates/oxc_linter/src/service.rs @@ -256,6 +256,7 @@ impl Runtime { ) -> Vec> { let ret = Parser::new(allocator, source_text, source_type) .with_options(ParseOptions { + parse_regular_expression: true, allow_return_outside_function: true, ..ParseOptions::default() })