Skip to content

Commit cedd422

Browse files
committed
tools: restrict internal code from using public url module
1 parent 669811f commit cedd422

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/.eslintrc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ rules:
179179
message: Use `const { structuredClone } = require('internal/structured_clone');` instead of the global.
180180
- name: SubtleCrypto
181181
message: Use `const { SubtleCrypto } = require('internal/crypto/webcrypto');` instead of the global.
182+
no-restricted-modules:
183+
- error
184+
- name: url
185+
message: Require `internal/url` instead of `url`.
182186
# Custom rules in tools/eslint-rules
183187
node-core/avoid-prototype-pollution: error
184188
node-core/lowercase-name-for-primitive: error

0 commit comments

Comments
 (0)