Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
let value: NotKnown;
function example() {
return value;
}
ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/no-unsafe-return": "error"
}
}
tsconfig
Expected Result
When the value being returned is of an "error" type, there should be some indication that it's not the same as an any
. It's confusing for developers to see both "error" any
s and "true" any
s described with the same messaging.
Actual Result
Unsafe return of an `any` typed value. 4:3 - 4:16
Additional Info
💖