Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 919 Bytes

File metadata and controls

67 lines (51 loc) · 919 Bytes

comment-no-empty

Disallow empty comments. Should be used instead of the Stylelint's comment-no-empty because the core rule ignores SCSS-like comments.

    /* */
    //

To avoid duplicate issues, you must disable the core rule as follows:

{
  "rules": {
    "comment-no-empty": null,
    "scss/comment-no-empty": true
  }
}

Options

true

The following patterns are considered violations:

/**/
/* */
/*

 */
//
width: 10px; //

The following patterns are not considered violations:

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