Skip to content

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.

Now loading...

🔧 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 is 0.
    • keyValuePairs ... The multiplier of indentation for key/value pairs. Default is 0.
Now loading...
Now loading...

🚀 Version

This rule was introduced in eslint-plugin-toml v0.1.0

🔍 Implementation