-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prefer-await-to-then doesn't enforce .then/.catch/.finally #294
Comments
Wanting to enforce this was the reason I found this plugin. I also expected the same behavior. |
same lmao @xjamundx @macklinu @aaditmshah |
brettz9
added a commit
to brettz9/eslint-plugin-promise
that referenced
this issue
Jul 21, 2024
…ait` or `yield`; fixes eslint-community#294
1 task
brettz9
added a commit
to brettz9/eslint-plugin-promise
that referenced
this issue
Jul 21, 2024
…ait` or `yield`; fixes eslint-community#294
🎉 This issue has been resolved in version 6.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Currently the rule is not enforced if a chain in async/await is correctly established. It could possibly have
strict
option to get rid of promise methods and preferawait
completely.Steps to Reproduce
Expected behavior:
Both
then
andcatch
trigger linter error.Actual behavior:
The error is triggered with
then
and only ifawait
is missing.Versions
[Please fill this in if you are submitting a bug report]
Additional Information
Related: #187
The text was updated successfully, but these errors were encountered: