Skip to content

Commit

Permalink
feat(config/eslint): disable react/jsx-props-no-spreading
Browse files Browse the repository at this point in the history
  • Loading branch information
jrolfs committed Feb 2, 2022
1 parent 99e3882 commit 874fdc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config/__tests__/__snapshots__/eslintrc.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Object {
},
],
"prettier/prettier": "error",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "error",
},
}
Expand Down
10 changes: 9 additions & 1 deletion src/config/eslintrc-react.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const {buildConfig} = require('./helpers/build-eslint')

module.exports = buildConfig({withReact: true})
const {rules, ...rest} = buildConfig({withReact: true})

module.exports = {
rules: {
'react/jsx-props-no-spreading': 'off',
...rules,
},
...rest,
}

0 comments on commit 874fdc0

Please sign in to comment.