UNPKG

1.04 kBMarkdownView Raw
1# no-eol-whitespace
2
3Disallow end-of-line whitespace.
4
5```css
6a { color: pink; }···
7/** ↑
8 * This whitespace */
9```
10
11The `--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
17The following patterns are considered violations:
18
19```css
20a { color: pink; }·
21```
22
23```css
24a { color: pink; }····
25```
26
27Comment strings are also checked -- so the following is a violation:
28
29```css
30/* something····
31 * something else */
32```
33
34The following patterns are *not* considered violations:
35
36```css
37a { 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
51Allow end-of-line whitespace for lines that are only whitespace, "empty" lines.
52
53The following patterns are *not* considered violations:
54
55```css
56a {
57 color: pink;
58··
59 background: orange;
60}
61```
62
63```css
64····
65```
66
67```css
68a { color: pink; }
69····
70```