Skip to content
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

after version1.7.5, formated code style changed #1575

Closed
sfger opened this issue Oct 17, 2018 · 1 comment
Closed

after version1.7.5, formated code style changed #1575

sfger opened this issue Oct 17, 2018 · 1 comment

Comments

@sfger
Copy link

sfger commented Oct 17, 2018

Description

NOTE:

  • Check the list of open issues before filing a new issue.
  • Please update the expect output section to match how you would prefer the code to look.

Input

The code looked like this before beautification:

let test = {
  a: {},
  b: {
    a: async () => {
        console.log('a');
      },

      b: async () => {
        console.log('b');
      },
  }
};

Current Output

The code actually looked like this after beautification:

let test = {
  a: {},
  b: {
    a: async () => {
        console.log('a');
      },

      b: async () => {
        console.log('b');
      },
  }
};

Expected Output

The code should have looked like this after beautification:

/*Adjust the code to look how you prefer the output to be.*/
let test = {
  a: {},
  b: {
    a: async () => {
      console.log('a');
    },

    b: async () => {
      console.log('b');
    },
  }
};

Environment

Browser User Agent:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Language Selected:
Auto Detect

Settings

Example:

{
  "indent_size": "2",
  "indent_char": " ",
  "max_preserve_newlines": "5",
  "preserve_newlines": true,
  "keep_array_indentation": false,
  "break_chained_methods": false,
  "indent_scripts": "normal",
  "brace_style": "collapse",
  "space_before_conditional": true,
  "unescape_strings": false,
  "jslint_happy": false,
  "end_with_newline": false,
  "wrap_line_length": "0",
  "indent_inner_html": false,
  "comma_first": false,
  "e4x": false
}
@bitwiseman
Copy link
Member

#1573

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

2 participants