-
Notifications
You must be signed in to change notification settings - Fork 34
selectorKeyQuote
SPGoding edited this page Apr 26, 2020
·
1 revision
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Whether to quote entity selector keys or not.
- (
false
): never quotes. - (
true
): always quotes.
{
"selectorKeyQuote": null
}
kill @e[tag=foo]
kill @e["tag"=foo]
{
"selectorKeyQuote": ["warning", false]
}
kill @e[tag=foo]
kill @e["tag"=foo]
{
"selectorKeyQuote": ["warning", true]
}
kill @e["tag"=foo]
kill @e[tag=foo]
This rule was introduced in DHP 2.0.0.