toml/indent
enforce consistent indentation
- ⚙️ This rule is included in
"plugin:toml/standard"
. - 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
📖 Rule Details
This rule reports enforces a consistent indentation style. The default style is 2 spaces.
🔧 Options
yaml
toml/indent:
- error
- 2 # number of spaces or "tab"
- subTables: 0
keyValuePairs: 0
- First Option
- Number option ... The number of spaces used for indentation.
"tab"
... Use tabs for indentation.
- Second Option
subTables
... The multiplier of indentation for sub-tables. Default is0
.keyValuePairs
... The multiplier of indentation for key/value pairs. Default is0
.
👫 Related rules
🚀 Version
This rule was introduced in eslint-plugin-toml v0.1.0