# jsonc/indent

enforce consistent indentation

# 📖 Rule Details

This rule enforces a consistent indentation style. The default style is 4 spaces.

Now loading...

# 🔧 Options

{
    "jsonc/indent": ["error",
        4,
        {}
    ]
}

Same as indent (opens new window) rule option. See here (opens new window) for details.

  • First option ... Sets the indentation style. default 4
    Set to 2 if you prefer 2 spaces indentation.
    Set to "tab" if you prefer tab indentation.
  • Second option ... You can set the object to customize it further.

# 🚀 Version

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

# 🔍 Implementation

Taken with ❤️ from ESLint core (opens new window)

Last Updated: 10/28/2022, 6:54:42 PM