From 11118487289c279486b33094eb38eed8445026a4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Mar 2026 17:12:12 +0000 Subject: [PATCH] refactor: remove unnecessary eslint-disable comments from const Set declarations Co-authored-by: robonen <26167508+robonen@users.noreply.github.com> --- core/fetch/src/fetch.ts | 1 - core/fetch/src/utils.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/core/fetch/src/fetch.ts b/core/fetch/src/fetch.ts index 8af4a3b..ba5525a 100644 --- a/core/fetch/src/fetch.ts +++ b/core/fetch/src/fetch.ts @@ -17,7 +17,6 @@ import { // --------------------------------------------------------------------------- /** HTTP status codes that trigger automatic retry by default */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const DEFAULT_RETRY_STATUS_CODES: ReadonlySet = /* @__PURE__ */ new Set([ 408, // Request Timeout 409, // Conflict diff --git a/core/fetch/src/utils.ts b/core/fetch/src/utils.ts index f506c0a..15e7df6 100644 --- a/core/fetch/src/utils.ts +++ b/core/fetch/src/utils.ts @@ -13,15 +13,12 @@ import type { // --------------------------------------------------------------------------- /** HTTP methods whose requests carry a body */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const PAYLOAD_METHODS: ReadonlySet = /* @__PURE__ */ new Set(['PATCH', 'POST', 'PUT', 'DELETE']); /** HTTP status codes whose responses never have a body */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment export const NULL_BODY_STATUSES: ReadonlySet = /* @__PURE__ */ new Set([101, 204, 205, 304]); /** Content-types treated as plain text */ -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const TEXT_CONTENT_TYPES: ReadonlySet = /* @__PURE__ */ new Set([ 'image/svg', 'application/xml',