blob: 31049b280f2e41b0f0775fcbad4acf5a2c708d88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# property-blacklist
Specify a blacklist of disallowed properties.
```css
a { text-rendering: optimizeLegibility; }
/** ↑
* This property */
```
## Options
`array|string`: `["array", "of", "unprefixed", /properties/ or "regex"]|"property"|"/regex/"`|/regex/
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.
Given:
```js
[ "text-rendering", "animation", "/^background/" ]
```
The following patterns are considered violations:
```css
a { text-rendering: optimizeLegibility; }
```
```css
a {
animation: my-animation 2s;
color: pink;
}
```
```css
a { -webkit-animation: my-animation 2s; }
```
```css
a { background: pink; }
```
```css
a { background-size: cover; }
```
The following patterns are *not* considered violations:
```css
a { color: pink; }
```
```css
a { no-background: sure; }
```
|