# stylus/media-feature-colon
require or disallow media feature 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 media feature colons.
# 🔧 Options
{
"stylus/media-feature-colon": ["always" | "never"]
}
"always"
... Requires one colon."never"
... Disallows colons.
# "always"
// ✓ GOOD
@media (min-width: 600px)
padding 20px
// ✗ BAD
@media (min-width 600px)
padding 20px
# "never"
// ✓ GOOD
@media (min-width 600px)
padding 20px
// ✗ BAD
@media (min-width: 600px)
padding 20px