SmartMirror-Projektarbeit/node_modules/stylelint/lib/rules/declaration-block-no-duplicate-custom-properties
..
2022-03-10 10:36:59 +01:00
2022-03-10 10:36:59 +01:00

declaration-block-no-duplicate-custom-properties

Disallow duplicate custom properties within declaration blocks.

a { --custom-property: pink; --custom-property: orange; }
/** ↑                        ↑
 * These duplicated custom properties */

This rule is case-sensitive.

Options

true

The following patterns are considered violations:

a { --custom-property: pink; --custom-property: orange; }
a { --custom-property: pink; background: orange; --custom-property: orange }

The following patterns are not considered violations:

a { --custom-property: pink; }
a { --custom-property: pink; --cUstOm-prOpErtY: orange; }