Skip to content

Latest commit

 

History

History
93 lines (72 loc) · 1007 Bytes

File metadata and controls

93 lines (72 loc) · 1007 Bytes

block-no-empty

Disallow empty blocks.

 a { }
/** ↑
 * Blocks like this */

Options

true

{
  "block-no-empty": true
}

The following patterns are considered problems:

a {}
a { }
@media print {
  a {}
}

The following patterns are not considered problems:

a {
  /* foo */
}
@media print {
  a {
    color: pink;
  }
}

Optional secondary options

ignore

{ "ignore": ["array", "of", "options"] }

"comments"

Exclude comments from being treated as content inside of a block.

{
  "block-no-empty": [true, { "ignore": ["comments"] }]
}

The following patterns are considered problems:

a {
  /* foo */
}
@media print {
  a {
    /* foo */
  }
}