1 | # function-disallowed-list
|
2 |
|
3 | Specify a list of disallowed functions.
|
4 |
|
5 |
|
6 | ```css
|
7 | a { transform: scale(1); }
|
8 | /** ↑
|
9 | * This function */
|
10 | ```
|
11 |
|
12 | ## Options
|
13 |
|
14 | `array|string`: `["array", "of", "unprefixed", /functions/ or "regex"]|"function"|"/regex/"`
|
15 |
|
16 | If a string is surrounded with `"/"` (e.g. `"/^rgb/"`), it is interpreted as a regular expression.
|
17 |
|
18 | Given:
|
19 |
|
20 | ```json
|
21 | ["scale", "rgba", "linear-gradient"]
|
22 | ```
|
23 |
|
24 | The following patterns are considered problems:
|
25 |
|
26 |
|
27 | ```css
|
28 | a { transform: scale(1); }
|
29 | ```
|
30 |
|
31 |
|
32 | ```css
|
33 | a {
|
34 | color: rgba(0, 0, 0, 0.5);
|
35 | }
|
36 | ```
|
37 |
|
38 |
|
39 | ```css
|
40 | a {
|
41 | background:
|
42 | red,
|
43 | -moz-linear-gradient(45deg, blue, red);
|
44 | }
|
45 | ```
|
46 |
|
47 | The following patterns are _not_ considered problems:
|
48 |
|
49 |
|
50 | ```css
|
51 | a { background: red; }
|
52 | ```
|