UNPKG

648 BMarkdownView Raw
1# no-empty-first-line
2
3Disallow empty first lines.
4
5<!-- prettier-ignore -->
6```css
7 \n
8 /** ↑
9 * This newline */
10 a { color: pink; }
11```
12
13This rule ignores empty sources. Use the [`no-empty-source`](../no-empty-source/README.md) rule to disallow these.
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
25\n
26a { color: pink; }
27```
28
29The following patterns are _not_ considered violations:
30
31<!-- prettier-ignore -->
32```css
33a { color: pink; }
34```