Skip to content

Excess indentation on assignment destructuring. #1128

@prettydiff

Description

@prettydiff

Description

This is the default template for bug reports, if you have a more general
issue, question, or request, you may ignore this template and write freeform.

NOTE:

  • Do not include screenshots! This library is a text processor, we need text inputs and outputs for debugging and fixing issues.
  • Check the list of open issues before filing a new issue.

Input

The code looked like this before beautification:

const {
    shouldSave = true,
    Controller,
    updateLinks = true
} = options;

Expected Output

The code should have looked like this after beautification:

const {
    shouldSave = true,
    Controller,
    updateLinks = true
} = options;

Actual Output

The code actually looked like this after beautification:

const {
    shouldSave = true,
        Controller,
        updateLinks = true
} = options;

This is coming from Glavin001/atom-beautify#1508 (comment) with the debug.md at https://gist.github.com/guiguan/7ad6ac4132c18f4f1ee3c6f1138abf38

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions