Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

New line after curly brace #142

Closed
kraftwer1 opened this Issue Aug 15, 2012 · 1 comment

Comments

Projects
None yet
2 participants

var obj = {
foo : "bar",
fun : function() {
console.log("Test");
}
};

would change to:

var obj = {

foo : "bar",
fun : function() {

    console.log("Test");
}

};

Config options like 0, 1, 2, ... would be nice!

Contributor

einars commented Feb 6, 2013

This is a weird and crazy formatting. If you'd like more whitespace, you might use brace on own line syntax,

var obj =
{
    foo: "bar",
    fun: function () 
    {
        console.log("Test");
    }
};

@einars einars closed this Feb 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment