You can configure esformatter by changing ~/.esformatter
See the esformatter default https://github.com/millermedeiros/esformatter/blob/master/lib/preset/default.json for configuration examples.
You will need the esformatter binary available in your path to run the indent command
npm install -g esformatter
right now I'm doing just the basic:
and to format whole code:
would also be good if you could execute esformatter without the need of the
.sh
file.I'm having issue with the trailing line as well. I will try to find a fix for it so you don't need to use
awk
. (see: millermedeiros/esformatter#91)