no-unnecessary-type-constraint
Added in v0.5.0Configuration
rslint.config.ts
Rule Details
This rule disallows unnecessary constraints on generic types. Type parameters (<T>) default to unknown, so constraining a generic type parameter to any or unknown has no effect.
Examples of incorrect code for this rule:
Examples of correct code for this rule: