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 54
54
"eslint-find-rules" : " ^1.13.0" ,
55
55
"eslint-plugin-import" : " ^1.13.0" ,
56
56
"eslint-plugin-jsx-a11y" : " ^2.1.0" ,
57
- "eslint-plugin-react" : " ^6.0 .0" ,
57
+ "eslint-plugin-react" : " ^6.1 .0" ,
58
58
"in-publish" : " ^2.0.0" ,
59
59
"react" : " > 0.13.0" ,
60
60
"safe-publish-latest" : " ^1.0.1" ,
64
64
"eslint" : " ^3.3.0" ,
65
65
"eslint-plugin-jsx-a11y" : " ^2.1.0" ,
66
66
"eslint-plugin-import" : " ^1.13.0" ,
67
- "eslint-plugin-react" : " ^6.0 .0"
67
+ "eslint-plugin-react" : " ^6.1 .0"
68
68
},
69
69
"engines" : {
70
70
"node" : " >= 4"
Original file line number Diff line number Diff line change @@ -243,6 +243,15 @@ module.exports = {
243
243
// warn against using findDOMNode()
244
244
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
245
245
'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 ,
246
255
} ,
247
256
248
257
settings : {
You can’t perform that action at this time.
0 commit comments