eslint-plugin-unicorn
eslint-plugin-unicorn copied to clipboard
`no-unused-properties` - add support for unused props in types
Not sure if this is a bug exactly but it's not a new rule proposal either.
This doesn't give any errors but I wish it did.
function foo(args: {x: number, y: number}) {
return args.x * 2 // y is unused
}