From eaa0e1e0f0b11d290a7f6d0b0e4c4426861d0258 Mon Sep 17 00:00:00 2001 From: Sebastian Good <2230835+scagood@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:22:23 +0000 Subject: [PATCH] fix(no-unsupported-features): Remove use of `static` as a variable Thank you @alex-kinokon for spotting this! --- lib/unsupported-features/node-builtins-modules/events.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/unsupported-features/node-builtins-modules/events.js b/lib/unsupported-features/node-builtins-modules/events.js index c314e8b0..4572e403 100644 --- a/lib/unsupported-features/node-builtins-modules/events.js +++ b/lib/unsupported-features/node-builtins-modules/events.js @@ -1,7 +1,7 @@ const { READ } = require("@eslint-community/eslint-utils") /** @type {import('../types.js').SupportVersionTree} */ -const static = { +const EventEmitterStatic = { defaultMaxListeners: { [READ]: { supported: ["0.11.2"] } }, errorMonitor: { [READ]: { supported: ["13.6.0", "12.17.0"] } }, captureRejections: { @@ -43,13 +43,13 @@ const events = { }, EventEmitter: { [READ]: { supported: ["0.1.26"] }, - ...static, + ...EventEmitterStatic, }, EventEmitterAsyncResource: { [READ]: { supported: ["17.4.0", "16.14.0"] }, - ...static, + ...EventEmitterStatic, }, - ...static, + ...EventEmitterStatic, } /** @type {import('../types.js').SupportVersionTree} */