diff --git a/.eslintrc.js b/.eslintrc.js index 3d5fb05c..b1425dc5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,7 +20,7 @@ module.exports = { 'no-restricted-globals': [ 'error', // https://github.com/TooTallNate/proxy-agents/pull/242 - { name: 'URL', message: 'Use url.URL instead' }, + { name: 'URL', message: 'Use `URL` from the Node.js "url" module instead.' }, ], }, }, diff --git a/packages/pac-proxy-agent/test/test.ts b/packages/pac-proxy-agent/test/test.ts index 6886a8c1..e3f2e5e5 100644 --- a/packages/pac-proxy-agent/test/test.ts +++ b/packages/pac-proxy-agent/test/test.ts @@ -2,6 +2,7 @@ import assert from 'assert'; import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; +import { URL } from 'url'; // @ts-expect-error no types import socks from 'socksv5'; import { listen } from 'async-listen';