Skip to content

Wrong indentation after arrow function with separate-line opening brace  #11

Open
@vbraun

Description

@vbraun

Arrow functions should probably be indented like normal functions, though right now there is a difference:

    // OK
    function foofunc(param: string): void 
    {
        console.log('indented as expected');
    }

    // Double identation?
    const foo = (param: string): void =>
        {
            console.log('unexpected double indent');
        }

For me, expected output would be

    const foo = (param: string): void =>
    {
        console.log('Expect single indent');
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions