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