WebStorm using ES6 import with CommonJS module
<p>I'm using WebStorm and want to use ES6 import instead of require. However when using import with libraries that use CommonJS like lodash I get a warning from WebStorm "cannot resolve symbol".</p>

<p>The code work perfectly as babel transform the import to require, I just want WebStorm to play along and not showing any error. I don't want to partly use ES6 import and partly require.</p>

<p>I'm using WebStorm version 2016.2.2.</p>

<p><a href="https://i.stack.imgur.com/wtfzn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wtfzn.png" alt="Cannot resolve symbol castArray"></a></p>