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
Given the JS code:
const MyComponent = React.createClass({ render() { return ( <nav> <ul> <li> bar {foo} </li> </ul> </nav> ); }, });
and the following eslint configuration:
{ "parserOptions": { "ecmaVersion": 6, "ecmaFeatures": { "jsx": true } }, "rules": { "react/jsx-indent": "warn" }, "plugins": [ "react" ] }
Running eslint with --fix produces:
--fix
It looks like it's trying to apply the indent to {foo} even though it's not the first text on the line.
{foo}
Repeatedly running eslint --fix moves the {foo} further along.
eslint --fix
The text was updated successfully, but these errors were encountered:
Ok, seems the space is inserted after bar instead of before, I'll have a look.
bar
Sorry, something went wrong.
798f2ca
Thank you very much :)
Would you mind releasing when you have a chance?
No branches or pull requests
Given the JS code:
and the following eslint configuration:
Running eslint with
--fix
produces:It looks like it's trying to apply the indent to
{foo}
even though it's not the first text on the line.Repeatedly running
eslint --fix
moves the{foo}
further along.The text was updated successfully, but these errors were encountered: