QuiiBz / sherif

Opinionated, zero-config linter for JavaScript monorepos
MIT License
911 stars 13 forks source link

Javascript Usage #98

Open childrentime opened 1 month ago

childrentime commented 1 month ago

I'd like to ask, does this library have a JavaScript usage? Because I might want to generate serialized output.

QuiiBz commented 1 month ago

I'm not sure to understand your question correctly. Sherif is distributed as a Rust binary, so you can invoke it pretty easily from a Node.js script. We do not have e.g. a WASM build or Node-API support.

I might want to generate serialized output. Could you expand on that part what's the end goal?

childrentime commented 1 month ago

I want to run it on GitLab's CI/CD after code is pushed, and input a JSON file, so that the report can be seen on the merge request review interface. It's possible to execute it during git pre-commit, but it's not always reliable because people can skip it using -nv.