Skip to content

Wrong indentation #618

Closed
Closed
@sassanh

Description

@sassanh

I'm editing some jsx files and am using vim-javascript and vim-jsx. It was all fine till around 10 days ago something went wrong. Consider this:

    return <div
        style={{
            x: 1,
                y: 2,    //   Wrong indentation ######################
                z: 2,    //   Wrong indentation ######################
                w: 2,    //   Wrong indentation ######################
        }}>
            123
        </div>;

Look at the lines I marked. If I change double {{ with single { it works alright but obviously it doesn't compile.

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