From 0fbcc9580071f3a31bc194aa57cc772d04f5a951 Mon Sep 17 00:00:00 2001 From: Dimitri Mitropoulos Date: Tue, 10 Sep 2024 16:09:29 -0400 Subject: [PATCH] turns off debugging, also uses RUNNER_DEBUG --- .../eslint-plugin-turbo/lib/rules/no-undeclared-env-vars.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/eslint-plugin-turbo/lib/rules/no-undeclared-env-vars.ts b/packages/eslint-plugin-turbo/lib/rules/no-undeclared-env-vars.ts index 33074b35b8fd25..7b49d59afd8eeb 100644 --- a/packages/eslint-plugin-turbo/lib/rules/no-undeclared-env-vars.ts +++ b/packages/eslint-plugin-turbo/lib/rules/no-undeclared-env-vars.ts @@ -7,9 +7,7 @@ import { frameworks } from "@turbo/types"; import { RULES } from "../constants"; import { Project, getWorkspaceFromFilePath } from "../utils/calculate-inputs"; -/** set this to true if debugging this rule */ -const debugging = "".length === 0; -const debug = debugging +const debug = process.env.RUNNER_DEBUG ? logger.info : (_: string) => { /* noop */