Skip to content

Commit 874fdc0

Browse files
committed
feat(config/eslint): disable react/jsx-props-no-spreading
1 parent 99e3882 commit 874fdc0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
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/jsx-props-no-spreading": "off",
130131
"react/prop-types": "error",
131132
},
132133
}

src/config/eslintrc-react.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
const {buildConfig} = require('./helpers/build-eslint')
22

3-
module.exports = buildConfig({withReact: true})
3+
const {rules, ...rest} = buildConfig({withReact: true})
4+
5+
module.exports = {
6+
rules: {
7+
'react/jsx-props-no-spreading': 'off',
8+
...rules,
9+
},
10+
...rest,
11+
}

0 commit comments

Comments
 (0)