10000 Indentation warning for properties of argument object · Issue #458 · eslint/typescript-eslint-parser · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Indentation warning for properties of argument object #458
Closed
@bondom

Description

@bondom

What version of TypeScript are you using?
2.7.1

What version of typescript-eslint-parser are you using?
14.0.0

What code were you trying to parse?

const registration = (
  state: RegistrationStoreState = initialState,
  action: {
    type: string;
    data: Object;
    error: Object;
  }
) => {
...
}

What did you expect to happen?
To see clear worskpace without warning

What happened?

I see warning [eslint] Expected indentation of 2 spaces but found 4. (indent)
And only when I format this code in this way:


const registration = (
  state: RegistrationStoreState = initialState,
  action: {
  type: string;
  data: Object;
  error: Object;
  }
) => {
...
}

I don't see warnings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0