stylus/at-extend-style
enforces
@extendstyle.
- ⚙️ This rule is included in
"stylelint-stylus/standard". (options:"@extend") - 🔧 The fix option can automatically fix some of the problems reported by this rule.
📖 Rule Details
This rule enforces @extend style.
🔧 Options
json
{
"stylus/at-extend-style": ["@extend" | "@extends"]
}"@extend"... Requires@extendinstead of@extends."@extends"... Requires@extendsinstead of@extend.
""@extend"
styl
/* stylelint rules config: {"stylus/at-extend-style": "@extend"} */
a
// ✓ GOOD
@extend .foo;
a
// ✗ BAD
@extends .foo;"@extends"
styl
/* stylelint rules config: {"stylus/at-extend-style": "@extends"} */
a
// ✓ GOOD
@extends .foo;
a
// ✗ BAD
@extend .foo;