News for hackers. Stuff that matters.
Re:A Prettier JavaScript Formatter by russellbeattie on Tuesday January 10, 2017 @02:48PM (#13368267)
My team recently ganged up on me to tell me my line spacing was f*cked. Upon reflection, it seems that as I'm writing code I group lines into 'working well - one line, 'not sure - two lines', 'probably will change - lots of space', 'hey look at me! - off by itself'. Apparently, this unconcious invisible system drives others crazy. Developers are so picky! ;-)

We've actually got a bunch of automatic eslint rules, but it doesn't correct for this. Looking at the various beautifiers, I couldn't find anything that really cleaned up line spacing very well, and ended up running a bunch of sed commands to remove lines and then spacing out things manually in a "sane" way (so picky!!). Having a formatter that actually parsed the AST and rewrote the code like gofmt will be very handy if it works - I'll have to try it out.

Re:A Prettier JavaScript Formatter by toefraz on Wednesday January 11, 2017 @12:22AM (#13371960)
There's a eslint rule for multiple blank lines
Re:A Prettier JavaScript Formatter by jbergens on Wednesday January 11, 2017 @05:47AM (#13373056)
That one actually crashes in my atom installation. I get a warning that it cannot show me where the multiple empty lines are.