# yml/block-sequence

require or disallow block style sequences.

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

# 📖 Rule Details

This rule aims to use consistent style of block or flow styles.

Now loading...

# 🔧 Options

yml/block-sequence:
  - error
  - always # or "never"
---
# or
yml/block-sequence:
  - error
  - singleline: always # or "never" or "ignore"
    multiline: always # or "never" or "ignore"
  • Styles

    • "always" ... Enforce the use of block style sequences.
    • "never" ... Disallow the use of block style sequences.
    • "ignore" ... Does not apply consistent style.
  • Properties

    • As a string ... Specify the style you want to apply to sequences.
    • "singleline" ... Specify the style you want to apply when the sequence is single-line. default "ignore"
    • "multiline" ... Specify the style you want to apply when the sequence is multi-line. default "always"

# "always"

Now loading...

# "never"

Now loading...

# 🚀 Version

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

# 🔍 Implementation

Last Updated: 8/10/2022, 10:02:31 AM