# yml/no-multiple-empty-lines

disallow multiple empty lines

# 📖 Rule Details

This rule aims to reduce the scrolling required when reading through your code. It will warn when the maximum amount of empty lines has been exceeded.
Use max: 0 if you want to remove all blank lines.

Now loading...

# 🔧 Options

Nothing.

yml/no-multiple-empty-lines:
  - error
  - max: 2
    maxEOF: 2
    maxBOF: 2
  • max ... Enforces a maximum number of consecutive empty lines. Default is 2.
  • maxEOF ... Enforces a maximum number of consecutive empty lines at the end of files. Default is value specified for max.
  • maxBOF ... Enforces a maximum number of consecutive empty lines at the beginning of files. Default is value specified for max.

Same as no-multiple-empty-lines (opens new window) rule option. See here (opens new window) for details.

# 🚀 Version

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

# 🔍 Implementation

Taken with ❤️ from ESLint core (opens new window)

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