mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 10:17:42 -04:00
69 lines
876 B
Markdown
69 lines
876 B
Markdown
|
# no-eol-whitespace
|
||
|
|
||
|
Disallow end-of-line whitespace.
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }···
|
||
|
/** ↑
|
||
|
* This whitespace */
|
||
|
```
|
||
|
|
||
|
## Options
|
||
|
|
||
|
### `true`
|
||
|
|
||
|
The following patterns are considered warnings:
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }·
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }····
|
||
|
```
|
||
|
|
||
|
Comment strings are also checked -- so the following is a warning:
|
||
|
|
||
|
```css
|
||
|
/* something····
|
||
|
* something else */
|
||
|
```
|
||
|
|
||
|
The following patterns are *not* considered warnings:
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
/* something
|
||
|
* something else */
|
||
|
```
|
||
|
|
||
|
## Optional secondary options
|
||
|
|
||
|
### `ignore: ["empty-lines"]`
|
||
|
|
||
|
#### `"empty-lines"`
|
||
|
|
||
|
Allow end-of-line whitespace for lines that are only whitespace, "empty" lines.
|
||
|
|
||
|
The following patterns are *not* considered warnings:
|
||
|
|
||
|
```css
|
||
|
a {
|
||
|
color: pink;
|
||
|
··
|
||
|
background: orange;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
····
|
||
|
```
|
||
|
|
||
|
```css
|
||
|
a { color: pink; }
|
||
|
····
|
||
|
```
|