Doesn't format right on property getters and setters?
Closed this issue · 4 comments
shri3k commented
Not sure if I'm the only one that's having this issue but when I do the following:-
var obj = {
get getValue() {
console.log("Get something");
},
set setValue(value) {
console.log("Setting something");
}
};
It gets formatted to the following:-
var obj = {
get getValue() {
console.log("Get something");
},
set setValue(value) {
console.log("Setting something");
}
};
Nothing special on the command, just did :call JsBeautify()
. That's it.
maksimr commented
@sinkingshriek what version of js-beautify your use?
shri3k commented
According to it's package.json, it's 1.5.4.
maksimr commented
shri3k commented
Closing. Seems to work now. 😄 Sorry took this long time.