consistent-generic-constructors
Configuration
rslint.config.ts
Rule Details
Enforce specifying generic type arguments on the type annotation or the constructor of a variable declaration. When constructing a generic class, the type arguments can be placed either on the left-hand side (type annotation) or the right-hand side (constructor call). This rule enforces consistency.
The rule supports two modes: "constructor" (default) prefers type arguments on the constructor call, and "type-annotation" prefers them on the type annotation.
Examples of incorrect code for this rule (with default "constructor" option):
Examples of correct code for this rule (with default "constructor" option):