> Other than that, what I find useful many times is the amazing [just command 
> runner](https://github.com/casey/just) that is multi-platform. If you often 
> find yourself executing the same command in the terminal, this might be 
> useful such that everybody can do something like `just lint js`. And in the 
> respective recipe named `js` in the `lint.justfile`, you would then call 
> something like this:
> 
> #!/usr/bin/env bash
> yarn run eslint --config ./.config/eslint.mjs --max-warnings 0

The canonical way to do that for a rails project is to create a rails task 
(really a rake task in disguise) that can be run with the rails command, as we 
have for eslint:

```
bundle exec rails eslint
````

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5572#issuecomment-2621442842
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/issues/5572/2621442...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to