Disallows space before and/or after ?
or :
in conditional expressions.
Types: Object
or Boolean
Values: "afterTest"
, "beforeConsequent"
, "afterConsequent"
, "beforeAlternate"
as child properties,
or true
to set all properties to true. Child properties must be set to true
. These token names correspond to:
var a = b ? c : d;
^ ^ ^ ^
| | | |
| | | └- beforeAlternate
| | └--- afterConsequent
| └-------- beforeConsequent
└---------- afterTest
"disallowSpacesInConditionalExpression": {
"afterTest": true,
"beforeConsequent": true,
"afterConsequent": true,
"beforeAlternate": true
}
var a = b?c:d;
var a= b?c:d;
var a = b ?c:d;
var a = b? c:d;
var a = b?c :d;
var a = b?c: d;