.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / function-whitespace-after / README.md
1 # function-whitespace-after
2
3 Require or disallow whitespace after functions.
4
5 ```css
6 a { transform: translate(1, 1) scale(3); }
7 /**                           ↑
8  *                   This space */
9 ```
10
11 This rule does not check for space immediately after `)` if the very next character is `,`, `)`, or `}`, allowing some of the patterns exemplified below.
12
13 ## Options
14
15 `string`: `"always"|"never"`
16
17 ### `"always"`
18
19 There *must always* be whitespace after the function.
20
21 The following patterns are considered violations:
22
23 ```css
24 a { transform: translate(1, 1)scale(3); }
25 ```
26
27 The following patterns are *not* considered violations:
28
29 ```css
30 a { transform: translate(1, 1) scale(3); }
31 ```
32
33 ```css
34 a { transform: translate(1, 1)     scale(3); }
35 ```
36
37 ```css
38 a {
39   transform:
40     translate(1, 1)
41     scale(3);
42 }
43 ```
44
45 ```css
46 /* notice the two closing parentheses without a space between */
47 a { top: calc(1 * (1 + 3)); }
48 ```
49
50 ```css
51 /* notice the ), with no space after the closing parenthesis */
52 a { padding: calc(1 * 2px), calc(2 * 5px); }
53 ```
54
55 ```scss
56 /* notice the )}, with no space after the closing parenthesis */
57 a {
58   max-height: #{($line-height) * ($lines-to-show)}em;
59 }
60 ```
61
62 ```less
63 /* notice the )}, with no space after the closing parenthesis */
64 a {
65   max-height: ((@line-height) * (@lines-to-show))em;
66 }
67 ```
68
69 ### `"never"`
70
71 There *must never* be whitespace after the function.
72
73 The following patterns are considered violations:
74
75 ```css
76 a { transform: translate(1, 1) scale(3); }
77 ```
78
79 The following patterns are *not* considered violations:
80
81 ```css
82 a { transform: translate(1, 1)scale(3); }
83 ```