UNPKG

556 BMarkdownView Raw
1# no-missing-end-of-source-newline
2
3Disallow missing end-of-source newlines.
4
5```css
6 a { color: pink; }
7 \n
8/** ↑
9 * This newline */
10```
11
12Completely empty files are not considered violations.
13
14The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule.
15
16## Options
17
18### `true`
19
20The following patterns are considered violations:
21
22```css
23a { color: pink; }
24```
25
26The following patterns are *not* considered violations:
27
28```css
29a { color: pink; }
30\n
31```