0.0.3 • Published 8 years ago

esformatter-limit-linebreaks v0.0.3

Weekly downloads
73
License
MIT
Repository
github
Last release
8 years ago

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.