UNPKG

817 BMarkdownView Raw
1# declaration-block-no-duplicate-custom-properties
2
3Disallow duplicate custom properties within declaration blocks.
4
5<!-- prettier-ignore -->
6```css
7a { --custom-property: pink; --custom-property: orange; }
8/** ↑ ↑
9 * These duplicated custom properties */
10```
11
12This rule is case-sensitive.
13
14## Options
15
16### `true`
17
18The following patterns are considered problems:
19
20<!-- prettier-ignore -->
21```css
22a { --custom-property: pink; --custom-property: orange; }
23```
24
25<!-- prettier-ignore -->
26```css
27a { --custom-property: pink; background: orange; --custom-property: orange }
28```
29
30The following patterns are _not_ considered problems:
31
32<!-- prettier-ignore -->
33```css
34a { --custom-property: pink; }
35```
36
37<!-- prettier-ignore -->
38```css
39a { --custom-property: pink; --cUstOm-prOpErtY: orange; }
40```