Skip to content

jsonc/array-element-newline

enforce line breaks between array elements

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

📖 Rule Details

This rule enforces line breaks between array elements.

Now loading...

🔧 Options

json
{
    "jsonc/array-element-newline": ["error",
        "always"
    ]
}

Same as array-element-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