Skip to content

Commit 5732b94

Browse files
chore: fix lint issues in public.ts route file (#173)
- Reorder imports according to import-x/order (sibling then type groups) - Add explicit Promise<void> return type to publicRoutes function - Remove extra blank lines after imports
1 parent 8421d23 commit 5732b94

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/backend/src/routes/public.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { FastifyContextConfig, FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
2-
import { generateQRBuffer, generateQRSvg } from '../utils/qr.js';
3-
import type { PlatformLink } from '@devcard/shared';
41
import { getErrorMessage } from '../utils/error.util.js';
2+
import { generateQRBuffer, generateQRSvg } from '../utils/qr.js';
53

4+
import type { PlatformLink } from '@devcard/shared';
5+
import type { FastifyContextConfig, FastifyInstance, FastifyRequest, FastifyReply } from 'fastify';
66

77
// ── QR size bounds ────────────────────────────────────────────────────────────
88
// Enforced before any DB query or image allocation. Values outside this range
@@ -75,7 +75,7 @@ interface CardLinkWithPlatform {
7575
}
7676

7777

78-
export async function publicRoutes(app: FastifyInstance) {
78+
export async function publicRoutes(app: FastifyInstance): Promise<void> {
7979
// ─── Public Profile ───
8080
app.get('/:username', {
8181
config: {

0 commit comments

Comments
 (0)