# stylus/declaration-colon

require or disallow declaration colons.

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

# 📖 Rule Details

This rule require or disallow declaration colons.

# 🔧 Options

{
  "stylus/declaration-colon": ["always" | "never"]
}
  • "always" ... Requires one colon.
  • "never" ... Disallows colons.

# "always"

a // ✓ GOOD color: red // ✗ BAD color red
Now loading...

# "never"

a // ✓ GOOD color red // ✗ BAD color: red
Now loading...

# 📚 Further reading

# 🔍 Implementation