Closed
Description
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:
<App>
{condition && (
<Hello />
)}
</App>
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,
}],
}
}