 <p>There is no workaround.</p> <blockquote> <p>Using non-top level imports will not work with native ES6 implementations. Babel allows it because it transpiles to CommonJS require, but it is technically not allowed in ES6.</p> </blockquote> <p><a href="https://github.com/eslint/eslint/issues/2259" rel="nofollow">eslint issue</a> and according <a href="https://github.com/eslint/espree/issues/124" rel="nofollow">espree issue</a></p>