From 5732b943fc3b75c75f9daec6cf7ff72425d262db Mon Sep 17 00:00:00 2001 From: rajesh-puripanda Date: Mon, 1 Jun 2026 22:07:32 +0530 Subject: [PATCH] chore: fix lint issues in public.ts route file (#173) - Reorder imports according to import-x/order (sibling then type groups) - Add explicit Promise return type to publicRoutes function - Remove extra blank lines after imports --- apps/backend/src/routes/public.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/backend/src/routes/public.ts b/apps/backend/src/routes/public.ts index 68200726..d06ee631 100644 --- a/apps/backend/src/routes/public.ts +++ b/apps/backend/src/routes/public.ts @@ -1,8 +1,8 @@ -import type { FastifyContextConfig, FastifyInstance, FastifyRequest, FastifyReply } from 'fastify'; -import { generateQRBuffer, generateQRSvg } from '../utils/qr.js'; -import type { PlatformLink } from '@devcard/shared'; import { getErrorMessage } from '../utils/error.util.js'; +import { generateQRBuffer, generateQRSvg } from '../utils/qr.js'; +import type { PlatformLink } from '@devcard/shared'; +import type { FastifyContextConfig, FastifyInstance, FastifyRequest, FastifyReply } from 'fastify'; // ── QR size bounds ──────────────────────────────────────────────────────────── // Enforced before any DB query or image allocation. Values outside this range @@ -75,7 +75,7 @@ interface CardLinkWithPlatform { } -export async function publicRoutes(app: FastifyInstance) { +export async function publicRoutes(app: FastifyInstance): Promise { // ─── Public Profile ─── app.get('/:username', { config: {