tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
181 stars 13 forks source link

Changed: js3-pretty-vars variable to accept an interger value instead… #108

Closed stankud closed 8 years ago

stankud commented 8 years ago

… of boolean. This allows the user to customize exactly how many spaces should be added before continued var statements. For example:

// 2 spaces
var foo = 'bar',
  baz = 'foobar',
  foobar = 'baz';
// 4 spaces
var foo = 'bar',
    baz = 'foobar',
    foobar = 'baz';
tamzinblake commented 8 years ago

I don't like how this breaks backwards-compatibility. Better to add another custom variable for the number of spaces, with a default value, and then everyone's configs keep working.