color-no-invalid-hex
Disallow invalid hex colors.
a { color: #y3 }
/** ↑
* This hex color */
Longhand hex colors can be either 6 or 8 (with alpha channel) hexadecimal characters. And their shorthand variants are 3 and 4 characters respectively.
The message
secondary option can accept the arguments of this rule.
Options
true
The following patterns are considered problems:
a { color: #00; }
a { color: #fff1az; }