Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 545 Bytes

File metadata and controls

31 lines (22 loc) · 545 Bytes

rule-no-duplicate-properties

Disallow duplicate properties within rules.

a { color: pink; color: orange; }
/** ↑            ↑
 * These duplicated properties */

The rule ignores variables ($sass, @less, --custom-property).

The following patterns are considered warnings:

a { color: pink; color: orange; }
a { color: pink; background: orange; color: orange }

The following patterns are not considered warnings:

a { color: pink; }
a { color: pink; background: orange; }