Skip to main content

no-eol-whitespace

Disallow end-of-line whitespace.

a { color: pink; }ยทยทยท/**               โ†‘ *  This whitespace */

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

Options#

true#

The following patterns are considered problems:

a { color: pink; }ยท
a { color: pink; }ยทยทยทยท

Comment strings are also checked -- so the following is a problem:

/* somethingยทยทยทยท * something else */

The following patterns are not considered problems:

a { color: pink; }
/* something * something else */

Optional secondary options#

ignore: ["empty-lines"]#

"empty-lines"#

Allow end-of-line whitespace for lines that are only whitespace, "empty" lines.

The following patterns are not considered problems:

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