Skip to content

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

@ddaza

Description

@ddaza

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions