Enable oxlint rule typescript/no-floating-promises (#34586)

* Enable oxlint rule `typescript/no-floating-promises`

* Iterate
This commit is contained in:
Michael Telatynski
2026-08-13 10:24:13 +00:00
committed by GitHub
parent 33dcc89c2f
commit eadc43ddf4
240 changed files with 582 additions and 575 deletions
+3 -3
View File
@@ -40,8 +40,8 @@ function bundleSubject(baseUrl, bundle) {
const fetcher = new rxjs.BehaviorSubject(Pending.of());
bundleCache.set(bundle, fetcher);
fetch(new URL(`bundles/${bundle}/bundle.js.map`, baseUrl).toString()).then((res) => {
res.body.cancel(); /* Bail on the download immediately - it could be big! */
void fetch(new URL(`bundles/${bundle}/bundle.js.map`, baseUrl).toString()).then((res) => {
void res.body.cancel(); /* Bail on the download immediately - it could be big! */
const status = res.ok;
if (status) {
fetcher.next(Success.of());
@@ -100,7 +100,7 @@ function fetchAsSubject(endpoint) {
const fetcher = new rxjs.BehaviorSubject(Pending.of());
fetchCache.set(endpoint, fetcher);
fetch(endpoint).then((res) => {
void fetch(endpoint).then((res) => {
if (!res.ok) {
fetcher.next(FetchError.of(`Failed to fetch endpoint ${endpoint}: ${res.status} ${res.statusText}`));
return;