Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Indentation warning for properties of argument object #11

Closed
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@JamesHenry

Description

@JamesHenry

This issue was initially reported here:eslint/typescript-eslint-parser#458


What version of TypeScript are you using?
2.7.1

What version oftypescript-eslint-parser are you using?
14.0.0

What code were you trying to parse?

constregistration=(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

    Labels

    bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp