From e90a3a6effb400dc978d2e1c2b5c7eb469bd4d90 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 c5e5a146ec4912..2cc6ca904ee76f 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -153,7 +153,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