Skip to content

yml/flow-sequence-bracket-newline

enforce linebreaks after opening and before closing flow sequence brackets

  • ⚙️ 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 line breaks after opening and before closing flow sequence brackets.

Now loading...

🔧 Options

yaml
yml/flow-sequence-bracket-newline:
  - error
  - always # or "never" or "consistent"
---
# or
yml/flow-sequence-bracket-newline:
  - error
  - multiline: true
    minItems: null

Same as array-bracket-newline rule option. See here for details.

🚀 Version

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

🔍 Implementation

Taken with ❤️ from ESLint core