<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #5523.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2797798059" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5523" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5523/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5523">#5523</a></p>
<p dir="auto">This is a draft, since our .js.erb files don't currently pass the linting. I've fixed the straightforward ones in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2809621588" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5548" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5548/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5548">#5548</a> but there are a few more to complete before this can be merged.</p>
<p dir="auto">I've opened this pull request to make it easier for other developers (who have more JS skills) to help. My recommendation is to checkout this pull request locally, fix the errors, and submit those fixes separately as PRs (e.g. cherry-pick your fixes onto our master branch).</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5549'>https://github.com/openstreetmap/openstreetmap-website/pull/5549</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/commits/6b06be5e5d3b43fcd0707dd6ad3ab823d8acfe06" class="commit-link">6b06be5</a>  Fix some eslint errors (quotes, spacing and parseInt radix) on .js.erb files</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/commits/af3b052dc0f836ca63d05c9d0c7b3767bb229637" class="commit-link">af3b052</a>  Add eslint-plugin-erb to provide linting of our .js.erb files</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files">7 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files#diff-5c2b51e0ba5f2385195ba895842df7b083fc07b716e39a720f01d5a988edeefa">app/assets/javascripts/edit/id.js.erb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files#diff-8c15a01c0063fe88fd9f5197128e788856295e4755fbb4a3cbf7aa6be9f81ca7">app/assets/javascripts/embed.js.erb</a>
    (36)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
    (85)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files#diff-96200efa07e00ed1e99917b67033ff3c54a932520a4dcb9939217a0e2fe1fa8b">config/eslint.js</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files#diff-cd65ec1e50201b871987ff6c0e73f73591a231dbc7021d1580895f8a7c17065f">lib/tasks/eslint.rake</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519">package.json</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5549/files#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2de">yarn.lock</a>
    (5)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5549.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5549.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5549.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5549.diff</a></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/pull/5549">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLUWJ3HFULPUNWVNTD2MJG2XAVCNFSM6AAAAABVZ2ZBR6VHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYDSNRTGE3DQMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL25YPL2OS6E5TO6NT2MJG2XA5CNFSM6AAAAABVZ2ZBR6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKO54TYA.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/pull/5549</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/pull/5549",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5549",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>