eslint-community / eslint-plugin-promise

Enforce best practices for JavaScript promises
ISC License
939 stars 91 forks source link

fix: permit appropriate computed member expressions and prototype access #535

Open brettz9 opened 1 month ago

brettz9 commented 1 month ago

What is the purpose of this pull request?

What changes did you make? (Give an overview)

Permits appropriate computed member expressions such as Promise['all'] and suitable prototype access (e.g., Promise.prototype.catch) but errs on detectable problems (e.g., Promise.prototype.done).

Fixes #533, Fixes #534.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (bbcfcbf) to head (65a8b7d). Report is 42 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #535 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 25 26 +1 Lines 649 703 +54 Branches 250 272 +22 ========================================= + Hits 649 703 +54 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.