Skip to content

selectorTrailingComma

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 entity selectors or not.

  • (boolean)

Examples

Default

{
    "selectorTrailingComma": false
}

👍 Good

kill @e[type=!minecraft:player,tag=foo]

👎 Bad

kill @e[type=!minecraft:player,tag=foo,]

True

{
    "selectorTrailingComma": true
}

👍 Good

kill @e[type=!minecraft:player,tag=foo,]

👎 Bad

kill @e[type=!minecraft:player,tag=foo]

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally