-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
False positive react/jsx-indent when working with DoExpression #2199
Comments
Kenneth-KT
added a commit
to Kenneth-KT/eslint-plugin-react
that referenced
this issue
Mar 13, 2019
… statement within a do expression Fixes jsx-eslint#2199.
Kenneth-KT
added a commit
to Kenneth-KT/eslint-plugin-react
that referenced
this issue
Mar 13, 2019
… statement within a do expression Fixes jsx-eslint#2199.
Kenneth-KT
added a commit
to Kenneth-KT/eslint-plugin-react
that referenced
this issue
Mar 13, 2019
… statement within a do expression Fixes jsx-eslint#2199.
Wrap it in parens? |
Kenneth-KT
added a commit
to Kenneth-KT/eslint-plugin-react
that referenced
this issue
Sep 29, 2019
… statement within a do expression (with tests) Fixes jsx-eslint#2199.
Kenneth-KT
added a commit
to Kenneth-KT/eslint-plugin-react
that referenced
this issue
Sep 29, 2019
… statement within a do expression (with tests) Fixes jsx-eslint#2199.
Kenneth-KT
added a commit
to Kenneth-KT/eslint-plugin-react
that referenced
this issue
Sep 30, 2019
… statement within a do expression (with tests) Fixes jsx-eslint#2199.
stefan-wullems
pushed a commit
to stefan-wullems/eslint-plugin-react
that referenced
this issue
Nov 30, 2019
… statement within a do expression (with tests) Fixes jsx-eslint#2199.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Given
eslint-plugin-react
is used with babel's do-expressions proposal, it produces a false-positivereact/jsx-indent
error suggesting the user to indent one level more than needed if aJsxElement
is the last statement in theDoExpression
block. TheJsxElement
in the last statement is intended to be the return value of theDoExpression
.Environment
Input code
Expected outcome
No errors
Actual outcome
Error with message below:
The text was updated successfully, but these errors were encountered: