Skip to content

Commit e90a3a6

Browse files
cjihrigRafaelGSS
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 961710b commit e90a3a6

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
@@ -153,7 +153,7 @@ rules:
153153
- name: clearTimeout
154154
message: Use `const { clearTimeout } = require('timers');` instead of the global.
155155
- name: console
156-
message: Use `const { console } = require('internal/console/global');` instead of the global.
156+
message: Use `const console = require('internal/console/global');` instead of the global.
157157
- name: crypto
158158
message: Use `const { crypto } = require('internal/crypto/webcrypto');` instead of the global.
159159
- name: Crypto

0 commit comments

Comments
 (0)