maksimr / vim-jsbeautify

vim plugin which formated javascript files by js-beautify
758 stars 68 forks source link

jsx beautify not working properly #139

Closed strin closed 5 years ago

strin commented 6 years ago

I ran call JsxBeautify() on my .jsx file, and I got wrong indentation.

image

maksimr commented 6 years ago

@strin try format your code here - http://jsbeautifier.org/ Looks like it's a problem of jsbeautifier

Thanks

P.S. Also, exist another solution mentioned in this issue https://github.com/maksimr/vim-jsbeautify/issues/138#issuecomment-335836619 - https://github.com/prettier/prettier maybe it is what you want