Skip to content

Feature Request: Allow Non-Blocking Mode for strictTemplates #55868

@tomer953

Description

@tomer953

Which @angular/* package(s) are relevant/related to the feature request?

language-service

Description

We are working on a large-scale Angular project and are interested in adopting the strictTemplates option to improve our type safety and overall code quality. However, enabling strictTemplates currently flags a significant number of errors due to our existing codebase size, making an immediate adoption impractical as it would halt our build processes.

Proposed solution

Implement an option within angularCompilerOptions where strictTemplates can be enabled in a non-blocking mode. This mode would allow developers to see warnings instead of errors for strict template checks, preventing them from blocking the build process. This feature would be incredibly beneficial for large projects wanting to gradually adopt strict type checking in their templates without disrupting their development workflow.

Alternatives considered

Incremental Adoption \ Directive/Component Specific Flagging

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions