disallowSpacesInFunction

Disallows space before () or {} in function expressions (both named and anonymous) and function declarations.

Type: Object

Values: "beforeOpeningRoundBrace" and "beforeOpeningCurlyBrace" as child properties. Child properties must be set to true.

Example

"disallowSpacesInFunction": {
    "beforeOpeningRoundBrace": true,
    "beforeOpeningCurlyBrace": true
}
Valid
var x = function(){};
var x = function a(){};
function a(){}
Invalid
var x = function() {};
var x = function (){};
var x = function () {};
var x = function a() {};
var x = function a (){};
var x = function a () {};
function a() {}
function a (){}
function a () {}
Rule source
Test source