1 | # no-eol-whitespace
|
2 |
|
3 | Disallow end-of-line whitespace.
|
4 |
|
5 | ```css
|
6 | a { color: pink; }···
|
7 | /** ↑
|
8 | * This whitespace */
|
9 | ```
|
10 |
|
11 | The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix most of the problems reported by this rule.
|
12 |
|
13 | ## Options
|
14 |
|
15 | ### `true`
|
16 |
|
17 | The following patterns are considered violations:
|
18 |
|
19 | ```css
|
20 | a { color: pink; }·
|
21 | ```
|
22 |
|
23 | ```css
|
24 | a { color: pink; }····
|
25 | ```
|
26 |
|
27 | Comment strings are also checked -- so the following is a violation:
|
28 |
|
29 | ```css
|
30 | /* something····
|
31 | * something else */
|
32 | ```
|
33 |
|
34 | The following patterns are *not* considered violations:
|
35 |
|
36 | ```css
|
37 | a { color: pink; }
|
38 | ```
|
39 |
|
40 | ```css
|
41 | /* something
|
42 | * something else */
|
43 | ```
|
44 |
|
45 | ## Optional secondary options
|
46 |
|
47 | ### `ignore: ["empty-lines"]`
|
48 |
|
49 | #### `"empty-lines"`
|
50 |
|
51 | Allow end-of-line whitespace for lines that are only whitespace, "empty" lines.
|
52 |
|
53 | The following patterns are *not* considered violations:
|
54 |
|
55 | ```css
|
56 | a {
|
57 | color: pink;
|
58 | ··
|
59 | background: orange;
|
60 | }
|
61 | ```
|
62 |
|
63 | ```css
|
64 | ····
|
65 | ```
|
66 |
|
67 | ```css
|
68 | a { color: pink; }
|
69 | ····
|
70 | ```
|