eslint-community/eslint-plugin-promise

promise/catch-or-return should report unhandled Promise.resolve/reject

Open

#55 opened on Jan 23, 2017

 (1 comment) (0 reactions) (0 assignees)JavaScript (103 forks)auto 404
enhancementfeedback-soughthelp wanted

Repository metrics

Stars
 (998 stars)
PR merge metrics
 (PR metrics pending)

Description

This innocently looking assignment:

const FAIL = Promise.reject();

causes UnhandledPromiseRejectionWarning if FAIL is not used...

Contributor guide