From 73ba5936efa1270d1f335aad196935e6f2110ee4 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 33074b35b8fd2..7b49d59afd8ee 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 */