title: Javascript - Can indentation on method chaining cause issues with semicolons?
body: <p>From <a href="http://www.jslint.com/lint.html" rel="nofollow noreferrer">JSLint.com</a>:</p>
  <blockquote>
  <p>JavaScript uses a C-like syntax which requires the use of semicolons to delimit certain statements. JavaScript attempts to make those semicolons optional with a semicolon insertion mechanism. This is dangerous because it can mask errors.</p>
  <p>Like C, JavaScript has ++ and -- and ( operators which can be prefixes or suffixes. The disambiguation is done by the semicolon.</p>
  <p>In JavaScript, a linefeed can be whitespace or it can act as a semicolon. This replaces one ambiguity with another.</p>
  <p>JSLint expects that every statement be followed by ; except for for, function, if, switch, try, and while. JSLint does not expect to see unnecessary semicolons or the empty statement.</p>
  </blockquote>
  <p>So a good practice is:</p>
  <pre><code>var one = 'something';
  var two = 'other thing';
  </code></pre>
  <p>vs:</p>
  <pre><code>var one = 'something'
    , two = 'other thing';
  </code></pre>
  <p>When it comes to method chaining, <a href="https://github.com/airbnb/javascript#whitespace" rel="nofollow noreferrer">Air BnB's Style Guide - under the Whitespace Section</a> suggests using indentation for method chains.</p>
  <pre><code>// bad
  $('#items').find('.selected').highlight().end().find('.open').updateCount();
  
  // good
  $('#items')
    .find('.selected')
      .highlight()
      .end()
    .find('.open')
      .updateCount();
  
  // bad
  var leds = stage.selectAll('.led').data(data).enter().append('svg:svg').class('led', true)
      .attr('width',  (radius + margin) * 2).append('svg:g')
      .attr('transform', 'translate(' + (radius + margin) + ',' + (radius + margin) + ')')
      .call(tron.led);
  
  // good
  var leds = stage.selectAll('.led')
      .data(data)
    .enter().append('svg:svg')
      .class('led', true)
      .attr('width',  (radius + margin) * 2)
    .append('svg:g')
      .attr('transform', 'translate(' + (radius + margin) + ',' + (radius + margin) + ')')
      .call(tron.led);
  </code></pre>
  <p>Can this sort of indentation causes issues when Javascript goes to insert semicolons?</p>