eslint / config-inspector

A visual tool for inspecting and understanding your ESLint flat configs.
https://www.npmjs.com/package/@eslint/config-inspector
Apache License 2.0
730 stars 19 forks source link

config-inspector is not compatible with Node.js 23.0.0 #99

Closed demonicattack closed 1 month ago

demonicattack commented 1 month ago

When attempting to run config-inspector with Node.js 23.0.0, it fails with a TypeError related to the fs.scandir module. The error appears to be caused by an attempt to set the path property on a Dirent object, which only has a getter.

/home/demonicattack/.cache/pnpm/dlx/wctbkpzalb6eryu2az5puesrkq/192a624b7e4-2d5cc/node_modules/.pnpm/@nodelib+fs.scandir@3.0.0/node_modules/@nodelib/fs.scandir/out/utils/fs.js:27 DirentFromStats.prototype[name] = function () { ^

TypeError: Cannot set property path of # which has only a getter at Object. (/home/demonicattack/.cache/pnpm/dlx/wctbkpzalb6eryu2az5puesrkq/192a624b7e4-2d5cc/node_modules/.pnpm/@nodelib+fs.scandir@3.0.0/node_modules/@nodelib/fs.scandir/out/utils/fs.js:27:37) ... Node.js v23.0.0

Image

demonicattack commented 1 month ago

I fixed the issue in the nodelib library that was causing eslint-inspector not to run. Therefore, I am closing this issue.