diff --git a/src/config/other.ts b/src/config/other.ts index 33757ce..3c0d348 100644 --- a/src/config/other.ts +++ b/src/config/other.ts @@ -82,6 +82,12 @@ export const otherRules = { ignores: ["dynamicImport", "modules"], }, ], + "n/no-process-env": [ + "error", + { + allowedVariables: ["NEXT_RUNTIME"], + }, + ], "no-restricted-globals": [ "error", diff --git a/src/config/overrides.ts b/src/config/overrides.ts index dfd4b2a..e13e2b4 100644 --- a/src/config/overrides.ts +++ b/src/config/overrides.ts @@ -23,6 +23,9 @@ export const overrides = [ // Allow test files to use dev dependencies "n/no-unpublished-import": "off", + + // Allow test files to use process.env + "n/no-process-env": "off", }, }, {