Replies: 2 comments
-
example code that would have been allowed if this rule wasn't on...
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks to bring it to light! I added this rule in the list of rules we want to support. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ran into a nasty bit of code smell today, where an any was bubbled up through some functions to be returned by a function with a different signature.
This rule would have prevented that, and ensured that the 'any' variable was handled or coerced into a type before being returned anywhere.
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-return.md
Beta Was this translation helpful? Give feedback.
All reactions