no-unsafe-return
Configuration
rslint.config.ts
Rule Details
Disallow returning a value with type any from a function.
Returning an any-typed value from a function that has a typed return type undermines type safety, since the caller will trust the return type but the actual value has no type guarantees. This rule also flags returning any[] and Promise<any> where the function expects more specific types.
Examples of incorrect code for this rule:
Examples of correct code for this rule: