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: #41996
Reviewed-By: Mestery <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tierney Cyren <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Shingo Inoue <[email protected]>
  • Loading branch information
Trott authored and bengl committed Feb 21, 2022
1 parent f47a069 commit 297d217
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,33 +314,13 @@ module.exports = {
'node-core/no-duplicate-requires': 'error',
},
globals: {
AbortController: 'readable',
AbortSignal: 'readable',
Atomics: 'readable',
BigInt: 'readable',
BigInt64Array: 'readable',
BigUint64Array: 'readable',
DOMException: 'readable',
Event: 'readable',
EventTarget: 'readable',
MessageChannel: '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 297d217

Please sign in to comment.