fix(lint): stop three rules matching code a composition only displays (#2811)
A code-explainer composition renders selectors and API calls as text. `stripJsStringLiterals` blanks string and template contents (offsets preserved) so `composition_id_selector_in_comment`, `template_literal_selector` and `raf_animation_loop` scan real code only. The scanner tracks regex-vs-division context so a regex literal's own quotes cannot open a phantom string and blank the rest of the script; on any unbalanced scan it returns the source unchanged, so an unmodelled parse degrades to the pre-existing behaviour rather than blanking code on an error-severity gate.
X
Xuanru Li committed
051336c07b34dec08b5dddf6f54dfcc7f4f64755
Parent: 39ad272
Committed by GitHub <noreply@github.com>
on 9/7/2026, 1:34:02 AM