# stylus/block-closing-brace-newline-before

require a newline or disallow whitespace before the closing brace of blocks.

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

# 📖 Rule Details

This rule require a newline or disallow whitespace before the closing brace of blocks.

# ❓ Why Not Use stylelint Rule

The block-closing-brace-newline-before (opens new window) rule incorrectly report errors in Stylus.
This problem is that the core rules do not understand that can omit braces in Stylus.
The stylus/block-closing-brace-newline-before rule understands that can omit braces in Stylus.

# 🔧 Options

See stylelint - block-closing-brace-newline-before - Options (opens new window).

# 🔍 Implementation