-
Notifications
You must be signed in to change notification settings - Fork 34
stringQuote
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.
{
"stringQuote": null
}
datapack enable vanilla
datapack enable "vanilla"
datapack enable "file/xxx.zip"
{
"stringQuote": ["warning", false]
}
datapack enable vanilla
datapack enable "file/xxx.zip"
datapack enable "vanilla"
{
"stringQuote": ["warning", true]
}
datapack enable "vanilla"
datapack enable "file/xxx.zip"
datapack enable vanilla
This rule was introduced in DHP 2.0.0.