From afeed465786a32e032c9853ca9dd2993224e36c3 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 | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 2c7d56266d3977..83b855bbb5b159 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', }, };