Skip to content

Commit

Permalink
Add rule to remove unecessary curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Sep 21, 2023
1 parent 143b57d commit a8856ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const reactRules = {
'react/no-children-prop': ERROR,
'react/display-name': OFF,
'react/prop-types': OFF,
'react/jsx-curly-brace-presence': [
ERROR,
{ props: 'never', children: 'never', propElementValues: 'always' },
],
'sort-imports': ['error', { ignoreDeclarationSort: true }],
};

/** @type {import('eslint').Linter.Config} */
Expand Down

0 comments on commit a8856ac

Please sign in to comment.