[@typescript-eslint/no-misused-promises] Regression - false positive for mocha 'it' functions in version 5.13.0? #4640
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
tsconfig.json:
Expected Result
I expect the rule to not throw errors for the 'it' functions of Chai, since it has
(this: Context) => PromiseLike<any>
as its signature. No error is thrown for version 5.12.1 and earlier, of @typescript-eslint/eslint-plugin + parser.Actual Result
Versions
@typescript-eslint/eslint-plugin
5.13.0
@typescript-eslint/parser
5.13.0
TypeScript
4.5.5
ESLint
8.10.0
node
16.13.2
The text was updated successfully, but these errors were encountered: