You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But that doesn't work because the signature returns void | Promise<void> and void.ignore() would be an error.
Actual Behavior
ESLint: Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.(@typescript-eslint/ no-floating-promises)
The text was updated successfully, but these errors were encountered:
Haven't tested that though. I also considered augmenting the rule's config but I couldn't get a allowForKnownSafePromises config to work for some reason.
This is basically a duplicate of #12348, just a different effect of the change. I'll leave this open in case the solution there doesn't also solve this.
I'm using React Router as a...
library
Reproduction
Use react-router v7, in particular with #11521 merged.
System Info
Used Package Manager
npm
Expected Behavior
No ESLint warning.
Or the ability to silence the warning like I normally do, with
.ignore()
based on a global definition:But that doesn't work because the signature returns
void | Promise<void>
andvoid.ignore()
would be an error.Actual Behavior
The text was updated successfully, but these errors were encountered: