Skip to content

yml/block-mapping-question-indicator-newline

enforce consistent line breaks after ? indicator

  • ⚙️ This rule is included in "plugin:yml/standard".
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule aims to enforce consistent line breaks after ? indicator.

Now loading...

🔧 Options

yaml
yml/block-mapping-question-indicator-newline:
  - error
  - never # or "always"
  • "always" ... Requires line breaks after after ? indicator of block style mappings.
  • "never" ... Disallow line breaks after after ? indicator of block style mappings.

🚀 Version

This rule was introduced in eslint-plugin-yml v0.5.0

🔍 Implementation