From 5c9ea80fa77f39618d0e24a07a04cf99faa0ebd9 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 17 Feb 2022 17:38:39 -0800 Subject: [PATCH] tools: reduce list of globals in ESLint config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove globals already known by ESLint. PR-URL: https://github.com/nodejs/node/pull/41996 Reviewed-By: Mestery Reviewed-By: Colin Ihrig Reviewed-By: Tierney Cyren Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: Shingo Inoue --- .eslintrc.js | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c7c7cc56051b1c..83b855bbb5b159 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', }, };