# yml/no-irregular-whitespace
disallow irregular whitespace
- ⚙️ This rule is included in
"plugin:yml/recommended"
and"plugin:yml/standard"
.
# 📖 Rule Details
yml/no-irregular-whitespace
rule is aimed at catching invalid whitespace that is not a normal tab and space. Some of these characters may cause issues in YAML parsers and others will be a debugging issue to spot.
yml/no-irregular-whitespace
rule is the similar rule as core no-irregular-whitespace (opens new window) rule but it applies to the source code in YAML.
# 🔧 Options
yml/no-irregular-whitespace:
- error
- skipQuotedScalars: true
skipComments: false
skipQuotedScalars
... iftrue
, allows any whitespace characters in quoted scalars. defaulttrue
skipComments
... iftrue
, allows any whitespace characters in comments. defaultfalse
# "skipQuotedScalars": true
(default)
# "skipQuotedScalars": false
# "skipComments": true
# 👫 Related rules
# 🚀 Version
This rule was introduced in eslint-plugin-yml v0.1.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)