# jsonc/key-spacing

enforce consistent spacing between keys and values in object literal properties

# 📖 Rule Details

This rule enforces consistent spacing between keys and values in object literal properties. In the case of long lines, it is acceptable to add a new line wherever whitespace is allowed.

Now loading...

# 🔧 Options

{
    "jsonc/key-spacing": ["error",
        {
            "beforeColon": false,
            "afterColon": true,
            "mode": "strict"
        }
    ]
}

Same as key-spacing (opens new window) rule option. See here (opens new window) for details.

# 🚀 Version

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

# 🔍 Implementation

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