Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript code formatting problem with arrow functions #3953

Open
blitz-research opened this issue May 29, 2022 · 2 comments
Open

Javascript code formatting problem with arrow functions #3953

blitz-research opened this issue May 29, 2022 · 2 comments

Comments

@blitz-research
Copy link

Hi,

I'm having a weird problem with the javascript code formatter, which I believe is called js-beautify.

It has decided to insert a space in the middle of all my arrow function arrows, so "=>" becomes "= >" which produces an error at runtime.

I can't find any relevant option in the js-beautify prefs in Komodo, so I've been looking for some kind of config file somewhere but with no success either.

Any ideas? Should I use a different beautifier?

Bye,
Mark

@blitz-research
Copy link
Author

blitz-research commented May 31, 2022

This seems to be due to 'built-in' version of js-beautify, as when I switched to a downloaded console version of js-beautify it worked fine.

@th3coop
Copy link
Member

th3coop commented Jun 6, 2022

That sounds about right @blitz-research . The built in one is quite old and might even be from before arrow functions were introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants