Skip to content

Commit

Permalink
feat(index.js): Add react/jsx-curly-brace-presence rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Cherouny committed Jan 15, 2020
1 parent 5160f53 commit fbef1ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-config-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = {
'react/jsx-boolean-value': 2,
// Enforce or disallow spaces inside of curly braces in JSX attributes
'react/jsx-curly-spacing': 0,
// Enforce or disallow react string props to be wrapped in curly braces
'react/jsx-curly-brace-presence': 2,
// Prevent duplicate props in JSX
'react/jsx-no-duplicate-props': 0,
// Disallow undeclared variables in JSX
Expand Down

0 comments on commit fbef1ae

Please sign in to comment.