fix: Resolve no-floating-promises lint errors (#12196)

* fix: Resolve no-floating-promises lint errors

Adds await or void to 10 unhandled promises. Notable fixes: a test
assertion using `.resolves` was never awaited, and a custom emoji
fetch with setState was running during render instead of in an effect.

* chore: Promote no-floating-promises to error

Now that all occurrences are fixed, prevent regressions.
This commit is contained in:
Tom Moor
2026-04-28 18:13:46 -04:00
committed by GitHub
parent 816a474a46
commit 9b7ccf8cb5
11 changed files with 19 additions and 16 deletions
+1
View File
@@ -87,6 +87,7 @@
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"typescript/consistent-type-imports": "error",
"typescript/no-floating-promises": "error",
"no-unused-vars": [
"error",
{