esformatter-limit-linebreaks

0.0.3 • Public • Published

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.

Package Sidebar

Install

npm i esformatter-limit-linebreaks

Weekly Downloads

165

Version

0.0.3

License

MIT

Last publish

Collaborators

  • manuelstofer