yml/block-sequence-hyphen-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.
🔧 Options
yaml
yml/block-sequence-hyphen-indicator-newline:
- error
- never # or "always"
- nestedHyphen: always # or "never"
- blockMapping: never # or "always"
Styles
"always"
... Requires line breaks after after-
indicator of block style sequences."never"
... Disallow line breaks after after-
indicator of block style sequences.
Properties
nestedHyphen
... Specifies the style to apply to nested hyphens. default"always"
blockMapping
... Specifies the style to apply to block mapping. If unspecified, the value ofStyles
is used.
"blockMapping": "always"
👫 Related rules
- yml/flow-sequence-bracket-newline
- yml/flow-mapping-curly-newline
- yml/key-spacing
- yml/block-mapping-question-indicator-newline
🚀 Version
This rule was introduced in eslint-plugin-yml v0.5.0