-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Allow Non-Blocking Mode for strictTemplates #55868
Comments
related to: angular/vscode-ng-language-service#1646 Seems like VSCode extension allow to force strictTemplates without effecting the build process, However:
|
I'd recommend to adopt different |
Edited: Oh got it.. so its actually pretty simple just use different tsconfig file for the 🚀 |
The workaround is not the easiest on large projects, We had to change every I hope we will have some option to force strict template option on the language service, so I'll keep this issue open. |
We've discussed this question and decided that we shouldn't try to support any kind of warning mode for
This is how TypeScript rolls out new strictness flags - at the granularity of the tsconfig options. It's also possible to configure two
Template type-checking works by generating TypeScript code representing the template, and feeding it to TypeScript's checker. The diagnostics we get back are (for the most part) real TypeScript diagnostics produced by |
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
wherestrictTemplates
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
The text was updated successfully, but these errors were encountered: