title: Unexpected token ... - VS code with prettier
body: <p>To auto format my react code using prettier, I have used to configure format on save in VS code settings.</p>
  
  <p>It worked fine with my basic template code.</p>
  
  <p>When i have used spread operator: ... in my code, </p>
  
  <p>From then onwards, it is not formatting code on save and showing error in console as:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>"prettier.eslintIntegration": true,
   "editor.formatOnSave": true</code></pre>
  </div>
  </div>
  </p>
  
  <p>How to make prettier + eslint to work fine with ... (spread operator) in vs code.</p>
  
  <p>So that it can format on save instead of showing error.</p>