Skip to content

Commit

Permalink
feat: add react/jsx-curly-brace-presence (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanary159357 authored Jul 3, 2024
1 parent 02559a2 commit 22bd403
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-chairs-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@channel.io/eslint-config": patch
---

Add react/jsx-curly-brace-presence
4 changes: 4 additions & 0 deletions packages/eslint-plugin/lib/config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 22bd403

Please sign in to comment.