title: Writing js that will pass ESLint
body: <p>I'm working on a site that will be on BigCommerce, and the stencil bundle function uses ESLint to check the javascript... I haven't had to write for that before and have just copy/pasted things I find in stackoverflow... would someone <strong>please</strong>!!! help make this code all modern and lint-passing?</p>
  
  <pre><code>const delay = 100;
  let throttled = false;
  
  function resizeHeight() {
      const circleWidth = $('.home4a p').css('width');
      const circleWidth2 = $('.home4b p').css('width');
  
      $('.home4a p').css('height', circleWidth);
      $('.home4b p').css('height', circleWidth2);
  }
  
  window.addEventListener('resize', function() {
  if (!throttled) {
      resizeHeight();
      throttled = true;
      setTimeout(function() {
          throttled = false;
      }, delay);
  }
  });
  
  resizeHeight();
  </code></pre>
  
  <p>ESLint doesn't like the 'window.addEventListener...' or the 2 occurrences function(). [it also says that it is missing a space between function and ()]</p>