UNPKG

1.08 kBMarkdownView Raw
1# declaration-bang-space-after
2
3Require a single space or disallow whitespace after the bang of declarations.
4
5```css
6a { color: pink !important; }
7/** ↑
8 * The space after this exclamation mark */
9```
10
11The [`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
19There *must always* be a single space after the bang.
20
21The following patterns are considered violations:
22
23```css
24a { color: pink !important; }
25```
26
27```css
28a { color: pink !important; }
29```
30
31The following patterns are *not* considered violations:
32
33```css
34a { color: pink ! important; }
35```
36
37```css
38a { color: pink! important; }
39```
40
41### `"never"`
42
43There *must never* be whitespace after the bang.
44
45The following patterns are considered violations:
46
47```css
48a { color: pink ! important; }
49```
50
51```css
52a { color: pink! important; }
53```
54
55The following patterns are *not* considered violations:
56
57```css
58a { color: pink !important; }
59```
60
61```css
62a { color:pink!important; }
63```