piuccio / sublime-esformatter

JavaScript formatter plugin for Sublime Text
MIT License
28 stars 20 forks source link

How to disable comma move to prior line? #27

Closed gclsoft closed 10 years ago

gclsoft commented 10 years ago
var ItemsSchema = new Schema({
  name: String // comments
  ,dds: {
    type: Number,
    default: 1.0
  },
  num: {
    type: Number,
    default: 0
  } //,men: [MenSchema]
});

It will formatted to

var ItemsSchema = new Schema({
  name: String // comments  ,
  dds: {
    type: Number,
    default: 1.0
  },
  num: {
    type: Number,
    default: 0
  } //,men: [MenSchema]
});

How to disable comma move to prior line?

piuccio commented 10 years ago

Fixed in 1.4.3