We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export function X(props) { return ( <div> {d && [ <B key="1"/>, <C {...props} />, ] } </div> ); }
The <C component is wanted both at indentation 16 (1 less than above) and at 20 - so it errors either way.
<C
this is in my .eslintrc
.eslintrc
"react/jsx-indent": ["error", 4],
The example works fine in 6.3.0 (I had avoided upgraded until ternaries worked a bit better).
The text was updated successfully, but these errors were encountered:
It seems actually this can be fixed by putting the [ on the same line as {d &&
[
{d &&
Sorry, something went wrong.
231acd9
No branches or pull requests
The
<C
component is wanted both at indentation 16 (1 less than above) and at 20 - so it errors either way.this is in my
.eslintrc
The example works fine in 6.3.0 (I had avoided upgraded until ternaries worked a bit better).
The text was updated successfully, but these errors were encountered: