.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / property-blacklist / README.md
1 # property-blacklist
2
3 Specify a blacklist of disallowed properties.
4
5 ```css
6 a { text-rendering: optimizeLegibility; }
7 /** ↑
8  * These properties */
9 ```
10
11 ## Options
12
13 `array|string`: `["array", "of", "unprefixed", "properties" or "regex"]|"property"|"/regex/"`
14
15 If a string is surrounded with `"/"` (e.g. `"/^background/"`), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: `/^background/` will match `background`, `background-size`, `background-color`, etc.
16
17 Given:
18
19 ```js
20 [ "text-rendering", "animation", "/^background/" ]
21 ```
22
23 The following patterns are considered violations:
24
25 ```css
26 a { text-rendering: optimizeLegibility; }
27 ```
28
29 ```css
30 a {
31   animation: my-animation 2s;
32   color: pink;
33 }
34 ```
35
36 ```css
37 a { -webkit-animation: my-animation 2s; }
38 ```
39
40 ```css
41 a { background: pink; }
42 ```
43
44 ```css
45 a { background-size: cover; }
46 ```
47
48 The following patterns are *not* considered violations:
49
50 ```css
51 a { color: pink; }
52 ```
53
54 ```css
55 a { no-background: sure; }
56 ```