Skip to content

stylus/at-rule-empty-line-before

require or disallow an empty line before at-rules.

  • ⚙️ This rule is included in "stylelint-stylus/standard". (options: ["always",{"except":["blockless-after-same-name-blockless","first-nested"],"ignore":["after-comment"]}])
  • 🔧 The fix option can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule require or disallow an empty line before at-rules.

🔧 Options

See stylelint - at-rule-empty-line-before - Options.

❓ Why Not Use stylelint Rule

The at-rule-empty-line-before rule incorrectly report errors in Stylus.
This problem is that the core rules do not understand the postcss-styl AST.
The stylus/at-rule-empty-line-before rule understands postcss-styl AST.

🔍 Implementation