Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have read the FAQ and my problem is not listed.
Description
I feel like the same reasoning applies as for something like no-unnecessary-condition
. It seems like the strict-type-checked
ruleset is for projects where types can be trusted, and in those projects, it makes sense to forbid any kind of type guard, assertion, or really any code without side effects unrelated to types, and that clearly includes this rule.
Impacted Configurations
Just strict-type-checked
, I believe.
Additional Info
I proposed/helped write the rule, so I'm of course biased.
I don't know the considerations for adding a rule to a preset configuration, but assuming risk is a factor, I think that even though the rule is only a couple of months old, it is based heavily on existing code, I have been using it myself without issues, and there has only been one minor bug report for it (#11192), so it seems safe.