stylus/semicolon
require or disallow semicolon.
- ⚙️ This rule is included in
"stylelint-stylus/standard"
. (options:"never"
) - 🔧 The fix option can automatically fix some of the problems reported by this rule.
📖 Rule Details
This rule require or disallow semicolons.
🔧 Options
json
{
"stylus/semicolon": ["always" | "never"]
}
"always"
... Requires semicolon."never"
... Disallows semicolons.
"always"
styl
/* stylelint rules config: {"stylus/semicolon": "always"} */
a
// ✓ GOOD
color red;
// ✗ BAD
color red
"never"
styl
/* stylelint rules config: {"stylus/semicolon": "never"} */
a
// ✓ GOOD
color red
// ✗ BAD
color red;