You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For consistency, I feel that the prefer-await-to-then rule should also flag promise.catch and promise.finally so we can enforce async/await everywhere if desired.
Steps to Reproduce
Run prefer-await-to-then on code with a Promise.prototype.catch invocation
Expected behavior: catch call is flagged
Actual behavior: rule does not report a problem
Versions
[Please fill this in if you are submitting a bug report]
Node version: 12.16.1
ESLint version: 6.7.2
eslint-plugin-promise version: 4.2.1
Additional Information
None, suggestion
The text was updated successfully, but these errors were encountered:
Description
For consistency, I feel that the prefer-await-to-then rule should also flag promise.catch and promise.finally so we can enforce async/await everywhere if desired.
Steps to Reproduce
Expected behavior: catch call is flagged
Actual behavior: rule does not report a problem
Versions
[Please fill this in if you are submitting a bug report]
Additional Information
None, suggestion
The text was updated successfully, but these errors were encountered: