Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
- https://github.com/AviVahl/typescript-eslint-bug
- default tsconfig from
tsc --init
- minimal eslint config
- clone and
npm it
to see issue
Expected Result
mocha's it
accepts a return promise in its callback type, so there should be no error.
Actual Result
typescript-eslint-bug/test/some-test.spec.ts
2:32 error Promise returned in function argument where a void return was expected @typescript-eslint/no-misused-promises
mishandling of overloads defined on an interface?
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.13.0 |
@typescript-eslint/parser |
5.13.0 |
TypeScript |
4.5.5 |
ESLint |
8.10.0 |
node |
16.14.0 |