.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / selector-attribute-quotes / README.md
1 # selector-attribute-quotes
2
3 Require or disallow quotes for attribute values.
4
5 ```css
6 [target="_blank"] {}
7 /**     ↑      ↑
8  * These quotes */
9 ```
10
11 ## Options
12
13 `string`: `"always"|"never"`
14
15 ### `"always"`
16
17 Attribute values *must always* be quoted.
18
19 The following patterns are considered violations:
20
21 ```css
22 [title=flower] {}
23 ```
24
25 ```css
26 [class^=top] {}
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 [title] {}
33 ```
34
35 ```css
36 [target="_blank"] {}
37 ```
38
39 ```css
40 [class|="top"] {}
41 ```
42
43 ```css
44 [title~='text'] {}
45 ```
46
47 ```css
48 [data-attribute='component'] {}
49 ```
50
51 ### `"never"`
52
53 Attribute values *must never* be quoted.
54
55 The following patterns are considered violations:
56
57 ```css
58 [target="_blank"] {}
59 ```
60
61 ```css
62 [class|="top"] {}
63 ```
64
65 ```css
66 [title~='text'] {}
67 ```
68
69 ```css
70 [data-attribute='component'] {}
71 ```
72
73 The following patterns are *not* considered violations:
74
75 ```css
76 [title] {}
77 ```
78
79 ```css
80 [title=flower] {}
81 ```
82
83 ```css
84 [class^=top] {}
85 ```