palantir / tslint-react

:orange_book: Lint rules related to React & JSX for TSLint.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loop in js-wrap-multilines

liajoy opened this issue · comments

Hi! What do you think about using loop rendering in this form?
How to write loop under jsx-wrap-multilines rule?

return (
    <ul>
        <li>
            {
                [1, 2, 3].map(i => (
                    <span>
                        <b>i</b>
                    </span>
                ))
            }
        </li>
    </ul>
);

Not sure what your question is exactly. What is the lint output you get with that code? And what do you expect the lint output to be?