noDiscardedRejectionThis rejection handler discards the failure without recording it or recovering from it.small-rules/no-discarded-rejectionWarn when a Promise rejection handler explicitly discards the failure and resolves to undefined.
An empty catch turns a Promise that didn’t work into a Promise whose value is undefined. The miss is
hidden. You do not log it, and you do not give a fallback.
The rule warns on the empty forms. It does not add a throw. It only follows a Promise it can see from the
syntax and the scope. To hide one on purpose, use an oxlint-disable comment and say why.
noDiscardedRejectionThis rejection handler discards the failure without recording it or recovering from it.This rule does not accept options.
Promise.resolve(request()).catch(() => undefined);Promise.resolve(request()).catch((exception) => { logFailure(exception); });