Skip to content

Commit

Permalink
Disable react/function-component-definition
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfsf committed Feb 4, 2020
1 parent 72c964d commit 4af602f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-vinta",
"version": "1.4.1",
"version": "1.4.2",
"description": "Vinta's ESLint and Prettier Shareable Configs",
"main": "index.js",
"scripts": {
Expand Down
15 changes: 8 additions & 7 deletions plugins/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ module.exports = {
'react/default-props-match-prop-types': ['error', { allowRequiredDefaults: false }],
'react/destructuring-assignment': ['error', 'always'],
'react/forbid-foreign-prop-types': ['error'],
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/jsx-no-script-url': ['error'],
'react/jsx-boolean-value': ['error', 'never'],
'react/jsx-curly-brace-presence': ['error', { props: 'never', children: 'never' }],
Expand Down Expand Up @@ -120,6 +113,14 @@ module.exports = {
'react/forbid-dom-props': ['off'],
'react/forbid-elements': ['off'],
'react/forbid-prop-types': ['off'],
'react/function-component-definition': [
// Disabled temporarily (see 1.4.2 changelog for details)
'off',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/no-did-mount-set-state': ['off'],
'react/no-multi-comp': ['off'],
'react/no-set-state': ['off'],
Expand Down

0 comments on commit 4af602f

Please sign in to comment.