Skip to content

stylus/no-at-require

disallow @require, use @import instead.

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

📖 Rule Details

This rule enforces [@extend] style.

🔧 Options

json
{
  "stylus/no-at-require": [true]
}
  • true ... Disallow @require, use @import instead.

true

styl
/* stylelint rules config: {"stylus/no-at-require": true} */
// ✓ GOOD
@import './foo.styl'

// ✗ BAD
@require './foo.styl'

📚 Further reading

🔍 Implementation