You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Angular v22 OnPush became the default change detection, so explicit changeDetection: ChangeDetectionStrategy.OnPush is now redundant. prefer-on-push-component-change-detection currently flags Eager/Default with a suggestion, but doesn't report explicit OnPush.
Proposal
Add an option (e.g. reportRedundantOnPush, defaulting to false to make it opt-in) that flags explicit OnPush assignments and can autofix it.
If you guys agree, I can open a PR for this.
Feature request
In Angular v22 OnPush became the default change detection, so explicit
changeDetection: ChangeDetectionStrategy.OnPushis now redundant.prefer-on-push-component-change-detectioncurrently flags Eager/Default with a suggestion, but doesn't report explicit OnPush.Proposal
Add an option (e.g. reportRedundantOnPush, defaulting to false to make it opt-in) that flags explicit OnPush assignments and can autofix it.
If you guys agree, I can open a PR for this.