<p></p>
<blockquote>
<p dir="auto">Other than that, what I find useful many times is the amazing <a href="https://github.com/casey/just">just command runner</a> 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 <code class="notranslate">just lint js</code>. And in the respective recipe named <code class="notranslate">js</code> in the <code class="notranslate">lint.justfile</code>, you would then call something like this:</p>
<p dir="auto">#!/usr/bin/env bash<br>
yarn run eslint --config ./.config/eslint.mjs --max-warnings 0</p>
</blockquote>
<p dir="auto">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:</p>
<pre class="notranslate"><code class="notranslate">bundle exec rails eslint
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5572#issuecomment-2621442842">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLWX7FJR6EC3HQYLOT2NC62VAVCNFSM6AAAAABWCILDQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRRGQ2DEOBUGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLM7CRSC3V43EMJ4U332NC62VA5CNFSM6AAAAABWCILDQWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU4IAFRU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5572/2621442842</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5572#issuecomment-2621442842",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5572#issuecomment-2621442842",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>