nbtStringQuote - SpyglassMC/Spyglass GitHub Wiki
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Whether to quote string arguments or not.
- (
false
): only quotes when necessary. - (
true
): always quotes.
{
"nbtStringQuote": ["warning", true]
}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["foo"]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["crazy tag"]}
summon minecraft:armor_stand ~ ~ ~ {Tags: [foo]}
{
"nbtStringQuote": ["warning", false]
}
summon minecraft:armor_stand ~ ~ ~ {Tags: [foo]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["crazy tag"]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["foo"]}
{
"nbtStringQuote": null
}
summon minecraft:armor_stand ~ ~ ~ {Tags: [foo]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["foo"]}
summon minecraft:armor_stand ~ ~ ~ {Tags: ["crazy tag"]}
This rule was introduced in DHP 2.0.0.