title: How can I use ESLint no-unused-vars for a block of code?
body: <p>I need to disable some variable checks in <code>ESLint</code>.</p>
  
  <p>Currently, I am using this code, but am not getting the desired result:</p>
  
  <pre class="lang-js prettyprint-override"><code>/* eslint no-unused-vars: ["error", { "caughtErrorsIgnorePattern": "Hey" }] */
  export type Hey = {
    a: string,
    b: object
  }
  </code></pre>
  
  <p>Two questions:</p>
  
  <ul>
  <li>Is there a variant which can enable <code>no-unused-vars</code> for a block of code?</li>
  </ul>
  
  <p>Something like...</p>
  
  <pre class="lang-js prettyprint-override"><code>/* eslint rule disable"*/
  
  // I want to place my block of code, here
  
  /* eslint rule disable"*/
  </code></pre>
  
  <ul>
  <li>Or could I make <code>Hey</code> a global variable so that it can be ignored everywhere?</li>
  </ul>