Rule: indent

Enforces indentation with tabs or spaces.

Rationale

Using only one of tabs or spaces for indentation leads to more consistent editor behavior, cleaner diffs in version control, and easier programatic manipulation.

Config

One of the following arguments must be provided:

  • "spaces" enforces consistent spaces.
  • "tabs" enforces consistent tabs.
Examples
"indent": [true, "spaces"]
Schema
{
  "type": "string",
  "enum": [
    "tabs",
    "spaces"
  ]
}