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
}
Examples
input:
function bla() {
return 1;
}
function hello() {
return 2;
}
output:
function bla() {
return 1;
}
function hello() {
return 2;
}
Options
"LimitLineBreaks": Number of maximal consecutive line breaks
License
Released under the MIT License.