File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
internal/bootstrap/switches Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,10 @@ rules:
175175 message : Use `const { structuredClone } = require('internal/structured_clone');` instead of the global.
176176 - name : SubtleCrypto
177177 message : Use `const { SubtleCrypto } = require('internal/crypto/webcrypto');` instead of the global.
178+ no-restricted-modules :
179+ - error
180+ - name : url
181+ message : Require `internal/url` instead of `url`.
178182 # Custom rules in tools/eslint-rules
179183 node-core/avoid-prototype-pollution : error
180184 node-core/lowercase-name-for-primitive : error
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ rawMethods.resetStdioForTesting = function() {
290290// Needed by the module loader and generally needed everywhere.
291291require ( 'fs' ) ;
292292require ( 'util' ) ;
293- require ( 'url' ) ;
293+ require ( 'url' ) ; // eslint-disable-line no-restricted-modules
294294
295295require ( 'internal/modules/cjs/loader' ) ;
296296require ( 'internal/modules/esm/utils' ) ;
You can’t perform that action at this time.
0 commit comments