跳到主要内容

no-extra-semicolons

Disallow extra semicolons.

a { color: pink;; }
/** ↑
* This semicolons */

This rule ignores semicolons after Less mixins.

The fix option can automatically fix all of the problems reported by this rule.

Options

true

The following patterns are considered problems:

@import "x.css";;
@import "x.css";
;
a {
color: pink;;
}
a {
;color: pink;
}
a {
color: pink;
;
}
a {
color: red;
}
;
b {
color: white;
}

The following patterns are not considered problems:

@import "x.css";
a {
color: pink;
}