feat: eslint 적용 및 관련 코드 일괄 수정

This commit is contained in:
2026-01-05 15:46:47 +00:00
parent cb312f02b3
commit c965b1120f
387 changed files with 39808 additions and 38800 deletions
+1 -4
View File
@@ -50,10 +50,7 @@ const toMessageView = (row: MessageRow): MessageView => {
};
};
export const insertMessage = async (
db: DatabaseClient,
draft: MessageRecordDraft
): Promise<number> => {
export const insertMessage = async (db: DatabaseClient, draft: MessageRecordDraft): Promise<number> => {
const rows = await db.$queryRaw<Array<{ id: number }>>`
INSERT INTO message (mailbox, type, src, dest, time, valid_until, message)
VALUES (
+2 -9
View File
@@ -21,10 +21,7 @@ export const resolveNationInfo = async (
return { name: nation.name, color: nation.color };
};
export const buildTargetFromGeneral = async (
db: DatabaseClient,
general: GeneralRow
): Promise<MessageTarget> => {
export const buildTargetFromGeneral = async (db: DatabaseClient, general: GeneralRow): Promise<MessageTarget> => {
const nation = await resolveNationInfo(db, general.nationId);
return {
generalId: general.id,
@@ -36,11 +33,7 @@ export const buildTargetFromGeneral = async (
};
};
export const buildNationTarget = (
nationId: number,
nationName: string,
color: string
): MessageTarget => ({
export const buildNationTarget = (nationId: number, nationName: string, color: string): MessageTarget => ({
generalId: 0,
generalName: '',
nationId,