From c9ba6a6cc5973ad47d038a61d8f07a155e9892fa Mon Sep 17 00:00:00 2001 From: James Blair Date: Fri, 8 May 2026 18:49:46 +1200 Subject: [PATCH] Allow static only classes and make Health.check() no longer async --- biome.json | 3 +++ server/index.ts | 2 +- server/modules/health/service.ts | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/biome.json b/biome.json index 41b3b95..d2ead4c 100644 --- a/biome.json +++ b/biome.json @@ -20,6 +20,9 @@ "recommended": true, "suspicious": { "noUnknownAtRules": "off" + }, + "complexity": { + "noStaticOnlyClass": "off" } }, "domains": { diff --git a/server/index.ts b/server/index.ts index fbff813..e45f4f5 100644 --- a/server/index.ts +++ b/server/index.ts @@ -1,4 +1,4 @@ -import Elysia, { t } from "elysia"; +import Elysia from "elysia"; import { health } from "./modules/health"; export const app = new Elysia({ prefix: "/api" }).use(health); diff --git a/server/modules/health/service.ts b/server/modules/health/service.ts index 23b7e52..27d24e4 100644 --- a/server/modules/health/service.ts +++ b/server/modules/health/service.ts @@ -1,7 +1,7 @@ -import { HealthModel } from "./model"; +import type { HealthModel } from "./model"; export abstract class Health { - static async check() { + static check() { return { status: "ok", } satisfies HealthModel["checkResponse"];