From 3a8082cd5afc76c49a3e38eae91cd6f157a1bde4 Mon Sep 17 00:00:00 2001 From: Ezra Khairan Permana Date: Tue, 25 Jun 2024 05:59:47 +0700 Subject: [PATCH] fix: lint --- packages/db-migrate/src/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/db-migrate/src/index.ts b/packages/db-migrate/src/index.ts index f8f8dba..7a803e1 100644 --- a/packages/db-migrate/src/index.ts +++ b/packages/db-migrate/src/index.ts @@ -9,8 +9,12 @@ console.log("launched..."); const connectionStr = new URL( `mysql://${process.env.DB_HOST}/${process.env.DB_NAME}`, ); - connectionStr.username = process.env.DB_USERNAME as string; - connectionStr.password = process.env.DB_PASSWORD as string; + + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + connectionStr.username = process.env.DB_USERNAME!; + + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + connectionStr.password = process.env.DB_PASSWORD!; const sql = await mysql.createConnection(connectionStr.href); const db = drizzle(sql);