Skip to content

Commit 31b8cf1

Browse files
cjihrigjuanarbol
authored andcommitted
tools: fix lint rule recommendation
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: #46044 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2de50fe commit 31b8cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/.eslintrc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ rules:
141141
- name: clearTimeout
142142
message: Use `const { clearTimeout } = require('timers');` instead of the global.
143143
- name: console
144-
message: Use `const { console } = require('internal/console/global');` instead of the global.
144+
message: Use `const console = require('internal/console/global');` instead of the global.
145145
- name: crypto
146146
message: Use `const { crypto } = require('internal/crypto/webcrypto');` instead of the global.
147147
- name: Crypto

0 commit comments

Comments
 (0)