You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
Not sure if this is the right repo for this issue, happy to go complain elsewhere :)
I'm running arrow-parens as-needed, but I'm also using flowtype. eslint complains that the parens are unnecessary on this type-annotated, single-parameter arrow function
constfn=(a: number)=>{console.log(a);};
I tried removing the parens, but that seems to be invalid syntax, as everything breaks at that point.
The text was updated successfully, but these errors were encountered:
I'm also facing a similar issue with flowtype annotations on arrow functions.
// arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],constbar=(foo: FooType)=>({});// "Unexpected parentheses around single function arg..."
I've had to disable the rule for now.
EDIT: replacing with "babel/arrow-parens" resolved the issue.
Not sure if this is the right repo for this issue, happy to go complain elsewhere :)
I'm running arrow-parens as-needed, but I'm also using flowtype. eslint complains that the parens are unnecessary on this type-annotated, single-parameter arrow function
I tried removing the parens, but that seems to be invalid syntax, as everything breaks at that point.
The text was updated successfully, but these errors were encountered: