mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 06:27:23 -04:00
68 lines
586 B
Markdown
68 lines
586 B
Markdown
# no-extra-semicolons
|
|
|
|
Disallow extra semicolons.
|
|
|
|
```css
|
|
a { color: pink;; }
|
|
/** ↑
|
|
* This semicolons */
|
|
```
|
|
|
|
This rule ignores semicolons after Less mixins.
|
|
|
|
## Options
|
|
|
|
### `true`
|
|
|
|
The following patterns are considered warnings:
|
|
|
|
```css
|
|
@import "x.css";;
|
|
```
|
|
|
|
```css
|
|
@import "x.css";
|
|
;
|
|
```
|
|
|
|
```css
|
|
a {
|
|
color: pink;;
|
|
}
|
|
```
|
|
|
|
```css
|
|
a {
|
|
;color: pink;
|
|
}
|
|
```
|
|
|
|
```css
|
|
a {
|
|
color: pink;
|
|
;
|
|
}
|
|
```
|
|
|
|
```css
|
|
a {
|
|
color: red;
|
|
}
|
|
;
|
|
b {
|
|
color: white;
|
|
}
|
|
```
|
|
|
|
The following patterns are *not* considered warnings:
|
|
|
|
```css
|
|
@import "x.css";
|
|
```
|
|
|
|
```css
|
|
a {
|
|
color: pink;
|
|
}
|
|
```
|