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 22, 2022
1 parent 84b1e4f commit afeed46
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 afeed46

Please sign in to comment.