.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / function-parentheses-space-inside / README.md
1 # function-parentheses-space-inside
2
3 Require a single space or disallow whitespace on the inside of the parentheses of functions.
4
5 ```css
6 a { transform: translate( 1, 1 ); }
7 /**                     ↑      ↑
8  * The space inside these two parentheses */
9 ```
10
11 ## Options
12
13 `string`: `"always"|"never"|"always-single-line"|"never-single-line"`
14
15 ### `"always"`
16
17 There *must always* be a single space inside the parentheses.
18
19 The following patterns are considered violations:
20
21 ```css
22 a { transform: translate(1, 1); }
23 ```
24
25 ```css
26 a { transform: translate(1, 1 ); }
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 a { transform: translate( 1, 1 ); }
33 ```
34
35 ### `"never"`
36
37 There *must never* be whitespace on the inside the parentheses.
38
39 The following patterns are considered violations:
40
41 ```css
42 a { transform: translate( 1, 1 ); }
43 ```
44
45 ```css
46 a { transform: translate(1, 1 ); }
47 ```
48
49 The following patterns are *not* considered violations:
50
51 ```css
52 a { transform: translate(1, 1); }
53 ```
54
55 ### `"always-single-line"`
56
57 There *must always* be a single space inside the parentheses of single-line functions.
58
59 The following patterns are considered violations:
60
61 ```css
62 a { transform: translate(1, 1) }
63 ```
64
65 ```css
66 a { transform: translate(1, 1 ) }
67 ```
68
69 The following patterns are *not* considered violations:
70
71 ```css
72 a { transform: translate( 1, 1 ) }
73 ```
74
75 ```css
76 a { transform: translate(1,
77   1) }
78 ```
79
80 ```css
81 a {
82   transform: translate(
83     1,
84     1
85   )
86 }
87 ```
88
89 ### `"never-single-line"`
90
91 There *must never* be whitespace inside the parentheses of single-line functions.
92
93 The following patterns are considered violations:
94
95 ```css
96 a { transform: translate( 1, 1 ) }
97 ```
98
99 ```css
100 a { transform: translate(1, 1 ) }
101 ```
102
103 The following patterns are *not* considered violations:
104
105 ```css
106 a { transform: translate(1, 1) }
107 ```
108
109 ```css
110 a { transform: translate( 1,
111   1) }
112 ```
113
114 ```css
115 a {
116   transform: translate(
117     1,
118     1
119   )
120 }
121 ```