oxc/crates/oxc_linter
camchenry 0a5a4a9812 refactor(linter): use parsed patterns for unicorn/no-hex-escape (#5985)
- part of https://github.com/oxc-project/oxc/issues/5416

This pull request includes significant improvements to the `no_hex_escape` rule in the `oxc_linter` crate. The changes enhance the detection and replacement of hexadecimal escapes within regular expressions by introducing a more comprehensive AST traversal.

  - Implemented a new `visit_terms` function and its helper functions to traverse the regex AST and apply checks on individual terms.
  - Introduced the `check_character` function to replace hexadecimal escapes with Unicode escapes within regex patterns.
  - Updated snapshots to reflect the new diagnostic messages and replacements for hexadecimal escapes in regex patterns.
2024-09-23 01:11:02 +00:00
..
examples refactor(semantic): impl IntoIterator for &AstNodes (#5873) 2024-09-19 03:22:29 +00:00
fixtures test: add trailing line breaks to conformance fixtures (#5541) 2024-09-06 12:55:17 +00:00
src refactor(linter): use parsed patterns for unicorn/no-hex-escape (#5985) 2024-09-23 01:11:02 +00:00
tests
Cargo.toml perf(linter): use aho-corasick instead of regex for string matching in jsx-a11y/img-redundant-alt (#5892) 2024-09-19 22:40:01 +00:00
CHANGELOG.md release(oxlint): v0.9.6 (#5843) 2024-09-18 12:02:09 +08:00