esformatter linebreak limit plugin
npm install esformatter-limit-linebreaksesformatter plugin for limiting maximal consecutive line breaks globally.
install it:
``sh`
npm install esformatter-limit-linebreaks
and add to your esformatter config file:
`js`
{
"plugins": [
"esformatter-limit-linebreaks"
],
"LimitLineBreaks": 2 // defaults to 2
}
input:
`js
function bla() {
return 1;
}
function hello() {
return 2;
}
`
output:
`js
function bla() {
return 1;
}
function hello() {
return 2;
}
``
"LimitLineBreaks": Number of maximal consecutive line breaks
Released under the MIT License.