Understanding no-floating-promises #8046
Closed
GZLiew
started this conversation in
Technical Discussions
Replies: 2 comments
-
The rule assumes your variable will be used and handled appropriately. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like this was a straightforward resolution π. Thanks all! Filed #8088 to improve docs around this. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Hi I added the
@typescript-eslint/no-floating-promises
rule to my code base but why does the following code not error ?'@typescript-eslint/no-floating-promises': 'error',
but calling only sleep() errors
Additional Info
No response
Before you submit your discussion, please confirm the following. If any of these required steps are not taken, we may not be able to review your RFC. Help us to help you!
Beta Was this translation helpful? Give feedback.
All reactions