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
+4 -11
View File
@@ -31,7 +31,7 @@ const canConnectToDatabase = async (url: string): Promise<boolean> => {
const connector = createGamePostgresConnector({ url });
try {
await connector.connect();
const prisma = connector.prisma as ScenarioSeederPrismaClient;
const prisma = connector.prisma as unknown as ScenarioSeederPrismaClient;
await prisma.$queryRawUnsafe('SELECT 1');
return true;
} catch {
@@ -54,13 +54,8 @@ describeDb('scenario database seed', () => {
const connector = createGamePostgresConnector({ url: databaseUrl });
await connector.connect();
try {
const prisma = connector.prisma as ScenarioSeederPrismaClient;
const [
nationCount,
cityCount,
generalCount,
diplomacyCount,
] = await Promise.all([
const prisma = connector.prisma as unknown as ScenarioSeederPrismaClient;
const [nationCount, cityCount, generalCount, diplomacyCount] = await Promise.all([
prisma.nation.count(),
prisma.city.count(),
prisma.general.count(),
@@ -70,9 +65,7 @@ describeDb('scenario database seed', () => {
expect(nationCount).toBe(seed.nations.length);
expect(cityCount).toBe(seed.cities.length);
expect(generalCount).toBe(seed.generals.length);
expect(diplomacyCount).toBe(
seed.nations.length * Math.max(0, seed.nations.length - 1)
);
expect(diplomacyCount).toBe(seed.nations.length * Math.max(0, seed.nations.length - 1));
expect(generalCount).toBeGreaterThan(0);
if (seed.diplomacy.length > 0) {