eslint-plugin-unicorn icon indicating copy to clipboard operation
eslint-plugin-unicorn copied to clipboard

`no-unused-properties` - add support for unused props in types

Open qpwo opened this issue 3 years ago • 0 comments

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
}

qpwo avatar Oct 19 '21 14:10 qpwo