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 code:
function foo() { const items = [ <span>foo</span>, "bar", ]; return <div>{items}</div>; }
And the following eslintrc.json file:
{ "parserOptions": { "ecmaVersion": 6, "ecmaFeatures": { "jsx": true } }, "rules": { "indent": ["warn", 2], "react/jsx-indent": "warn" }, "plugins": [ "react" ] }
I get the following error:
Expected indentation of 6 space characters but found 4 react/jsx-indent
The problem here is that both indent and react/jsx-indent have opinions on how this line should be indented, and they disagree.
indent
react/jsx-indent
The text was updated successfully, but these errors were encountered:
indent is correct here, and I think d0dfc07 might fix it?
Sorry, something went wrong.
I don't currently have a box to check the latest dev version, but I agree this looks a lot like a duplicate of #898.
The fix should be published in the coming hour. Please reopen #898 if you still encounter the problem with v6.4.1.
v6.4.1
No branches or pull requests
Given the code:
And the following eslintrc.json file:
I get the following error:
The problem here is that both
indent
andreact/jsx-indent
have opinions on how this line should be indented, and they disagree.The text was updated successfully, but these errors were encountered: