<p dir="auto">This auto-formatted incorrectly</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
  'two spaces indent',
{} //object placed two spaces to the left, expected to have the same indentation as text
]"><pre class="notranslate"><span class="pl-kos">[</span>
  <span class="pl-s">'two spaces indent'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c">//object placed two spaces to the left, expected to have the same indentation as text</span>
<span class="pl-kos">]</span></pre></div>
<p dir="auto">A gif probably explains it best:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/120506/5451371/78d8b932-8507-11e4-8434-23ae2691eb63.gif"><img src="https://cloud.githubusercontent.com/assets/120506/5451371/78d8b932-8507-11e4-8434-23ae2691eb63.gif" alt="outdent2" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Firstly, I'd contend that the <code class="notranslate">])</code> shouldn't be automatically indented, but I can live with that.</p>
<p dir="auto">Main point: the <code class="notranslate">{whatever}</code> line automatically outdents as soon as I type the first <code class="notranslate">{</code> (presumably because it thinks it's opening a block rather than an object), and then continually tries to outdent whenever I type any more characters on the line (the re-indentation in the gif is me hitting <code class="notranslate">ctrl+]</code>)</p>
<p dir="auto">Been happening in <code class="notranslate">atom --safe</code> built off master for the last couple of days, presumably since the update to language-javascript@0.51 in relation to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/atom/language-javascript/commit/e38f1cd9eddea7cb9994342ca9bceef2a4e3d7ff/hovercard" href="https://github.com/atom/language-javascript/commit/e38f1cd9eddea7cb9994342ca9bceef2a4e3d7ff"><tt>e38f1cd</tt></a></p>