Removes residual Promise anti-patterns left after the service and component transforms:
.toPromise()
detectChanges()
@Component
Restores the original source text when a step throws.
Readonly
Rule ID reported in every TransformResult.
TransformResult
Applies the transformation to context.sourceFile in place.
context.sourceFile
Transform context of the file.
Result with modified: false and a reason when nothing applies.
modified: false
Removes residual Promise anti-patterns left after the service and component transforms:
.toPromise()calls are replaced by their receiver.detectChanges()are removed from non-async methods of@Componentclasses.Restores the original source text when a step throws.