diff --git a/.changeset/lovely-chairs-press.md b/.changeset/lovely-chairs-press.md new file mode 100644 index 0000000..92af88f --- /dev/null +++ b/.changeset/lovely-chairs-press.md @@ -0,0 +1,5 @@ +--- +"@channel.io/eslint-config": patch +--- + +Add react/jsx-curly-brace-presence diff --git a/packages/eslint-plugin/lib/config/react.js b/packages/eslint-plugin/lib/config/react.js index 4e70fbe..a2e4a6c 100644 --- a/packages/eslint-plugin/lib/config/react.js +++ b/packages/eslint-plugin/lib/config/react.js @@ -29,6 +29,10 @@ module.exports = { { extensions: ['.js', '.jsx', '.tsx'] }, ], 'react/jsx-no-constructed-context-values': 'error', + 'react/jsx-curly-brace-presence': [ + 'error', + { props: 'never', children: 'never' }, + ], 'react/no-find-dom-node': 'warn', 'react/self-closing-comp': 'error', 'react-hooks/exhaustive-deps': 'error',