Repository navigation
Tags
Tags
Keep "typsecript" dependency under 7.0.0 TS 7.0 reimplemented the compiler in GO, eliminating all compiler hooks tsec currently depends on. Ping the TS dependency below 7.0.0 to avoid breakage. PiperOrigin-RevId: 1029021843 Change-Id: Iaa56cded57a98bdd8ee86b029080dd68edfded18
Add `Checker.hasSourceFileMatching(pattern)` (TypeScript) and `Checker.HasSourceFileMatching(pattern)` (Go), which report whether any source file path in the program (with or without its file extension) matches `pattern`. Use this check during rule registration in `ban-wiz-element` (both `ban_wiz_element.ts` and `ban_wiz_element.go`) to skip registering its `Identifier` AST visitor when the program contains no source file matching the rule's target module path. Previously, `ban-wiz-element` visited every `Identifier` node in every compiled file and queried the type checker to resolve symbols, even in programs that never load the target factory module. PiperOrigin-RevId: 1029346833 Change-Id: I89ceac89e9ca36485a8b31d2e5bb272f4e71ecba
Merge pull request #16 from googleinterns/upstream Merge from upstream