Skip to content

stylus/at-extend-style

enforces @extend style.

  • ⚙️ 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 @extend instead of @extends.
  • "@extends" ... Requires @extends instead 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;

📚 Further reading

🔍 Implementation