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
533 stars 15 forks source link

HTML output? #19

Closed mmkal closed 3 months ago

mmkal commented 3 months ago

Hi - just discovered this yesterday and it is extremely helpful! I would love to incorporate it into CI at work. When our playwright tests fail, we output the results HTML folder which is then statically served by our CI provider. It'd be great to be able to run a command like npx @eslint/config-inspector --outDir dist/eslint-config after our CI lint job fails. I'm imagining that would dump some HTML/JS/CSS files into a folder so that it can be served as a webpage (like playwright).

Would this be possible? I haven't looked into whether the filtering is happening server-side or client-side. If it's server-side, it might not be so easy.

antfu commented 3 months ago

It's already implemented in https://github.com/eslint/config-inspector/pull/17, just haven't released yet