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
+2 -6
View File
@@ -3,10 +3,7 @@ import crypto from 'node:crypto';
import type { BattleSimJobPayload, BattleSimResultPayload, BattleSimTransportResponse } from './types.js';
import type { BattleSimQueueKeys } from './keys.js';
type RedisBlPopResult =
| { key: string; element: string }
| [string, string]
| null;
type RedisBlPopResult = { key: string; element: string } | [string, string] | null;
interface RedisClientLike {
rPush(key: string, value: string): Promise<number>;
@@ -22,8 +19,7 @@ export interface RedisBattleSimTransportOptions {
resultTtlSeconds: number;
}
const toTimeoutSeconds = (timeoutMs: number): number =>
Math.max(1, Math.ceil(timeoutMs / 1000));
const toTimeoutSeconds = (timeoutMs: number): number => Math.max(1, Math.ceil(timeoutMs / 1000));
const parseBlPopValue = (result: RedisBlPopResult): string | null => {
if (!result) {