Skip to content

stylus/single-line-comment-double-slash-space-after

require or disallow whitespace after the double-slash of single-line comments.

  • ⚙️ This rule is included in "stylelint-stylus/standard". (options: "always")
  • 🔧 The fix option can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule require or disallow whitespace after the double-slash of single-line comments.

🔧 Options

json
{
  "stylus/single-line-comment-double-slash-space-after": ["always" | "never"]
}
  • "always" ... Requires whitespace.
  • "never" ... Disallows whitespace.

"always"

styl
/* stylelint rules config: {"stylus/single-line-comment-double-slash-space-after": "always"} */
// ✓ GOOD
// OK
//  OK

// ✗ BAD
//
N
G

"never"

styl
/* stylelint rules config: {"stylus/single-line-comment-double-slash-space-after": "never"} */
//✓ GOOD
//OK

//
✗ BAD
//
NG
//
NG

📚 Further reading

🔍 Implementation