sbdchd / eslint-plugin-cake

:cake: Sweet rules for ESLint
MIT License
1 stars 0 forks source link

new rule: no-pointless-type-extends #25

Open sbdchd opened 3 years ago

sbdchd commented 3 years ago
// err
function foo<T extends unknown>(x: T) {}

// error as well?
function foo<T extends any>(x: T) {}

// ok
function foo<T>(x: T) {}
function foo<T extends Bar>(x: T) {}