-
Notifications
You must be signed in to change notification settings - Fork 34
nbtStringQuote
SPGoding edited this page Apr 26, 2020
·
1 revision
🔧 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.