yml/flow-mapping-curly-newline
enforce consistent line breaks inside braces
- ⚙️ 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 enforces consistent line breaks inside braces of flow mappings.
🔧 Options
yaml
yml/flow-mapping-curly-newline:
- error
- always # or "never"
---
# or
yml/flow-mapping-curly-newline:
- error
- multiline: true
minProperties: 1
consistent: true
Same as object-curly-newline rule option. See here for details.
👫 Related rules
🚀 Version
This rule was introduced in eslint-plugin-yml v0.1.0
🔍 Implementation
Taken with ❤️ from ESLint core