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.

Type declaration violates space-infix-ops rule #224

@mattdell

Description

@mattdell

What version of TypeScript are you using?
2.2.2

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

What code were you trying to parse?

const props: IProps= {
    foo,
    bar,
};

What did you expect to happen?

No error

What happened?

[eslint] Infix operators must be spaced. (space-infix-ops)

Errors on

const props: IProps

Ok with

const props : IProps

Activity

soda0289

soda0289 commented on Apr 18, 2017

@soda0289
Member

There is a fix for this here:
eslint/eslint#8341

Just waiting for one more code review and should be good

corbinu

corbinu commented on Jun 28, 2017

@corbinu

@soda0289 can this be closed now?

soda0289

soda0289 commented on Jun 28, 2017

@soda0289
Member

This problem is solved.

There are other issues with space-infix-ops with type parameters:
foo<Bar>();
I will try and fix this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @corbinu@soda0289@mattdell@eslintbot

        Issue actions

          Type declaration violates space-infix-ops rule · Issue #224 · eslint/typescript-eslint-parser