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
"eslint": "^4.10.0", "eslint-plugin-react": "^7.10.0",
Given this configuration:
'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }],
Unnecessary brackets will be detected when the start tag, children, and end tag are all on the same line, like:
<div className={styles.myRateValuePercentSign}>{'%'}</div>
but they won't be detected when they're on different lines, like:
<div className={styles.myRateValuePercentSign}> {'%'} </div>
Is this the intended behavior?
The text was updated successfully, but these errors were encountered:
I can reproduce this. This is likely a bug.
The relevant code is here: https://github.com/yannickcr/eslint-plugin-react/blob/d1e79b99ee43ea60c66a7b68bcce8915958b3535/lib/rules/jsx-curly-brace-presence.js#L207-L212
Sorry, something went wrong.
Is there an argument to just removing that check altogether?
jsx-curly-brace-presence
Successfully merging a pull request may close this issue.
Given this configuration:
Unnecessary brackets will be detected when the start tag, children, and end tag are all on the same line, like:
but they won't be detected when they're on different lines, like:
Is this the intended behavior?
The text was updated successfully, but these errors were encountered: