Skip to content

Disallow empty rules

nzakas edited this page Oct 24, 2011 · 7 revisions

Any rule that doesn't contain any properties, such as:

.foo {
}

A lot of times, empty rules appear as a result of refactoring without further cleanup. Eliminating empty rules results in smaller file sizes and less style information for the browser to deal with.

Rule ID: empty-rules

Clone this wiki locally