Eslint determine globals from another file : <p>I'm trying to set up ESLint in such a way that it parses a globals declaration file before linting the actual target file, so that I don't have to declare as globals all the functions and variables that are indeed globals, but letting the parser figure that out:</p>

<p>In <strong>some_module.js</strong>:</p>

<pre><code>function do_something() {
  if (glob_action("foobar")) {
     ... something something ...
  }
}
</code></pre>

<p>While in <strong>globals.js</strong> I have a set of utilities and global variables:</p>

<pre><code>function glob_action(x) {
   ... something something ...
}
</code></pre>

<p>So how can I tell to ESlint to include global.js in determining the fact that:</p>

<pre><code>76:3  error  'glob_action' is not defined  no-undef
</code></pre>

<p>is not actually undefined, but I do NOT want to list it as global:</p>

<pre><code>/*global glob_action*/
</code></pre>

<p>I would like to do something like:</p>

<pre><code>/*eslint include "../globa.js"*/
</code></pre>

<p>Is it possible? How?</p>
