eslint-plugin-promise icon indicating copy to clipboard operation
eslint-plugin-promise copied to clipboard

feat: new rule `prefer-catch`

Open brettz9 opened this issue 1 year ago • 1 comments

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.

brettz9 avatar Aug 01 '24 08:08 brettz9

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.

codecov[bot] avatar Aug 01 '24 08:08 codecov[bot]