ESLint no-invalid-void-type error in services.gen.ts #1103
Labels
bug 🔥
Something isn't working
prioritized 🚚
This issue has been prioritized and will be worked on soon
Milestone
Description
Actual
In the
services.gen.ts
there arevoid is only valid as a return type or generic type argument.eslint[@typescript-eslint/no-invalid-void-type](https://typescript-eslint.io/rules/no-invalid-void-type)
errors appearing.Expected
The eslint page suggests to use
undefined
instead.That would mean that these appearances would change as follows:
Reproducible example or configuration
https://stackblitz.com/edit/hey-api-client-fetch-example-nppfy7?file=src%2Fclient%2Fservices.gen.ts
Then run
npm run lint
. Quite some issues will appear, but some will be like:OpenAPI specification (optional)
Any OpenAPI endpoint that does return nothing basically.
System information (optional)
Only thing important to mention here, is a more strict eslint config:
These were added/edited to the base stackblitz example. It is the recommended production setup by the vite react-ts template (see README)
The text was updated successfully, but these errors were encountered: