Skip to content

Commit

Permalink
feat(eslint-config): Add react/jsx-curly-brace-presence rule
Browse files Browse the repository at this point in the history
See #1549
  • Loading branch information
Merkur39 committed Jun 9, 2022
1 parent 0799b1f commit be2e0a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-config-cozy-app/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ module.exports = {
settings: { react: { version: 'latest' } },
rules: Object.assign({}, basics.rules, {
'react/prop-types': 'off',
'react/jsx-curly-brace-presence': [
'error',
{ props: 'never', children: 'never' }
],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn'
}),
Expand Down

0 comments on commit be2e0a9

Please sign in to comment.