3 Specify a blacklist of disallowed units.
13 `array|string`: `["array", "of", "units"]|"unit"`
21 The following patterns are considered violations:
28 a { font-size: 10em; }
32 a { transform: rotate(30deg); }
35 The following patterns are *not* considered violations:
38 a { font-size: 1.2rem; }
42 a { line-height: 1.2; }
46 a { height: 100vmin; }
50 a { animation: animation-name 5s ease; }
53 ## Optional secondary options
55 ### `ignoreProperties: { unit: ["property", "/regex/"] }`
57 Ignore units in the values of declarations with the specified properties.
59 For example, with `["px", "vmin"]`.
65 "px": [ "font-size", "/^border/" ],
70 The following patterns are *not* considered violations:
73 a { font-size: 13px; }
77 a { border-bottom-width: 6px; }
84 The following patterns are considered violations:
87 a { line-height: 12px; }
91 a { -moz-border-radius-topright: 40px; }
95 a { height: 100vmin; }
98 ### `ignoreMediaFeatureNames: { unit: ["property", "/regex/"] }`
100 Ignore units for specific feature names.
102 For example, with `["px", "dpi"]`.
108 "px": [ "min-width", "/height$/" ],
109 "dpi": [ "resolution" ]
113 The following patterns are *not* considered violations:
116 @media (min-width: 960px) {}
120 @media (max-height: 280px) {}
124 @media not (resolution: 300dpi) {}
127 The following patterns are considered violations:
130 @media screen and (max-device-width: 500px) {}
134 @media all and (min-width: 500px) and (max-width: 200px) {}
138 @media print and (max-resolution: 100dpi) {}