esformatter-limit-linebreaks
esformatter plugin for limiting maximal consecutive line breaks globally.
Usage
install it:
npm install esformatter-limit-linebreaks
and add to your esformatter config file:
"plugins": "esformatter-limit-linebreaks" "LimitLineBreaks": 2 // defaults to 2
Examples
input:
{ return 1;} { return 2;}
output:
{ return 1;} { return 2;}
Options
"LimitLineBreaks": Number of maximal consecutive line breaks
License
Released under the MIT License.