Skip to content

Commit

Permalink
feat(rules): no-extra-parens (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatNeedham authored Feb 4, 2020
1 parent 68e6d48 commit a3afc72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ module.exports = {

// React fragment syntax requires Babel 7.x but this preset needs to still support Babel 6.x
'react/jsx-fragments': 'off',

// This rule restricts the use of parentheses to only where they are necessary.
'no-extra-parens': 'error',

// Disabling this rule until this is resolved https://github.com/yannickcr/eslint-plugin-react/issues/1848
// at the moment the fix makes the code look messy and at times unreadable
'react/jsx-one-expression-per-line': 'off',
Expand Down

0 comments on commit a3afc72

Please sign in to comment.