1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 10:54:44 +00:00

refactor: remove unnecessary eslint-disable comments from const Set declarations

Co-authored-by: robonen <26167508+robonen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-13 17:12:12 +00:00
parent 170093a039
commit 1111848728
2 changed files with 0 additions and 4 deletions

View File

@@ -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<number> = /* @__PURE__ */ new Set([
408, // Request Timeout
409, // Conflict

View File

@@ -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<string> = /* @__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<number> = /* @__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<string> = /* @__PURE__ */ new Set([
'image/svg',
'application/xml',