From c77226cef42a9a97a0b64713ce96633b972a8228 Mon Sep 17 00:00:00 2001 From: jowi Date: Wed, 4 Sep 2024 14:08:34 -0400 Subject: [PATCH] feat(env): add env vars --- packages/env/eslint.config.js | 5 +++++ packages/env/src/website/server.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/env/eslint.config.js b/packages/env/eslint.config.js index 8f105660..8ced3bc4 100644 --- a/packages/env/eslint.config.js +++ b/packages/env/eslint.config.js @@ -9,6 +9,11 @@ export default (async () => { return [ ...baseConfig, + { + rules: { + 'dot-notation': ['error', { allowPattern: '^[A-Z_]+$' }], + }, + }, // The following configurations are commented out // ...compat.extends( diff --git a/packages/env/src/website/server.ts b/packages/env/src/website/server.ts index d6d222fb..4a8a06bf 100644 --- a/packages/env/src/website/server.ts +++ b/packages/env/src/website/server.ts @@ -20,5 +20,5 @@ export const env = createEnv({ PORT: process.env.PORT, }, emptyStringAsUndefined: true, - skipValidation: !!process.env.SKIP_ENV_VALIDATION, + // skipValidation: !!process.env.['SKIP_ENV_VALIDATION'], })