Requires space after opening and before closing grouping parentheses.
Types: Boolean
or Object
Values:
true
: always require spaces inside grouping parenthesesObject
:"allExcept"
: [ "{", "}", "function" ]
Ignore parenthesized objects and functions"requireSpacesInsideParenthesizedExpression": true
// or
"requireSpacesInsideParenthesizedExpression": {
"allExcept": [ "{", "}" ]
}
true
var x = ( 1 + obj.size ) * ( 2 );
{ allExcept": [ "{", "}", "function" ] }
var x = ( options || { x: true }).x;
var global = (function() { return this; })();
var x = (1 + obj.size) * (2);