jshint/fixmyjs

Any way to not kill empty lines?

Closed this issue · 6 comments

Or at least enforce an empty line between function declarations?

Use the --legacy option switch through CLI. If you're calling it via your program just use the exported function.

Thank you for replying, this indeed worked. Are empty lines between functions a deprecated mode of operation?

Nope, I'd very much love to support it it's just that escodegen rewrites all of your code and doesn't take into account any original styling. The reason I went with something like escodegen in the first place is because it is a lot more flexible to build new rules since they operate with an AST and not string replace on the code.

Is --legacy mode still working?

it should be. Can you please give a failing test case?

Just saw a comment here http://stackoverflow.com/a/19297893/411284 that said it didn't work, have not confirmed myself