File tree 3 files changed +15
-10
lines changed
eslint-config-airbnb-base
3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 51
51
"babel-preset-airbnb" : " ^2.4.0" ,
52
52
"babel-tape-runner" : " ^2.0.1" ,
53
53
"editorconfig-tools" : " ^0.1.1" ,
54
- "eslint" : " ^4.16 .0" ,
55
- "eslint-find-rules" : " ^3.1.1 " ,
54
+ "eslint" : " ^4.18 .0" ,
55
+ "eslint-find-rules" : " ^3.2.0 " ,
56
56
"eslint-plugin-import" : " ^2.8.0" ,
57
57
"in-publish" : " ^2.0.0" ,
58
58
"safe-publish-latest" : " ^1.1.1" ,
59
- "tape" : " ^4.8 .0"
59
+ "tape" : " ^4.9 .0"
60
60
},
61
61
"peerDependencies" : {
62
62
"eslint" : " ^4.16.0" ,
Original file line number Diff line number Diff line change 54
54
"babel-preset-airbnb" : " ^2.4.0" ,
55
55
"babel-tape-runner" : " ^2.0.1" ,
56
56
"editorconfig-tools" : " ^0.1.1" ,
57
- "eslint" : " ^4.16 .0" ,
58
- "eslint-find-rules" : " ^3.1.1 " ,
57
+ "eslint" : " ^4.18 .0" ,
58
+ "eslint-find-rules" : " ^3.2.0 " ,
59
59
"eslint-plugin-import" : " ^2.8.0" ,
60
60
"eslint-plugin-jsx-a11y" : " ^6.0.3" ,
61
- "eslint-plugin-react" : " ^7.6.1 " ,
61
+ "eslint-plugin-react" : " ^7.7.0 " ,
62
62
"in-publish" : " ^2.0.0" ,
63
63
"react" : " >= 0.13.0" ,
64
64
"safe-publish-latest" : " ^1.1.1" ,
65
- "tape" : " ^4.8 .0"
65
+ "tape" : " ^4.9 .0"
66
66
},
67
67
"peerDependencies" : {
68
- "eslint" : " ^4.16 .0" ,
68
+ "eslint" : " ^4.18 .0" ,
69
69
"eslint-plugin-import" : " ^2.8.0" ,
70
70
"eslint-plugin-jsx-a11y" : " ^6.0.3" ,
71
- "eslint-plugin-react" : " ^7.6.1 "
71
+ "eslint-plugin-react" : " ^7.7.0 "
72
72
},
73
73
"engines" : {
74
74
"node" : " >= 4"
Original file line number Diff line number Diff line change @@ -371,7 +371,8 @@ module.exports = {
371
371
372
372
// Forbids using non-exported propTypes
373
373
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
374
- 'react/forbid-foreign-prop-types' : 'off' ,
374
+ // TODO: enable?
375
+ 'react/forbid-foreign-prop-types' : [ 'off' , { allowInPropTypes : true } ] ,
375
376
376
377
// Prevent void DOM elements from receiving children
377
378
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/void-dom-elements-no-children.md
@@ -431,6 +432,10 @@ module.exports = {
431
432
// Prevent this from being used in stateless functional components
432
433
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/no-this-in-sfc.md
433
434
'react/no-this-in-sfc' : 'error' ,
435
+
436
+ // Validate JSX maximum depth
437
+ // https://github.com/yannickcr/eslint-plugin-react/blob/abe8381c0d6748047224c430ce47f02e40160ed0/docs/rules/jsx-max-depth.md
438
+ 'react/jsx-max-depth' : 'off' ,
434
439
} ,
435
440
436
441
settings : {
You can’t perform that action at this time.
0 commit comments