Appearance
enforces comment style where single-line comments are allowed.
"stylelint-stylus/standard"
"always"
This rule enforces comment style where single-line comments are allowed.
{ "stylus/single-line-comment": ["always" | "never"] }
"never"
/* stylelint rules config: {"stylus/single-line-comment": "always"} */ // ✓ GOOD // single line comment .foo { // single line comment } .bar { /* not eol comment */ } /* * multi * line * comment */ /*! buffered */ /* ✗ BAD */ /* multi line comment, but a single line. */ /* multi-line comment, but the content is a single line. */ .foo { /* multi line comment, but a single line. */ }
/* stylelint rules config: {"stylus/single-line-comment": "never"} */ /* ✓ GOOD */ /* multi line comment */ .foo { /* multi line comment */ } // ✗ BAD // single line comment .foo { // single line comment }
stylus/single-line-comment
"stylelint-stylus/standard"
. (options:"always"
)📖 Rule Details
This rule enforces comment style where single-line comments are allowed.
🔧 Options
"always"
... Requires single-line comments."never"
... Disallows single-line comments."always"
"never"
📚 Further reading
🔍 Implementation