Skip to content

Indentation of objects with arrow functions (=>) is not accurate #307

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
ddaza opened this issue Sep 25, 2015 · 1 comment
Closed

Indentation of objects with arrow functions (=>) is not accurate #307

ddaza opened this issue Sep 25, 2015 · 1 comment

Comments

@ddaza
Copy link

ddaza commented Sep 25, 2015

this

    let difficultyString = {
      [constants.QUESTION.Difficult]: ()=>'Difficult',
      [constants.QUESTION.Moderate]: ()=>'Moderate',
      [constants.QUESTION.Easy]: ()=>'Easy'
    };

gets indented into, this:

    let difficultyString = {
      [constants.QUESTION.Difficult]: ()=>'Difficult',
        [constants.QUESTION.Moderate]: ()=>'Moderate',
        [constants.QUESTION.Easy]: ()=>'Easy'
    };

I was expecting it not to change or default to the first bit of code.
thanks!

@ddaza ddaza changed the title Indentation of objects with arrow functions (=>) is off Indentation of objects with arrow functions (=>) is not accurate Sep 28, 2015
@amadeus
Copy link
Collaborator

amadeus commented Apr 11, 2016

This should be fixed in develop

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

No branches or pull requests

3 participants