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

Wrong indent within function with Promise<type> return signature #127

Open
alx13 opened this issue Jan 3, 2018 · 1 comment
Open

Wrong indent within function with Promise<type> return signature #127

alx13 opened this issue Jan 3, 2018 · 1 comment

Comments

@alx13
Copy link

alx13 commented Jan 3, 2018

Expected behaviour after indenting:

export function a() {
  const x = _.chain(1)
    .value();
  return Promise
    .resolve(x);
}

export function b(): Promise<number> {
  const x = _.chain(1)
    .value();
  return Promise
    .resolve(x);
}

Actual:

export function a() {
  const x = _.chain(1)
    .value();
  return Promise
    .resolve(x);
}

export function b(): Promise<number> {
  const x = _.chain(1)
  .value();
  return Promise
  .resolve(x);
}
@leafgarland
Copy link
Owner

leafgarland commented Jan 7, 2018

Thanks. The indent is mostly copied from https://github.com/pangloss/vim-javascript, which would not recognize the return type I guess. I will take a look.

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