Skip to content

Commit

Permalink
fix(no-unsupported-features): Remove use of static as a variable (#190
Browse files Browse the repository at this point in the history
)

Thank you @alex-kinokon for spotting this!
  • Loading branch information
scagood authored Feb 27, 2024
1 parent 7d44c5a commit e31d868
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/unsupported-features/node-builtins-modules/events.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down Expand Up @@ -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} */
Expand Down

0 comments on commit e31d868

Please sign in to comment.