Skip to content

jsonc/object-curly-spacing

enforce consistent spacing inside braces

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule enforces consistent spacing inside braces of object literals.

Now loading...

🔧 Options

json
{
    "jsonc/object-curly-spacing": ["error",
        "never"
    ]
}

Same as object-curly-spacing rule option. See here for details.

🚀 Version

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

🔍 Implementation

Taken with ❤️ from ESLint core