.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / selector-attribute-brackets-space-inside / README.md
1 # selector-attribute-brackets-space-inside
2
3 Require a single space or disallow whitespace on the inside of the brackets within attribute selectors.
4
5 ```css
6     [ target=_blank ]
7 /** ↑               ↑
8  * The space inside these two brackets */
9 ```
10
11 ## Options
12
13 `string`: `"always"|"never"`
14
15 ### `"always"`
16
17 There *must always* be a single space inside the brackets.
18
19 The following patterns are considered violations:
20
21 ```css
22 [target] {}
23 ```
24
25 ```css
26 [ target] {}
27 ```
28
29 ```css
30 [target ] {}
31 ```
32
33 ```css
34 [target=_blank] {}
35 ```
36
37 ```css
38 [ target=_blank] {}
39 ```
40
41 ```css
42 [target=_blank ] {}
43 ```
44
45 The following patterns are *not* considered violations:
46
47 ```css
48 [ target ] {}
49 ```
50
51 ```css
52 [ target=_blank ] {}
53 ```
54
55 ### `"never"`
56
57 There *must never* be whitespace on the inside the brackets.
58
59 The following patterns are considered violations:
60
61 ```css
62 [ target] {}
63 ```
64
65 ```css
66 [target ] {}
67 ```
68
69 ```css
70 [ target ] {}
71 ```
72
73 ```css
74 [ target=_blank] {}
75 ```
76
77 ```css
78 [target=_blank ] {}
79 ```
80
81 ```css
82 [ target=_blank ] {}
83 ```
84
85 The following patterns are *not* considered violations:
86
87 ```css
88 [target] {}
89 ```
90
91 ```css
92 [target=_blank] {}
93 ```