Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 1.01 KB

README.md

File metadata and controls

68 lines (49 loc) · 1.01 KB

color-hex-alpha

Require or disallow alpha channel for hex colors.

a { color: #fffa }
/**            ↑
 * This alpha channel */

The message secondary option can accept the arguments of this rule.

Options

string: "always"|"never"

"always"

The following patterns are considered problems:

a { color: #fff; }
a { color: #ffffff; }

The following patterns are not considered problems:

a { color: #fffa; }
a { color: #ffffffaa; }

"never"

The following patterns are considered problems:

a { color: #fffa; }
a { color: #ffffffaa; }

The following patterns are not considered problems:

a { color: #fff; }
a { color: #ffffff; }