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
Hello! In out team we use following style of logical expressions:
<App> {condition && ( <Hello /> )} </App>
but jsx-indent rule misses indentation inside of the logical expression, so after running eslint with --fix options it looks like this:
jsx-indent
eslint
--fix
So, may be adding of an extra option, will solve my problem? I think it would be something like this:
// .eslintrc.js module.exports = { // ... rules: { 'react/jsx-indent': ['error', 2, { indentLogicalExpressions: true, }], } }
The text was updated successfully, but these errors were encountered:
indentLogicalExpressions
No branches or pull requests
Hello!
In out team we use following style of logical expressions:
but
jsx-indent
rule misses indentation inside of the logical expression, so after runningeslint
with--fix
options it looks like this:So, may be adding of an extra option, will solve my problem? I think it would be something like this:
The text was updated successfully, but these errors were encountered: