-
Notifications
You must be signed in to change notification settings - Fork 889
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? |
👋 @andy-ms and @NaridaL! I don't know if this is still relevant or useful to you, but heads up that this is now merged in and will be available in the next TSLint release. Sorry this took so long! |
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