mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 06:27:23 -04:00
30 lines
392 B
Markdown
30 lines
392 B
Markdown
|
# no-missing-end-of-source-newline
|
||
|
|
||
|
Disallow missing end-of-source newlines.
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }
|
||
|
\n
|
||
|
/** ↑
|
||
|
* This newline */
|
||
|
```
|
||
|
|
||
|
Completely empty files are not considered warnings.
|
||
|
|
||
|
## Options
|
||
|
|
||
|
### `true`
|
||
|
|
||
|
The following patterns are considered warnings:
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }
|
||
|
```
|
||
|
|
||
|
The following patterns are *not* considered warnings:
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }
|
||
|
\n
|
||
|
```
|