Sha256: f58b9737ad354ecbc5d9c98943cddce64ae3ca43aef8a1505ca88b4b14ba203a
Contents?: true
Size: 840 Bytes
Versions: 24
Compression:
Stored size: 840 Bytes
Contents
# block-no-empty Disallow empty blocks. <!-- prettier-ignore --> ```css a { } /** ↑ * Blocks like this */ ``` ## Options ### `true` The following patterns are considered violations: <!-- prettier-ignore --> ```css a {} ``` <!-- prettier-ignore --> ```css a { } ``` <!-- prettier-ignore --> ```css @media print { a {} } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { /* foo */ } ``` <!-- prettier-ignore --> ```css @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: <!-- prettier-ignore --> ```css a { /* foo */ } ``` <!-- prettier-ignore --> ```css @media print { a { /* foo */ } } ```
Version data entries
24 entries across 24 versions & 1 rubygems