ESlint ignores directories when called from npm script
<p>In my package.json I have:</p>

<pre><code>"scripts": {                            
       "lint": "eslint --debug components"   
}                                      
</code></pre>

<p>When I run it with <code>npm run lint</code> I see this</p>

<pre><code>&gt; eslint --debug components
eslint:cli Running on files +0ms
eslint:glob-util Creating list of files to process. +39ms
eslint:ignored-paths Looking for ignore file in c:\dev\Monies +6ms
eslint:ignored-paths Could not find ignore file in cwd +1ms
eslint:cli-engine Linting complete in: 13ms +5ms
</code></pre>

<p>So it ignores my dir.</p>

<p>It does work as expected when I run it from command line.</p>

<pre><code>node_modules\.bin\eslint --debug compoments

eslint:cli Running on files +0ms
eslint:glob-util Creating list of files to process. +39ms
eslint:ignored-paths Looking for ignore file in c:\dev\Monies +5ms
eslint:ignored-paths Could not find ignore file in cwd +1ms
eslint:cli-engine Processing c:\dev\Monies\compoments\Header.js +15ms
eslint:cli-engine Linting c:\dev\Monies\compoments\Header.js +2ms
eslint:config Constructing config for c:\dev\Monies\compoments\Header.js +1ms
</code></pre>

<p>Why it doesn't work with <code>npm run</code>?</p>