Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 594 Bytes

File metadata and controls

51 lines (36 loc) · 594 Bytes

unit-blacklist

Specify a blacklist of disallowed units.

a { width: 100px; }
/**           ↑
 *  These units */

Options

array: "["array", "of", "units"]"

Given:

["px", "em", "deg"]

The following patterns are considered warnings:

a { width: 100px; }
a { font-size: 10em; }
a { transform: rotate(30deg); }

The following patterns are not considered warnings:

a { font-size: 1.2rem; }
a { line-height: 1.2; }
a { height: 100vmin; }
a { animation: animation-name 5s ease; }