This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
noMisusedPromises, typescript-eslint/no-misused-promises
#4446
jpike88
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.md
I know this one needs type awareness as mentioned in another thread, but this is an extremely useful linting rule as it prevents promises from being used in if statements without being awaited properly.
I actually have it configured like this:
Beta Was this translation helpful? Give feedback.
All reactions