Skip to content

Commit

Permalink
Add rule (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Skelton authored Mar 16, 2022
1 parent a7eb62c commit 43fcc99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/fast-boats-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'eslint-config-widen': minor
---

Enable the `react/jsx-curly-brace-presence` rule to automatically remove
unnecessary braces from JSX props.
1 change: 1 addition & 0 deletions packages/eslint-config-widen/src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export = {
'react/button-has-type': 'warn',
// https://reactjs.org/docs/jsx-in-depth.html#props-default-to-true
'react/jsx-boolean-value': ['warn', 'always'],
'react/jsx-curly-brace-presence': ['warn', 'never'],
'react/jsx-first-prop-new-line': ['error', 'multiline'],
'react/jsx-no-duplicate-props': 'error',
'react/jsx-sort-props': [
Expand Down

0 comments on commit 43fcc99

Please sign in to comment.