title: Eslint throws is assigned a value but never used , webpack module
body: <p>I am importing a script in webpack, it all works but eslint is throwing the error <code>'modal is assigned a value but never used'</code>. Do have to declare the const as a global or export the module to fix the error ? </p>
  
  <p>modules.vanillaModal.js :</p>
  
  <pre><code>import VanillaModal from 'vanilla-modal';
  
  // Create instance
  const modal = new VanillaModal({
    modal: '.c-modal',
    modalInner: '.js-modal__inner',
    modalContent: '.js-modal__content',
    open: '[rel="js-modal:open"]',
    close: '[rel="js-modal:close"]',
    class: 'js-modal--visible',
    loadClass: 'js-modal--loaded',
  });
  </code></pre>
  
  <p>and my webpack entry 
  index.js:</p>
  
  <pre><code>require('./modules.vanillaModal.js');
  </code></pre>