disallowSpacesInAnonymousFunctionExpression

Disallows space before () or {} in anonymous function expressions.

Type: Object

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

Example

"disallowSpacesInAnonymousFunctionExpression": {
    "beforeOpeningRoundBrace": true,
    "beforeOpeningCurlyBrace": true
}
Valid
var foo = function(){};
var Foo = {
    foo: function(){}
}
array.map(function(){});
Invalid
var foo = function () {};
var Foo = {
    foo: function (){}
}
array.map(function() {});
Rule source
Test source