描述
I added standardrb #1199 to stop losing dev time to formatting/linting issues in PR review and rubocop configuration. It would be nice to have our CSS and JS similarly formatted and linted, but I've become extremely reluctant to permit js tooling in the build/CI pipeline because of how unreliable it's been for me.
The oxlint and oxfmt solve these problems similarly to standard and are written in Rust. They're young, but can't break prod or fail too disastrously.
We depend on the commonmarker gem that builds and wraps the comrak Rust crate. So this project would prompt a small open source project, creating a Ruby gem and pulling in new versions of the tools as they update.
And then of course the second part would be adding it to this codebase:
- add it as a dep with any needed config
- format our css and js (see below)
- add it to our CI build
- create a rake task for the build, there's a few steps now and we'd be able to explain brakeman if it prints warnings instead of off in a doc
Like standard, I expect that it would be better to adopt its defaults and ignore a reformatting commit than do significant configuration.