js-beautify
js-beautify copied to clipboard
function * fn() {} -> function* fn() {}
Since I've updated from 1.5.1 to 1.6.2, I've this behaviour:
function * fn() {}
becomes
function* fn() {}
The issue appears in v1.5.2.
Hello @bitwiseman. Any news? I tried to read the code and fix this issue myself but it's really not easy.
This behavior is actually by design per #428. Adding the ability to control the space around the *
is a bit more involved. I'm going to have to push this to the next release.
See #920. The changes made to fix that would be where changes would need to start.
Hello @bitwiseman, any news? Do we just want to add a condition around the one added on 98b3c53657c7052aecee0b326832a7f30b2bc4c3?
@mathieug - I've been too busy to get to this (obviously). The project could really use any help you can offer. If you have time to submit a PR with tests that would be great. Thanks!