Bug: [no-invalid-void-type] Does not allow using void as a default type for a generic argument #5644
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.8.3&sourceType=module&code=KYDwDg9gTgLgBASwHY2FAZgQwMbDgUREwFswAbYAHgBU4BeOANwgQBMA+OAbwFgAoOHGLAYACwisAFAEoAXHGoBufgF9+QA&eslintrc=N4KABGBEAOCGBOBnApvSAuKABALgT2mUQGN4BLaHAWiIBsyA7HAejiVUgBpwp4BXWkQxhQECJFwEipCtTqMWDAPZVGAN1j0AJlTVKyO-IWEBtSKnhK03MWOBRNtJQHcAkgwDiyBqjLEAKlIAgvAA5nwAtt44iMI4-MgAvjwQALo8yclAA&tsconfig=N4KAvkA
Repro Code
ESLint Config
tsconfig
Expected Result
I expected the example code to pass linting without warnings or errors.
Actual Result
On the first line we get the error void is only valid as a return type or generic type variable.
Additional Info
No response
Versions
TypeScript
4.8.3
ESLint
8.15.0
The text was updated successfully, but these errors were encountered: