Skip to content

Commit 43a9689

Browse files
committed
Fix lint and tweak eslint error message
1 parent 523b74c commit 43a9689

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
'no-restricted-globals': [
2121
'error',
2222
// https://github.com/TooTallNate/proxy-agents/pull/242
23-
{ name: 'URL', message: 'Use url.URL instead' },
23+
{ name: 'URL', message: 'Use `URL` from the Node.js "url" module instead.' },
2424
],
2525
},
2626
},

packages/pac-proxy-agent/test/test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import assert from 'assert';
22
import * as fs from 'fs';
33
import * as http from 'http';
44
import * as https from 'https';
5+
import { URL } from 'url';
56
// @ts-expect-error no types
67
import socks from 'socksv5';
78
import { listen } from 'async-listen';

0 commit comments

Comments
 (0)