Files
DeviceManager/node_modules/stylelint/lib/rules/block-no-empty
..
2023-11-18 14:38:06 +01:00
2023-11-18 14:38:06 +01:00

block-no-empty

Disallow empty blocks.

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

Options

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: ["comments"]

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

The following patterns are considered problems:

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