style: suppress new eslint-plugin-react error

This commit is contained in:
Christopher Willis-Ford 2023-12-15 17:57:08 -08:00
parent 274722c30f
commit f8a3046f87

View file

@ -125,6 +125,8 @@ class BitmapAdapter {
}
};
image.onerror = () => {
// TODO: reject with an Error (breaking API change!)
// eslint-disable-next-line prefer-promise-reject-errors
reject('Image load failed');
};
});