(foo: string = 'test') => {};
I am getting an error:
space-infix-ops: Infix operators must be spaced.
Having this issue as well!
@hzoo Does this issue even fall in the babel-eslint domain?
Unless babel-eslint is doing something wrong (possible), most likely the rule just doesn't account for flow correctly so you would have to overwrite the rule with the eslint-plugin-babel repo/rules.
This is also reported at eslint/eslint#5211 and they also accept patches now for types.
Fixed in eslint, and will be released probably with next version of eslint.
My package references "babel-eslint": "^6.1.2" and I updated eslint to 3.2.2 but still getting the error.
Why this issue is closed?
Because it should have been fixed in eslint 3.2, I'm gonna check
What a great response time!
I'm also verifying my project as it uses gulp task which might reference old eslint.
@danez
eslint works fine, the problem is in outdated gulp-eslint task which uses [email protected].
Thank you for quick reply and sorry for troubling you.
I have the same issue with the most recent versions of everything. Minimal repro: https://github.com/emirotin/flow-lint-issue
@emirotin Thanks for making the example repo, I confirmed that polymorphic functions cause this error. Created a new Issue #366
Most helpful comment
Fixed in eslint, and will be released probably with next version of eslint.