UNPKG

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