blob: 9d4d36249512978c230fff38a85d9436720d1452 (
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
|
# at-function-parentheses-space-before
Require or disallow a space before `@function` parentheses.
```scss
@function foo ($arg) { }
/** ↑
* The space before this parenthesis */
```
The `--fix` option on the [command line](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule.
## Options
`string`: `"always"|"never"`
### `"always"`
There *must always* be exactly one space between the function name and the opening parenthesis.
The following patterns are considered warnings:
```scss
@function foo($arg) { }
```
```scss
@function foo ($arg) { }
```
The following patterns are *not* considered warnings:
```scss
@function foo ($arg) { }
```
### `"never"`
There *must never* be any whitespace between the function name and the opening parenthesis.
The following patterns are considered warnings:
```scss
@function foo ($arg) { }
```
The following patterns are *not* considered warnings:
```scss
@function foo($arg) { }
```
|