# toml/key-spacing
enforce consistent spacing between keys and values in key/value pairs
- ⚙️ This rule is included in
"plugin:toml/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 enforces consistent spacing between keys and values in key/value pairs.
# 🔧 Options
toml/key-spacing:
- error
- beforeEqual: false
afterEqual: true
mode: strict # or "minimum"
# "align": "value" or "equal"
# "singleLine": {}
# "multiLine": {}
Same as key-spacing (opens new window) rule option. See here (opens new window) for details. However, you need to replace "colon" with "equal".
# align: "equal"
# 👫 Related rules
# 🚀 Version
This rule was introduced in eslint-plugin-toml v0.2.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)