# yml/no-multiple-empty-lines
disallow multiple empty lines
- 🔧 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 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.
# 🔧 Options
Nothing.
yml/no-multiple-empty-lines:
- error
- max: 2
maxEOF: 2
maxBOF: 2
max
... Enforces a maximum number of consecutive empty lines. Default is2
.maxEOF
... Enforces a maximum number of consecutive empty lines at the end of files. Default is value specified formax
.maxBOF
... Enforces a maximum number of consecutive empty lines at the beginning of files. Default is value specified formax
.
Same as no-multiple-empty-lines (opens new window) rule option. See here (opens new window) for details.
# 👫 Related rules
# 🚀 Version
This rule was introduced in eslint-plugin-yml v0.12.0
# 🔍 Implementation
- Rule source (opens new window)
- Test source (opens new window)
- Test fixture sources (opens new window)
Taken with ❤️ from ESLint core (opens new window)