Skip to content

nbtCompoundTrailingComma

SPGoding edited this page Apr 26, 2020 · 1 revision

Rule Details

🎨 Stylistic: this is a stylistic rule used by the formatting feature.

Whether there should be a trailing comma after the last key-value pair in NBT compounds or not.

  • (boolean)

Examples

Default

{
    "nbtCompoundTrailingComma": false
}

👍 Good

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b, Marker: 1b}

👎 Bad

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b, Marker: 1b,}

True

{
    "nbtCompoundTrailingComma": true
}

👍 Good

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b, Marker: 1b,}

👎 Bad

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b, Marker: 1b}

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally