esformatter-limit-linebreaks
v0.0.3
Published
esformatter linebreak limit plugin
Downloads
5,918
Maintainers
Readme
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:
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.