File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/eslint-config-airbnb Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 5454 "eslint-find-rules" : " ^1.13.0" ,
5555 "eslint-plugin-import" : " ^1.13.0" ,
5656 "eslint-plugin-jsx-a11y" : " ^2.1.0" ,
57- "eslint-plugin-react" : " ^6.0 .0" ,
57+ "eslint-plugin-react" : " ^6.1 .0" ,
5858 "in-publish" : " ^2.0.0" ,
5959 "react" : " > 0.13.0" ,
6060 "safe-publish-latest" : " ^1.0.1" ,
6464 "eslint" : " ^3.3.0" ,
6565 "eslint-plugin-jsx-a11y" : " ^2.1.0" ,
6666 "eslint-plugin-import" : " ^1.13.0" ,
67- "eslint-plugin-react" : " ^6.0 .0"
67+ "eslint-plugin-react" : " ^6.1 .0"
6868 },
6969 "engines" : {
7070 "node" : " >= 4"
Original file line number Diff line number Diff line change @@ -243,6 +243,15 @@ module.exports = {
243243 // warn against using findDOMNode()
244244 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
245245 'react/no-find-dom-node' : 2 ,
246+
247+ // Forbid certain props on Components
248+ // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md
249+ 'react/forbid-component-props' : [ 0 , { forbid : [ ] } ] ,
250+
251+ // Prevent problem with children and props.dangerouslySetInnerHTML
252+ // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
253+ // TODO: enable, semver-major
254+ 'react/no-danger-with-children' : 0 ,
246255 } ,
247256
248257 settings : {
You can’t perform that action at this time.
0 commit comments