Skip to content

Adding spacing between parameters #49

@mrspence

Description

@mrspence

This is a brilliant resource! I've found it highly useful in some of my projects, to ensure a consistent syntax. Would it be possible to add this as a feature?

Example:

function foo(a,b,c){
    console.log(a+b+c);
}

Would Become:
function foo ( a , b , c ) {
    console.log( a+b+c )
}

or

$("a.very.specific.link").click();
$(body).find("div").each(function(){
    $(this).hide().fadeIn("slow");
});

Would Become:

$( "a.very.specific.link" ).click();
$( body ).find( "div" ).each( function(){
    $( this ).hide().fadeIn( "slow" );
} );

Reference: editorconfig/editorconfig#83

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions