.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / function-blacklist / README.md
1 # function-blacklist
2
3 Specify a blacklist of disallowed functions.
4
5 ```css
6 a { transform: scale(1); }
7 /**            ↑
8  * These functions */
9 ```
10
11 ## Options
12
13 `array|string`: `["array", "of", "unprefixed", "functions" or "regex"]|"function"|"/regex/"`
14
15 If a string is surrounded with `"/"` (e.g. `"/^rgb/"`), it is interpreted as a regular expression.
16
17 Given:
18
19 ```js
20 ["scale", "rgba", "linear-gradient"]
21 ```
22
23 The following patterns are considered violations:
24
25 ```css
26 a { transform: scale(1); }
27 ```
28
29 ```css
30 a {
31   color: rgba(0, 0, 0, 0.5);
32 }
33 ```
34
35 ```css
36 a {
37   background:
38     red,
39     -moz-linear-gradient(45deg, blue, red);
40 }
41 ```
42
43 The following patterns are *not* considered violations:
44
45 ```css
46 a { background: red; }
47 ```