eslint-plugin-promise
eslint-plugin-promise copied to clipboard
feat: new rule `prefer-catch`
What is the purpose of this pull request?
- [x] New rule
What changes did you make? (Give an overview)
Adds new rule prefer-catch to prefer catch over then(a, b) or then(null, b).
Closes #217.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
bbcfcbf) to head (0b43d92). Report is 67 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #525 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 25 29 +4
Lines 649 774 +125
Branches 250 291 +41
==========================================
+ Hits 649 774 +125
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.