[openstreetmap/openstreetmap-website] Repo: editor help to find eslint config file (Issue #5572)
Tom Hughes
notifications at github.com
Wed Jan 29 11:57:30 UTC 2025
> 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/2621442842 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250129/0fa9f403/attachment.htm>
More information about the rails-dev
mailing list