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

dt-lint void-return rule errors on this: void parameters #671

Open
ngbrown opened this issue May 5, 2023 · 0 comments
Open

dt-lint void-return rule errors on this: void parameters #671

ngbrown opened this issue May 5, 2023 · 0 comments

Comments

@ngbrown
Copy link

ngbrown commented May 5, 2023

When enabling eslint config plugin:@typescript-eslint/recommended-type-checked, it includes the rule unbound-method. But when trying to update a definition in DefinitelyTyped to include this: void I get an error:

ERROR: 42:17  void-return  Use the `void` type for return types only. Otherwise, use `undefined`. See: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/docs/void-return.md

Changing the first parameter this: void to anything else would be an error. This void-return rule should allow for this: void as the first parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant