Skip to content

emptyTypeParameterLists

Reports empty type parameter lists in type aliases and interfaces.

✅ This rule is included in the ts stylistic presets.

TypeScript permits empty type parameter lists like <>, but this practice is unnecessary. Empty type parameter lists can lead to unclear or ambiguous code where the intention is not self-evident.

type Foo<> = string;
interface Bar<> {}
type Generic<> = { value: number };

This rule is not configurable.

If your codebase intentionally uses empty type parameter lists for specific tooling or code generation purposes, you may disable this rule.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.