Skip to content

Commit

Permalink
feat(linter)!: parse and display syntax errors for regular expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Aug 26, 2024
1 parent 2fbc283 commit 0d4e33d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_linter/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ impl Runtime {
) -> Vec<Message<'a>> {
let ret = Parser::new(allocator, source_text, source_type)
.with_options(ParseOptions {
parse_regular_expression: true,
allow_return_outside_function: true,
..ParseOptions::default()
})
Expand Down

0 comments on commit 0d4e33d

Please sign in to comment.