style: align oxfmt to trailing-comma 'all' and normalize code
All checks were successful
Build and Push Docker Image / build (push) Successful in 28s

The repo was authored prettier-style (trailing-comma 'all') but .oxfmtrc.json
was set to 'es5', so every formatted file diverged. Switch the config to 'all'
to match the existing code, ignore docs/** and **/drizzle/** (prose + generated
snapshots the formatter should not own), and reformat the source tree once for
consistency. No behavioural change; all suites green (api 60, worker 28, admin 21).
This commit is contained in:
Bas van Rossem
2026-06-17 21:36:18 +02:00
parent 1807f2b6d6
commit 70ac27ec8e
27 changed files with 48 additions and 51 deletions

View File

@@ -18,7 +18,7 @@ export function createApp(): Hono {
allowHeaders: ['Content-Type', 'Authorization'],
exposeHeaders: ['set-auth-token'], // so the SPA can read the bearer token on sign-in
credentials: true,
})
}),
);
app.route('/', health);
app.on(['POST', 'GET'], '/api/auth/*', (c) => auth.handler(c.req.raw));

View File

@@ -45,7 +45,7 @@ export const session = sqliteTable(
},
(table) => ({
sessionUserIdIdx: index('session_userId_idx').on(table.userId),
})
}),
);
export const account = sqliteTable(
@@ -73,7 +73,7 @@ export const account = sqliteTable(
},
(table) => ({
accountUserIdIdx: index('account_userId_idx').on(table.userId),
})
}),
);
export const verification = sqliteTable(
@@ -93,7 +93,7 @@ export const verification = sqliteTable(
},
(table) => ({
verificationIdentifierIdx: index('verification_identifier_idx').on(table.identifier),
})
}),
);
export const userRelations = relations(user, ({ many }) => ({
@@ -157,5 +157,5 @@ export const workSessions = sqliteTable(
(table) => ({
workSessionsUserIdIdx: index('work_sessions_userId_idx').on(table.userId),
workSessionsStartTimeIdx: index('work_sessions_startTime_idx').on(table.startTime),
})
}),
);

View File

@@ -5,7 +5,7 @@ type WorkSessionRow = typeof workSessions.$inferSelect;
export function toWorkSession(
row: WorkSessionRow,
opts: { activityName?: string | null; userName?: string | null; userEmail?: string | null } = {}
opts: { activityName?: string | null; userName?: string | null; userEmail?: string | null } = {},
): WorkSession {
return {
id: row.id,

View File

@@ -35,8 +35,8 @@ adminRoutes.get('/api/admin/sessions', async (c) => {
activityName: r.activityName,
userName: r.userName,
userEmail: r.userEmail,
})
)
}),
),
);
});
@@ -54,7 +54,7 @@ adminRoutes.get('/api/admin/sessions/active', async (c) => {
activityName: r.activityName,
userName: r.userName,
userEmail: r.userEmail,
})
)
}),
),
);
});