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] || "" }) }