Closed
Description
Hi,
When activating react/jsx-wrap-multilines
(with declaration
, assignment
and return
set to true
), I'm a bit surprised that this code does not throw any warning:
const MyComponent= () =>
<AChildComponent className={style.aChildComponent}>
<AnotherChildComponent />
</AChildComponent>;
Imho, it should be written that way:
const MyComponent= () => (
<AChildComponent className={style.aChildComponent}>
<AnotherChildComponent />
</AChildComponent>
);
Activity
[-]`react/jsx-wrap-multilines` show throw when using arrow functions[/-][+]`react/jsx-wrap-multilines` should throw when using arrow functions[/+]SpainTrain commentedon Oct 17, 2016
Think this is dupe of #790?
eTorAken commentedon Oct 18, 2016
Indeed, thank you for noticing it @SpainTrain, I close this one.