Skip to main content

comment-no-empty

Disallow empty comments.

    /* */
/** ↑
* Comments like this */

This rule ignores SCSS-like comments.

warning

Comments within selector and value lists are currently ignored.

Options

true

The following patterns are considered problems:

/**/
/* */
/*

*/

The following patterns are not considered problems:

/* comment */
/*
* Multi-line Comment
**/