title: eslint no-unused-vars varIgnorePattern not working
body: <p>I am using slick.js jquery plugin inside requireJS. Thus in order to make the plugin available I have to <code>require</code> it, which is introducing an</p>
  <blockquote>
  <p>'slick' is defined but never used  no-unused-vars</p>
  </blockquote>
  <p>error from eslint. Here is the code</p>
  <pre><code>define(['jquery', 'slick'], function($, slick) {
      'use strict';
  
      $.widget(&quot;mage.promobanner&quot;, {
          _addSlider: function(self) {
              setTimeout(function(){
                  $(self.element).slick(self.options);
              }, 2000);
          }
      });
      return $.mage.promobanner;
  });
  </code></pre>
  <p>I have tried creating an exception for this variable per the <a href="https://eslint.org/docs/rules/no-unused-vars#varsignorepattern" rel="noreferrer"><code>varsIgnorePattern</code> documentation</a></p>
  <p><code>/*eslint no-unused-vars: [&quot;error&quot;, { &quot;varsIgnorePattern&quot;: &quot;slick&quot; }]*/</code></p>
  <p>however the error persists. Is there something wrong with the ignore pattern I have created? Seems like a no-brainer regex: <em>exact match</em>!</p>