Skip to content

jsonc/object-curly-newline

enforce consistent line breaks 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 line breaks inside braces of object literals.

Now loading...

🔧 Options

json
{
    "jsonc/object-curly-newline": ["error",
        {
            "consistent": true
        }
    ]
}

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

🚀 Version

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

🔍 Implementation

Taken with ❤️ from ESLint core