title: eslint: no-undef - `$` is not defined"
body: <p>Im trying to run this script with Tampermonkey but i get Error:
  eslint: no-undef - <code>$</code> is not defined"
  What im doing wrong?</p>
  
  <p>Script:</p>
  
  <pre><code>(function() {
      'use strict';
  
      restore();
  
      $('span.tag').each((n, span) =&gt; {
          let input = document.querySelector(`input#${span.getAttribute('for')}`);
          span.addEventListener('click', () =&gt; {
              store(`tags`, input.value, input.checked);
          });
      });
      $('#board, #title').change((e) =&gt; {
          store(e.target.id, e.target.value);
      });
  
      function restore(){
          let json = localStorage.getItem('create') || "{}";
          let data = JSON.parse(json);
  
          Object.keys(data).forEach(key =&gt; {
              switch(key){
                  case "tags":
                      data[key].forEach(val =&gt; {
                          document.querySelector(`input[value="${val}"]`).setAttribute('checked', 'checked');
                          document.querySelector(`span[for="create_${val}"]`).classList.add('selected');
                      });
                      break;
                  case "board":
                      document.querySelector(`#board option[value="${data[key]}"]`).setAttribute('selected', 'selected');
                  default:
                      document.querySelector(`#${key}`).value = data[key];
                      break;
              }
          });
      }
  
      function store(key, value, checked) {
          let json = localStorage.getItem('create') || "{}";
          let data = JSON.parse(json);
  
          if(arguments.length === 3){
              data[key] = new Set(data[key]);
              if(checked) {
                  data[key].add(value);
              } else {
                  data[key].delete(value);
              }
  
              data[key] = Array.from(data[key]);
          } else {
              data[key] = value;
          }
  
          json = JSON.stringify(data);
          localStorage.setItem('create', json);
      }
  })();
  </code></pre>