ReadonlycategoryRule category for grouping.
ReadonlydescriptionRule description explaining what it does.
ReadonlyidUnique rule identifier (scoped to plugin).
ReadonlynameHuman-readable rule name.
Transform a source file.
Transform context with file, project, and API access
Promise resolving to transform result
Transform Rule: Subscription in Lifecycle Hook
Converts raw
.subscribe()calls in lifecycle hooks to properly managed subscriptions usingtakeUntilDestroyed()operator from@angular/core/rxjs-interop.This fixes the
subscription-in-lifecycleviolation type detected by PresentationalComponentViolationRule.Runs only when the plugin config sets
transformationType: 'subscription-transform'; delegates to SubscriptionTransformOrchestrator.Example
See