1 | # no-missing-end-of-source-newline
|
2 |
|
3 | Disallow missing end-of-source newlines.
|
4 |
|
5 | ```css
|
6 | a { color: pink; }
|
7 | \n
|
8 | /** ↑
|
9 | * This newline */
|
10 | ```
|
11 |
|
12 | Completely empty files are not considered violations.
|
13 |
|
14 | The `--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 |
|
20 | The following patterns are considered violations:
|
21 |
|
22 | ```css
|
23 | a { color: pink; }
|
24 | ```
|
25 |
|
26 | The following patterns are *not* considered violations:
|
27 |
|
28 | ```css
|
29 | a { color: pink; }
|
30 | \n
|
31 | ```
|