title: How do I get VsCode to auto import correctly from an es6 module?
body: <p>lib1.js is an es6 module</p>
  <pre><code>export function greet() {
     console.log('Hello from Greet');
  }
  </code></pre>
  <p>In main.js call <code>greet()</code>. VsCode auto import will add an import for</p>
  <pre><code>const { greet } = require('./lib1');
  </code></pre>
  <p>...instead of</p>
  <pre><code>import { greet } from './lib1';
  </code></pre>
  <p>jsconfig.json</p>
  <pre><code>{
     &quot;compilerOptions&quot;: {
        &quot;target&quot;: &quot;es6&quot;,
        &quot;allowSyntheticDefaultImports&quot;: true
     },
     &quot;module&quot;: &quot;es2015&quot;
  }
  </code></pre>
  <p>How do I fix this?</p>
  <p>P.S. I've tried <code>&quot;type&quot;: &quot;module&quot;</code> in package.json too.</p>