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 <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>
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
@@ -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.