jsonc/indent | eslint-plugin-jsonc (original) (raw)

enforce consistent indentation

📖 Rule Details

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

🔧 Options

json

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

Same as indent rule option. See here for details.

🚀 Version

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

🔍 Implementation

Taken with ❤️ from ESLint core