Skip to content

comment-no-empty

Disallow empty comments.

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

Use this rule to avoid leftovers from edits. An empty comment says nothing.

This rule ignores SCSS-like comments.

This rule doesn’t have any message arguments.

{
"comment-no-empty": true
}

The following patterns are considered problems:

/**/
/* */
/*
*/

The following patterns are not considered problems:

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