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 |
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: