Skip to content

Incorrect indentation after multiline variable declaration with array or object #524

New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
markrian opened this issue Jun 29, 2016 · 3 comments

Comments

@markrian
Copy link

markrian commented Jun 29, 2016

Tested on latest develop ad5d09e. This is the resulting indentation:

const a = 1,
    b = {
        foo: 'bar'
    };

    anythingHere();

whereas I would expect this:

var a = 1,
    b = {
        foo: 'bar'
    };

anythingHere();

Bizarrely, a trailing comma in the object or array literal fixes the subsequent indentation:

const a = 1,
    b = {
        foo: 'bar',
    };

anythingHere();
@bounceme
Copy link
Collaborator

my new p.r. #515 , if finished, will work in just about any situation regardless of keyword, comma etc. it also removes about 80% of the code

@amadeus
Copy link
Collaborator

amadeus commented Jul 15, 2016

This is now fixed in develop

@amadeus
Copy link
Collaborator

amadeus commented Jul 20, 2016

Should now be fixed in develop

@amadeus amadeus closed this as completed Jul 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants