Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.

Object values are indented too much #5

Open
difosfor opened this issue Nov 17, 2015 · 2 comments
Open

Object values are indented too much #5

difosfor opened this issue Nov 17, 2015 · 2 comments

Comments

@difosfor
Copy link

Using default preset. This seems to be a general issue that also affects array value indentation etc.

Input:

var a = 'hello', b = {
  x: 'world'
};

Expected:

var a = 'hello';
var b = {
  x: 'world'
};

Actual:

var a = 'hello';
var b = {
    x: 'world'
  };
@difosfor
Copy link
Author

I have added a test case for this in commit 7b58412 of pull request #4

@difosfor
Copy link
Author

I have figured out a workaround, add the following to your config:

"indent": {
    "MultipleVariableDeclaration": 0
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants