-
Notifications
You must be signed in to change notification settings - Fork 885
no-unnecessary-type-assertion: Don't check !
if --strictNullChecks is not enabled
#3724
Conversation
@Andy-MS what's the motivation for this change? Adding assertions during migration to |
With |
Yeah, I get that. But what's the use case? |
At least for TypeScript, we annotated our code as best as we could even without having |
@Andy-MS this change looks good! would you mind merging latest |
What's the status on this? |
PR checklist
Overview of change:
Doesn't check whether
x!
is an unnecessary non-null assertion if--strictNullChecks
is not enabled.CHANGELOG.md entry:
[bugfix] no-unnecessary-type-assertion: Don't check
x!
non-null assertions if--strictNullChecks
is not enabled