You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, just noticed the last sentence. Yes, if you would submit a PR, that would be awesome! If not, no worries; I'll see if I can fix it during this week
You may also want to consider using https://npmjs.com/is-core-module since it'll have much more reliable results than node's builtinModules list, and, it will work for an arbitrary node version, which for a project might not be the same one that's running eslint.
I don't like how it uses two extra dependencies for something that simplistic
[...] it'll have much more reliable results than node's builtinModules list, and, it will work for an arbitrary node version, which for a project might not be the same one that's running eslint.
But this is a valid concern and should be looked into
Activity
chore(eslint): workaround for lint failure
chore(eslint): workaround for lint failure
kytta commentedon May 13, 2025
Oh, just noticed the last sentence. Yes, if you would submit a PR, that would be awesome! If not, no worries; I'll see if I can fix it during this week
ljharb commentedon May 13, 2025
You may also want to consider using https://npmjs.com/is-core-module since it'll have much more reliable results than node's builtinModules list, and, it will work for an arbitrary node version, which for a project might not be the same one that's running eslint.
kytta commentedon May 13, 2025
I don't like how it uses two extra dependencies for something that simplistic
But this is a valid concern and should be looked into
ljharb commentedon May 13, 2025
¯\_(ツ)_/¯ it's clearly not that simple. up to you tho.
fix: support Node.js v23.5.0+
boneskull commentedon May 13, 2025
Created #13