<p></p>
<p dir="auto">If you introduce linting here you might also be interested in:</p>
<ul dir="auto">
<li>How we use ESLint on GitHub Actions via <a href="https://github.com/MaMpf-HD/mampf/blob/23aae01471c4361b85e86df06e349cd8acfb735c/.github/workflows/linter.yml#L39-L75">this file</a> to lint only the changes inside changed <code class="notranslate">.js</code> and <code class="notranslate">.js.erb</code> files in a PR (see <a href="https://github.com/MaMpf-HD/mampf/blob/main/.github/actions/changed_files/action.yml">this custom action</a>).</li>
<li>A currently open <a href="https://github.com/MaMpf-HD/mampf/pull/730" data-hovercard-type="pull_request" data-hovercard-url="/MaMpf-HD/mampf/pull/730/hovercard">PR</a> where I try to set up linting of HTML files via <a href="https://html-eslint.org/" rel="nofollow"><code class="notranslate">html-eslint</code></a>. Note that you can use my eslint-erb-plugin to also lint the HTML part of <code class="notranslate">.html.erb</code> files. Additionally, I set up Shopify's <a href="https://github.com/Shopify/erb_lint"><code class="notranslate">erb_lint</code></a> to also lint the Ruby part of <code class="notranslate">.html.erb</code> files.</li>
<li>I haven't yet found a way to lint the Ruby part of <code class="notranslate">.js.erb</code> files. In the best case, it would work just like <code class="notranslate">erb_lint</code>.</li>
</ul>

<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/5523#issuecomment-2612111999">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKV3SXENMJM6U7RTNT2MIEZTAVCNFSM6AAAAABVPAFAG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJSGEYTCOJZHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNYMMB7Q23DYCSFAR32MIEZTA5CNFSM6AAAAABVPAFAG6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU3WGVH6.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/5523/2612111999</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/5523#issuecomment-2612111999",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5523#issuecomment-2612111999",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>