[aerogear-dev] JavaScript formatter

Erik Jan de Wit edewit at redhat.com
Tue Oct 29 07:08:36 EDT 2013


>  
> Talking with qmx and lholmquist about this it seems that JS land doesn't have good tools for this. 
> 
> 
> hrm - the grunt worked for me; but I don't know if it is _that_ good

The formatter that is available with grunt seems to have very little settings [1], but if that is fine for most of us by all means we should use it!

[1] https://npmjs.org/package/grunt-jsbeautifier

>  
> 
> To have something in the mean time we could use something like the eclipse formatter, because it can format JS has a ton of options and there are already a lot of external tools that use it:
> 
> https://github.com/krasa/EclipseCodeFormatter
> 
> I doubt that a JS weenie will use Eclipse/IDEA

It's meant as an example you don't need the full eclipse IDE to use the formatting tool. It can be used standalone and it has a ton of options about where to put whitespace. We could also build our own javascript code formatter, but why not have something that works today. And I think even a javascript coder can execute a command line utility.

Just trying to be pragmatic 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20131029/9481ec18/attachment.html 


More information about the aerogear-dev mailing list