Skip to content

Commit

Permalink
fix: clean up some of the new rules (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 12, 2021
1 parent 32e16ca commit 5426510
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/eslint-config-4catalyzer-react/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ module.exports = {
},
],

// We don't care which kind of function you use
'react/function-component-definition': 'off',

// This is useful in places like Typescript where string does not satisfy the expected return type of JSX.Element. A common workaround is to wrap the variable holding a string in a fragment and expression.
'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],

// this rule is dumb
'react/jsx-no-bind': 'off',

Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-4catalyzer/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off',
'class-methods-use-this': 'off',
'no-promise-executor-return': 'off',
'max-len': [
'error',
79,
Expand Down

0 comments on commit 5426510

Please sign in to comment.