Skip to content

emptyTypeParameterLists

Reports empty type parameter lists in type aliases and interfaces.

✅ This rule is included in the ts stylistic and stylisticStrict 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
type Foo = string
Foo
<> = string;
interface
interface Bar
Bar
<> {}
type
type Generic = {
value: number;
}
Generic
<> = {
value: number
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 ❤️‍🔥 around the world by the Flint team and contributors.