Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 986 Bytes

File metadata and controls

63 lines (42 loc) · 986 Bytes

rule-trailing-semicolon

Require or disallow a trailing semicolon within rules.

a { background: orange; color: pink; }
/**                                ↑
 *                    This semicolon */

The trailing semicolon is the last semicolon in a rule and it is optional.

Options

string: "always"|"never"

"always"

There must always be a trailing semicolon.

The following patterns are considered warnings:

a { color: pink }
a { background: orange; color: pink }

The following patterns are not considered warnings:

a { color: pink; }
a { background: orange; color: pink; }

"never"

There must never be a trailing semicolon.

The following patterns are considered warnings:

a { color: pink; }
a { background: orange; color: pink; }

The following patterns are not considered warnings:

a { color: pink }
a { background: orange; color: pink }