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
Using eslint-plugin-react at 7.29.0 or 7.29.1 gives false-positives for the react/jsx-indent rule inside ternary expressions that contain absolutely no JSX (are not even in a JSX file). The problem did not exist with version 7.28.0. This is currently failing builds in some of my repositories.
2:3 error Expected indentation of 2 space characters but found 4 react/jsx-indent
I see that #3218 was apparently fixed in the recent patch. I have chosen to report this as a new issue since it appears to be specific to ternary expressions, which differs from issue #3218. At least every failure I could observe in my projects was related to ternary expressions.
The text was updated successfully, but these errors were encountered:
Using eslint-plugin-react at 7.29.0 or 7.29.1 gives false-positives for the
react/jsx-indent
rule inside ternary expressions that contain absolutely no JSX (are not even in a JSX file). The problem did not exist with version 7.28.0. This is currently failing builds in some of my repositories.For a complete minimal reproduction, see https://github.com/meyfa/eslint-react-jsx-indent
Consider the following code:
with the following
.eslintrc.yml
:gives the error:
I see that #3218 was apparently fixed in the recent patch. I have chosen to report this as a new issue since it appears to be specific to ternary expressions, which differs from issue #3218. At least every failure I could observe in my projects was related to ternary expressions.
The text was updated successfully, but these errors were encountered: