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

    <tr>
        <th>Summary</th>
        <td>
            clang-format adds unwanted space in front of colons in javascript code
        </td>
    </tr>

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

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

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

<pre>
    Example:

```
$ cat /tmp/a.js
module.exports = {
  'rules': {
    'no-console': 'off',
  },
};

$ build/bin/clang-format /tmp/a.js
module.exports = {
  'rules' : {
    'no-console' : 'off',
  },
};
```

The colons after 'rules' and 'no-compile' are not desired.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylks2u2yAQhZ8Gb1AsG0xsL1jcNM0T9AXGBttEGCzA9-_pO3Zu0qabqqqEBg4H5nxCdF59yO_vMC9WE_5CijMp7vVYfI2bZBXtIVHCLmlesEJ-jTdr9mq1Otfviw8pUsLPlNSnm0fxQh3Qjjhjwu_O7jl_6L2LHvO_DrDaD8Mm2LdHj_r8UNuan55IEa1bjVVI1RmHtbfgxsPgw_yfxPSvyPSfmf94173-mDTtvcWuFIakwxMDOPWInRdzi4WgqfOJKh1N0CrPlOSq5S1kySSr5dMTgFKRru4NXNKKxgV6TY2jQ_AuUT_co3HrCq8Q-2CWhJtKZ2uwckppidvvYBcco0nT2uWIgsLa1_t0WIK_6j6hNDGuG_pFHEXFskmKkjeq7aHguukFq4umKWtgjBWsrBreZRY6baMk4kQYc_qN7i1wTcQ5MxLPsaIuRckEF8dciLZsO2iaY9Uq4BWpCj2DsfnGkfswZkHuSN06RjStiSn-MiFGMzqt9zjsD2uafJCf-Cv0nO3Jcif_Cdh85y4">