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
I agree one should avoid anonymous classes - but also, aggressive inlining. I'd recommend defining the class first, and then exporting the connected value in a second line.
Specifically, I think this is a bug with the space-before-keywords linter rule, that perhaps should be filed to eslint directly.
Writing a React/redux app, I am occasionally declaring anonymous classes inside function calls:
which gives this error:
Missing space before keyword "class". (space-before-keywords)
.If I put a space there:
It fails another rule:
There should be no spaces inside this paren. (space-in-parens)
.Was wondering if that was an unintended effect of the
space-before-keywords
or if everything is working as expected.The text was updated successfully, but these errors were encountered: