Skip to content

Commit

Permalink
tools: reduce list of globals in ESLint config
Browse files Browse the repository at this point in the history
Remove globals already known by ESLint.

PR-URL: nodejs#41996
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
  • Loading branch information
Trott authored Feb 18, 2022
1 parent bd04749 commit 5c9ea80
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,35 +314,13 @@ module.exports = {
'node-core/no-duplicate-requires': 'error',
},
globals: {
AbortController: 'readable',
AbortSignal: 'readable',
Atomics: 'readable',
BigInt: 'readable',
BigInt64Array: 'readable',
BigUint64Array: 'readable',
Blob: 'readable',
DOMException: 'readable',
Event: 'readable',
EventTarget: 'readable',
MessageChannel: 'readable',
BroadcastChannel: 'readable',
MessageEvent: 'readable',
MessagePort: 'readable',
TextEncoder: 'readable',
TextDecoder: 'readable',
queueMicrotask: 'readable',
globalThis: 'readable',
btoa: 'readable',
atob: 'readable',
performance: 'readable',
structuredClone: 'readable',
fetch: 'readable',
Headers: 'readable',
Request: 'readable',
Response: 'readable',
crypto: 'readable',
Crypto: 'readable',
CryptoKey: 'readable',
fetch: 'readable',
globalThis: 'readable',
Response: 'readable',
SubtleCrypto: 'readable',
},
};

0 comments on commit 5c9ea80

Please sign in to comment.