Closed larsch closed 8 years ago
this is handled by https://github.com/millermedeiros/esformatter/blob/master/lib/hooks/IfStatement.js - probably caused because of _br.limitBefore(elseKeyword, 'ElseIfStatement');
(I did not test it tho..)
removing the line _br.limitBefore(elseKeyword, 'ElseIfStatement');
solves the issue
Running
esformatter elseif.js
: