.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / custom-property-pattern / README.md
1 # custom-property-pattern
2
3 Specify a pattern for custom properties.
4
5 ```css
6 a { --foo-: 1px; }
7 /**   ↑
8  * The pattern of this */
9 ```
10
11 ## Options
12
13 `regex|string`
14
15 A string will be translated into a RegExp like so `new RegExp(yourString)` — so be sure to escape properly.
16
17 Given the string:
18
19 ```js
20 "foo-.+"
21 ```
22
23 The following patterns are considered violations:
24
25 ```css
26 :root { --boo-bar: 0; }
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 :root { --foo-bar: 0; }
33 ```