Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Type declaration violates space-infix-ops rule #224

Closed
mattdell opened this issue Apr 18, 2017 · 3 comments
Closed

Type declaration violates space-infix-ops rule #224

mattdell opened this issue Apr 18, 2017 · 3 comments

Comments

@mattdell
Copy link

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
@soda0289
Copy link
Member

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

Just waiting for one more code review and should be good

@corbinu
Copy link

corbinu commented Jun 28, 2017

@soda0289 can this be closed now?

@soda0289
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants