1 # declaration-property-unit-whitelist
3 Specify a whitelist of allowed property and unit pairs within declarations.
8 * These properties and these units */
14 "unprefixed-property-name": ["array", "of", "units"]
17 If a property name is surrounded with `"/"` (e.g. `"/^animation/"`), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: `/^animation/` will match `animation`, `animation-duration`, `animation-timing-function`, etc.
23 "font-size": ["em", "px"],
24 "/^animation/": ["s"],
29 The following patterns are considered violations:
32 a { font-size: 1.2rem; }
36 a { animation: animation-name 500ms ease; }
40 a { -webkit-animation: animation-name 500ms ease; }
44 a { animation-duration: 500ms; }
48 a { line-height: 13px; }
51 The following patterns are *not* considered violations:
62 a { animation: animation-name 5s ease; }
66 a { -webkit-animation: animation-name 5s ease; }
70 a { animation-duration: 5s; }