← All recipes
Moderne licensed

Suppress the safe navigation extended diagnostics

Recipe IDorg.openrewrite.angular.migration.suppress-safe-navigation-diagnosticsArtifact@openrewrite/recipes-angular

Sets the nullishCoalescingNotNullable and optionalChainNotNullable extended diagnostics to suppress in angularCompilerOptions in tsconfig.json. Angular 22 narrows types across safe navigation and nullish coalescing in templates, which makes both diagnostics fire on templates that previously compiled cleanly.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.angular.migration.suppress-safe-navigation-diagnostics

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular