title: Configure Prettier Whitespaces in React after curly braces
body: <p>I would like to configure Prettier to output as following:
  Current result:</p>
  <pre><code>const onSubmit = data =&gt; {
  if (isObjEmpty(errors)) {
    useJwt.login({email, password}).then(res =&gt; {
      const data = {
        ...res.data.userData,
        accessToken: res.data.accessToken,
        refreshToken: res.data.refreshToken
      }
    })
  }
  </code></pre>
  <p>}</p>
  <p>Expected result:</p>
  <pre><code>const onSubmit = data =&gt; {
  if (isObjEmpty(errors)) {
    useJwt
      .login({email, password})
      .then(res =&gt; {
         const data = {...res.data.userData, accessToken: res.data.accessToken, refreshToken: res.data.refreshToken}
    })
  }
  </code></pre>
  <p>}</p>
  <p>The main issue I have is with line</p>
  <p><code>const data = {...res.data.userData, accessToken: res.data.accessToken, refreshToken: res.data.refreshToken}</code></p>
  <p>The line should be one line of code.</p>
  <p>Current configuration on of</p>
  <pre><code>.prettierrc file is:
  
  {
    &quot;printWidth&quot;: 120,
    &quot;trailingComma&quot;: &quot;none&quot;,
    &quot;tabWidth&quot;: 2,
    &quot;semi&quot;: false,
    &quot;singleQuote&quot;: true,
    &quot;bracketSpacing&quot;: false,
    &quot;jsxBracketSameLine&quot;: false,
    &quot;arrowParens&quot;: &quot;avoid&quot;,
    &quot;endOfLine&quot;: &quot;auto&quot;,
    &quot;jsxSingleQuote&quot;: true,
    &quot;proseWrap&quot;: &quot;never&quot;,
    &quot;quoteProps&quot;: &quot;as-needed&quot;,
    &quot;useTabs&quot;: false
  }
  </code></pre>
  <p>The problem is not in the length of the line!</p>
  <p>Thank you!</p>