mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 00:43:04 +00:00
37 lines
779 B
Markdown
37 lines
779 B
Markdown
# no-empty-first-line
|
|
|
|
> **Warning** This rule is deprecated and will be removed in the future. See [the migration guide](../../../docs/migration-guide/to-15.md).
|
|
|
|
Disallow empty first lines.
|
|
|
|
<!-- prettier-ignore -->
|
|
```css
|
|
\n
|
|
/** ↑
|
|
* This newline */
|
|
a { color: pink; }
|
|
```
|
|
|
|
This rule ignores empty sources. Use the [`no-empty-source`](../no-empty-source/README.md) rule to disallow these.
|
|
|
|
The [`fix` option](../../../docs/user-guide/options.md#fix) can automatically fix all of the problems reported by this rule.
|
|
|
|
## Options
|
|
|
|
### `true`
|
|
|
|
The following patterns are considered problems:
|
|
|
|
<!-- prettier-ignore -->
|
|
```css
|
|
\n
|
|
a { color: pink; }
|
|
```
|
|
|
|
The following patterns are _not_ considered problems:
|
|
|
|
<!-- prettier-ignore -->
|
|
```css
|
|
a { color: pink; }
|
|
```
|