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

Chained method indenting inconsistancy #886

Open
iofjuupasli opened this issue Feb 27, 2016 · 4 comments
Open

Chained method indenting inconsistancy #886

iofjuupasli opened this issue Feb 27, 2016 · 4 comments

Comments

@iofjuupasli
Copy link

Input:

var a = foo()
    .bar();

var arr = [
    foo()
        .bar()
]

Expected output:

var a = foo()
    .bar();

var arr = [
    foo()
        .bar()
]

Actual output:

var a = foo()
    .bar();

var arr = [
    foo()
    .bar()
]
@iofjuupasli
Copy link
Author

So in array.

And also in arrow functions:

arg =>
    foo()
    .bar()

but

arg => {
    foo()
        .bar()
}

expected:

arg =>
    foo()
        .bar()

@kichooo
Copy link

kichooo commented May 30, 2016

+1. We also encouter this. Maybe that could be a switch

@syzer
Copy link

syzer commented May 30, 2016

👍

@IgorNovozhilov
Copy link

And another example in arrow functions:

onePromise.then(
    result => twoPromise()
        .then(resolve, reject),
    error => reject(error)
)

Result:

onePromise.then(
    result => twoPromise()
    .then(resolve, reject),
    error => reject(error)
)

Must be:

onePromise.then(
    result => twoPromise()
        .then(resolve, reject),
    error => reject(error)
)

@bitwiseman bitwiseman added this to the v1.7.x milestone Dec 26, 2016
@bitwiseman bitwiseman modified the milestones: v1.9.x, v1.10.x Apr 29, 2019
@bitwiseman bitwiseman modified the milestones: v1.10.x, v1.10.xx Jan 14, 2020
@bitwiseman bitwiseman modified the milestones: v1.10.x, v1.11.x Apr 5, 2020
@bitwiseman bitwiseman modified the milestones: v1.11.x, v1.12.x Aug 13, 2020
@bitwiseman bitwiseman modified the milestones: v1.12.x, 1.13.x Aug 20, 2020
@bitwiseman bitwiseman modified the milestones: v1.13.1, v1.13.x Jan 8, 2021
@bitwiseman bitwiseman modified the milestones: v1.13.6, v1.13.x Jan 26, 2021
@bitwiseman bitwiseman modified the milestones: v1.13.7, v1.13.x Apr 13, 2021
@bitwiseman bitwiseman modified the milestones: v1.14.1, v1.14.x, v1.15.x Mar 28, 2022
@bitwiseman bitwiseman modified the milestones: v1.14.3, 1.14.x Apr 9, 2022
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

5 participants