<p>This PR attempts to replace jshint with eslint - as a first pass it uses a config that tries to replicate the jshint options we had enabled although eslint does seem to have a a few more things that I have cleaned up in a separate commit.</p>
<p>Once this is in we can think about enabling more checks - probably starting with some of those that iD is using.</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/2196'>https://github.com/openstreetmap/openstreetmap-website/pull/2196</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Replace jshint with eslint</li>
  <li>Fix issues found by eslint</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-0">.travis.yml</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-1">Gemfile</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-2">Gemfile.lock</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-3">app/assets/javascripts/index.js</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-4">app/assets/javascripts/index/directions.js</a>
    (33)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-5">app/assets/javascripts/index/note.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-6">app/assets/javascripts/index/search.js</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-7">app/assets/javascripts/piwik.js</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-8">app/assets/javascripts/richtext.js</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-9">config/eslint.json</a>
    (30)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196/files#diff-10">config/jshint.yml</a>
    (30)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2196.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2196.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2196.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2196.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2196">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLeT_RRa9b8cmnMMOtaJZI3MBaIPOks5vcm7_gaJpZM4cWmX4">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLbdKm3EUhUzkxGjZID-pqlo6XW-Fks5vcm7_gaJpZM4cWmX4.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Replace jshint with eslint (#2196)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/2196"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2196",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2196",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>