From 40f2f6fdc3b9bcbec9cc97bd9e943e99cdd8f63f Mon Sep 17 00:00:00 2001 From: Philipp Arndt <2f.mail@gmx.de> Date: Sat, 6 Jan 2024 14:42:02 +0100 Subject: [PATCH] lint: fix --- app/lib/config/config.test.ts | 1 + app/lib/config/config.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/lib/config/config.test.ts b/app/lib/config/config.test.ts index 9fe36309..d7dad487 100755 --- a/app/lib/config/config.test.ts +++ b/app/lib/config/config.test.ts @@ -61,6 +61,7 @@ describe("Config", () => { }, hue: { host: "192.168.1.1", + // eslint-disable-next-line no-template-curly-in-string "api-key": "${API_KEY}" } } diff --git a/app/lib/config/config.ts b/app/lib/config/config.ts index 59a26d71..93ec499e 100644 --- a/app/lib/config/config.ts +++ b/app/lib/config/config.ts @@ -55,11 +55,11 @@ export const applyDefaults = (config: any) => { } as Config } -function replaceEnvVariables(input: string) { - const envVariableRegex = /\${([^}]+)}/g; +function replaceEnvVariables (input: string) { + const envVariableRegex = /\${([^}]+)}/g return input.replace(envVariableRegex, (_, envVarName) => { - return process.env[envVarName] || ''; + return process.env[envVarName] || "" }) }