<p></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">The JS with embedded Ruby isn't held to the same standards as all the other JS code.</p>
<h3 dir="auto">Description</h3>
<p dir="auto">Please look into enabling linting files with embedded Ruby in ESLint.<br>
The <a href="//github.com/Splines/eslint-plugin-erb">eslint-plugin-erb</a> could help here.</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a href="https://github.com/user-attachments/assets/d032ec80-5f32-4e4a-83af-3027e6e66663">osm.js.erb.png (view on web)</a><br>
<a href="https://github.com/user-attachments/assets/a6e11800-77f7-415f-bc68-702798f59bdd">embed.js.erb.png (view on web)</a><br>
<a href="https://github.com/user-attachments/assets/a09b71c5-15ec-4315-953d-fa19b9722a7d">id.js.erb.png (view on web)</a></p>

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