Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-unused-properties - add support for unused props in types #1551

Open
qpwo opened this issue Oct 19, 2021 · 0 comments
Open

no-unused-properties - add support for unused props in types #1551

qpwo opened this issue Oct 19, 2021 · 0 comments

Comments

@qpwo
Copy link

qpwo commented Oct 19, 2021

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 qpwo added the bug label Oct 19, 2021
@fregante fregante changed the title no-unused-properties doesn't detect unused typescript object args no-unused-properties - add support for unused props in types Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants