1 | # declaration-bang-space-after
|
2 |
|
3 | Require a single space or disallow whitespace after the bang of declarations.
|
4 |
|
5 | ```css
|
6 | a { color: pink !important; }
|
7 | /** ↑
|
8 | * The space after this exclamation mark */
|
9 | ```
|
10 |
|
11 | The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule.
|
12 |
|
13 | ## Options
|
14 |
|
15 | `string`: `"always"|"never"`
|
16 |
|
17 | ### `"always"`
|
18 |
|
19 | There *must always* be a single space after the bang.
|
20 |
|
21 | The following patterns are considered violations:
|
22 |
|
23 | ```css
|
24 | a { color: pink !important; }
|
25 | ```
|
26 |
|
27 | ```css
|
28 | a { color: pink !important; }
|
29 | ```
|
30 |
|
31 | The following patterns are *not* considered violations:
|
32 |
|
33 | ```css
|
34 | a { color: pink ! important; }
|
35 | ```
|
36 |
|
37 | ```css
|
38 | a { color: pink! important; }
|
39 | ```
|
40 |
|
41 | ### `"never"`
|
42 |
|
43 | There *must never* be whitespace after the bang.
|
44 |
|
45 | The following patterns are considered violations:
|
46 |
|
47 | ```css
|
48 | a { color: pink ! important; }
|
49 | ```
|
50 |
|
51 | ```css
|
52 | a { color: pink! important; }
|
53 | ```
|
54 |
|
55 | The following patterns are *not* considered violations:
|
56 |
|
57 | ```css
|
58 | a { color: pink !important; }
|
59 | ```
|
60 |
|
61 | ```css
|
62 | a { color:pink!important; }
|
63 | ```
|