Skip to content

Commit f50c38e

Browse files
committed
fix(config/eslint): disable react/function-component-definition
1 parent 1017028 commit f50c38e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/config/__tests__/__snapshots__/eslintrc.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Object {
127127
},
128128
],
129129
"prettier/prettier": "error",
130+
"react/function-component-definition": "off",
130131
"react/jsx-props-no-spreading": "off",
131132
"react/prop-types": "error",
132133
},

src/config/eslintrc-react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const {rules, ...rest} = buildConfig({withReact: true})
55
module.exports = {
66
rules: {
77
'react/jsx-props-no-spreading': 'off',
8+
'react/function-component-definition': 'off',
89
...rules,
910
},
1011
...rest,

0 commit comments

Comments
 (0)