fix(linter/hex-escape): false positive for String.raw#20497
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
Fixes a false-positive in the unicorn/no-hex-escape lint rule by skipping hex-escape checks for template literals that are tagged with String.raw, where rewriting \x.. escapes would change runtime behavior.
Changes:
- Skip
TemplateLiteralhex-escape linting when its parent is aString.rawtagged template expression. - Simplify/adjust imports to match the updated logic.
- Add a new “pass” test case intended to cover
String.rawbehavior.
You can also share your feedback on Copilot code review. Take the survey.
74e54a7 to
6ea617d
Compare
Merging this PR will not alter performance🎉 Hooray!
|
Merge activity
|
6ea617d to
65a7c3c
Compare

No description provided.