• Sean Hammond's avatar
    jscs: Require `function () {}` · 5a514035
    Sean Hammond authored
    Change jscs's required style from `function()` to `function ()`.
    
    We always require a space after the `function` keyword, and before {}
    braces, but we do not allow a space between a function name and its ()
    braces:
    
        var foo1 = function () {};  // Right.
        var foo2 = function() {};  // Wrong.
        var foo3 = function (){};  // Wrong.
    
        var foo4 = function foo4() {};  // Right.
        var foo5 = function foo5 () {};  // Wrong.
        var foo6 = function foo6(){};  // Wrong.
    
        function foo7() {}  // Right.
        function foo8 () {}  // Wrong.
        function foo9(){}  // Wrong.
    
    This deviates from the Google style guide and jscs presets that we use.
    5a514035
Name
Last commit
Last update
h Loading commit data...
scripts Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
package.json Loading commit data...