no-unnecessary-type-assertion: Don't check ! if --strictNullChecks is not enabled#3724
no-unnecessary-type-assertion: Don't check ! if --strictNullChecks is not enabled#3724JoshuaKGoldberg merged 4 commits intomasterfrom unknown repository
! if --strictNullChecks is not enabled#3724Conversation
|
@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--strictNullChecksis not enabled.CHANGELOG.md entry:
[bugfix] no-unnecessary-type-assertion: Don't check
x!non-null assertions if--strictNullChecksis not enabled