From 31b8cf1a4d3303a4b05b2ce31f33c2971753128a Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 1 Jan 2023 11:41:42 -0500 Subject: [PATCH] tools: fix lint rule recommendation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lint rule recommends destructuring console out of the internal/console/global.js export. However, that does not exist. The top level export is actually the console object. PR-URL: https://github.com/nodejs/node/pull/46044 Reviewed-By: Yagiz Nizipli Reviewed-By: Filip Skokan Reviewed-By: Tobias Nießen Reviewed-By: Antoine du Hamel Reviewed-By: Darshan Sen Reviewed-By: Juan José Arboleda Reviewed-By: Luigi Pinca --- lib/.eslintrc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index b9ff435f10bb1e..9dbdc218174a10 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -141,7 +141,7 @@ rules: - name: clearTimeout message: Use `const { clearTimeout } = require('timers');` instead of the global. - name: console - message: Use `const { console } = require('internal/console/global');` instead of the global. + message: Use `const console = require('internal/console/global');` instead of the global. - name: crypto message: Use `const { crypto } = require('internal/crypto/webcrypto');` instead of the global. - name: Crypto