tree: d4c441b2762427fa2de625d99e4e30d86a343aa6 [path history] [tgz]
  1. index.js
  2. README.md
node_modules/stylelint/lib/rules/block-no-empty/README.md

block-no-empty

Disallow empty blocks.

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

Options

true

The following patterns are considered violations:

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

The following patterns are not considered violations:

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 violations:

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