From 20082861d3d41667bcd591a33a73c6db44407d63 Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Thu, 22 Feb 2024 00:24:35 +0900 Subject: [PATCH] fix(src/env.d.ts): declare envs as readonly (#52) --- src/env.d.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/env.d.ts b/src/env.d.ts index 3a00878..aa74bfc 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -3,27 +3,23 @@ declare module "bun" { /** * Token of the Discord bot. */ - // biome-ignore lint/style/useNamingConvention: should be SCREAMING_SNAKE_CASE - DISCORD_BOT_TOKEN: string; + readonly DISCORD_BOT_TOKEN: string; /** * ID of the Discord guild where the bot is used. */ - // biome-ignore lint/style/useNamingConvention: - DISCORD_GUILD_ID: string; + readonly DISCORD_GUILD_ID: string; /** * Email of the Google Cloud service account. * (`client_email` in the JSON file) */ - // biome-ignore lint/style/useNamingConvention: - GOOGLE_SERVICE_ACCOUNT_EMAIL: string; + readonly GOOGLE_SERVICE_ACCOUNT_EMAIL: string; /** * Private key of the Google Cloud service account. * (`private_key` in the JSON file) */ - // biome-ignore lint/style/useNamingConvention: - GOOGLE_SERVICE_ACCOUNT_KEY: string; + readonly GOOGLE_SERVICE_ACCOUNT_KEY: string; } }