refactor: enforce semantic values and numeric lint rules

This commit is contained in:
2026-09-13 14:37:25 +03:00
parent 24d332e063
commit 53c852b437
21 changed files with 190 additions and 47 deletions
+3 -1
View File
@@ -3,6 +3,8 @@ import createQueryClient from "openapi-react-query";
import type { paths } from "./generated/schema";
const HTTP_UNAUTHORIZED = 401;
const apiBaseUrl = import.meta.env.VITE_API_BASE_URL ?? "http://localhost:3000";
type AuthHandlers = {
@@ -50,7 +52,7 @@ async function authenticatedFetch(request: Request): Promise<Response> {
const retryRequest = authorized.clone();
const response = await fetch(authorized);
if (
response.status !== 401 ||
response.status !== HTTP_UNAUTHORIZED ||
isAuthRequest ||
!auth ||
(