[no-unsafe-return] TypeError: checker.getTypeArguments is not a function #1807
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
The rule
no-unsafe-return
exits with an error on array types with TS versions < 3.7Apparently the rule uses the method
getTypeArguments
which was only added to the TS api in version 3.7: https://github.com/microsoft/TypeScript-wiki/blob/master/API-Breaking-Changes.mdRepro
I created a minimal repo here: https://github.com/tao-cumplido/ts-eslint-error
If you bump the TS version to 3.7 it works as expected.
Expected Result
no error
Actual Result
Additional Info
Versions
@typescript-eslint/eslint-plugin
2.25.0
@typescript-eslint/parser
2.25.0
TypeScript
3.6.x
ESLint
6.8.0
node
13.10.1
npm
6.13.7
The text was updated successfully, but these errors were encountered: