jdavisclark / JsFormat

Javascript formatting for Sublime Text 2 & 3
1.42k stars 222 forks source link

ES7 Decorators #168

Closed zj8487 closed 8 years ago

zj8487 commented 8 years ago

I am currently using babel to transpile my code so that I can use the fancy new es6/7 features. One thing that I noticed was that formatting in Sublime Text 3 puts a newline after the @ keyword which breaks the build. js

@test
class Test {
}

becomes

async

@
test
class Test {
}

Is there anyway to control the line breaks specifically for the @ keyword?

jdavisclark commented 8 years ago

@zj8487 open up an issue in the js-beautify tracker. That's where it will need to be fixed.