<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62698>62698</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format SpacesInContainerLiterals: false adds spaces in JavaScript when assigning dict to module.exports
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          yalon
      </td>
    </tr>
</table>

<pre>
    When setting `SpacesInContainerLiterals: false` clang-format adds unnecessary spaces before colons when assigning dict to `module.exports` while it works as expected if we remove `module.`.

clang-format 16.0.3

config:
```
---
Language: JavaScript
ColumnLimit: 120
IndentWidth: 2
SpacesInContainerLiterals: false
```

Input file:
```
'use strict';

module.exports = { a: 1 };
```

Output:
```
'use strict';

module.exports = {
  a : 1
};
```

Expected output:
```
'use strict';

module.exports = {
  a: 1
};
```

For example, if we change source file to:
```
'use strict';

exports = { a: 1 };
```

Then output is as expected:
```
'use strict';

exports = {
  a: 1
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lE9P8zgQxj-Ncxk1cuw2aQ85AN1KrJD2wEqcJ8408a5jR_5D4du_SlIElUDwIl6pamJP5pmfx_aDIejOEtVsc802-wxT7J2vn9E4mzWufa4ferIQKEZtO2Alvx9RUbi1N85G1Jb8nY7k0QQmr-CIJhArOSiDtlsdnR8wArZtgGQtKQoB_TOEWQMaOjpPoJxxNsBpKrTwTKVarSJEN5UcXJsM5fQ0Oh_DJH_qtSHQEU7O_x8AA9DTSCpSC_oIJwJPg3ukN8ms5Dnje8avlv8LwKLMeS4vws4edcfkechKfv7Nw9Vqtbzcoe0SdjSt_W98xHvl9RiX2I0zabB3etBxChfinHxrW7LxQbexn-bFMvuFtr5H8iI5pghHbegjYiaqFAhC9FpFJiomr98KXHYYmNwDq64BZ3Bg1f71-_fq_5PimOKP1l5iAAgzwznhM5C_Xk6B-4NEvwN0cB7oCYfREBM358OperQdQXDJK5q3DaL7Jut3t-zf6bYtXQJ9cYN-BuTL3craWrY7ucOM6qLcrnlRVVue9bXCihe4LtdyV5DibYlbjtuiklLumlZhpmvBheSbQgqxlpznDSkpCTeI7Xqz2zVszWlAbXJjHofc-S7TISSqS1HutpnBhkyYjU8ISyeYg0yIyQd9PeWsmtQFtuZGhxheVaKOhuoLB_n8-i4ueHY-bd_YxUfOd3kMs-RN3cc4TpJMHJg4dDr2qcmVG5g4THTnx2r07j-aNukwrykwcZjX_CsAAP__8cC5tA">