Skip to content

Commit

Permalink
Add options for react/jsx-curly-brace-presence rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 19, 2022
1 parent 9d77b06 commit 9b5e73b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ module.exports = {
// 'react/jsx-one-expression-per-line': ['error', {allow: 'single-child'}],
'react/jsx-curly-brace-presence': [
'error',
'never'
{
props: 'never',
children: 'never',
propElementValues: 'always'
}
],
'react/jsx-fragments': [
'error',
Expand Down

0 comments on commit 9b5e73b

Please sign in to comment.