Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 841 Bytes

File metadata and controls

71 lines (57 loc) · 841 Bytes

function-max-empty-lines

Limit the number of adjacent empty lines within functions.

a {
  transform:
    translate(
                /* ← */
      1,        /* ↑ */ 
                /* ← */
      1         /* ↑ */
                /* ← */
    );          /* ↑ */
}               /* ↑ */
/**                ↑
 *            These lines */

Options

int: Maximum number of characters allowed.

For example, with 0:

The following patterns are considered violations:

a {
  transform:
    translate(

      1,
      1
    );
}
a {
  transform:
    translate(
      1,

      1
    );
}
a {
  transform:
    translate(
      1,
      1

    );
}

The following patterns are not considered violations:

a {
  transform: 
    translate(
      1, 
      1
    );
}