跳到主要内容

comment-no-empty

Disallow empty comments.

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

This rule ignores SCSS-like comments.

Caveat: 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
**/