Find pathMatch route properties that may need type narrowing

Proprietary

Finds pathMatch property assignments in route configurations. In Angular 14, the pathMatch type was narrowed from string to 'full' | 'prefix'. Routes defined as plain objects without explicit Route or Routes typing may fail type checking.

org.openrewrite.angular.search.find-path-match-type-usage
mod run . --recipe=org.openrewrite.angular.search.find-path-match-type-usage

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.