Skip to content

no-extra-semicolons ​

Disallow extra semicolons.

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

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

Options ​

true ​

The following patterns are considered problems:

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 problems:

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

Released under the MIT License.