Skip to content

Commit

Permalink
[eslint config] [*] [deps] update eslint, eslint-find-rules, `esl…
Browse files Browse the repository at this point in the history
…int-plugin-react`, `tape`
  • Loading branch information
ljharb committed Feb 20, 2018
1 parent ff1c121 commit 3c3074e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
6 changes: 3 additions & 3 deletions packages/eslint-config-airbnb-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
"babel-preset-airbnb": "^2.4.0",
"babel-tape-runner": "^2.0.1",
"editorconfig-tools": "^0.1.1",
"eslint": "^4.16.0",
"eslint-find-rules": "^3.1.1",
"eslint": "^4.18.0",
"eslint-find-rules": "^3.2.0",
"eslint-plugin-import": "^2.8.0",
"in-publish": "^2.0.0",
"safe-publish-latest": "^1.1.1",
"tape": "^4.8.0"
"tape": "^4.9.0"
},
"peerDependencies": {
"eslint": "^4.16.0",
Expand Down
12 changes: 6 additions & 6 deletions packages/eslint-config-airbnb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@
"babel-preset-airbnb": "^2.4.0",
"babel-tape-runner": "^2.0.1",
"editorconfig-tools": "^0.1.1",
"eslint": "^4.16.0",
"eslint-find-rules": "^3.1.1",
"eslint": "^4.18.0",
"eslint-find-rules": "^3.2.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.6.1",
"eslint-plugin-react": "^7.7.0",
"in-publish": "^2.0.0",
"react": ">= 0.13.0",
"safe-publish-latest": "^1.1.1",
"tape": "^4.8.0"
"tape": "^4.9.0"
},
"peerDependencies": {
"eslint": "^4.16.0",
"eslint": "^4.18.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.6.1"
"eslint-plugin-react": "^7.7.0"
},
"engines": {
"node": ">= 4"
Expand Down
7 changes: 6 additions & 1 deletion packages/eslint-config-airbnb/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ module.exports = {

// Forbids using non-exported propTypes
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
'react/forbid-foreign-prop-types': 'off',
// TODO: enable?
'react/forbid-foreign-prop-types': ['off', { allowInPropTypes: true }],

// Prevent void DOM elements from receiving children
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/void-dom-elements-no-children.md
Expand Down Expand Up @@ -431,6 +432,10 @@ module.exports = {
// Prevent this from being used in stateless functional components
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/no-this-in-sfc.md
'react/no-this-in-sfc': 'error',

// Validate JSX maximum depth
// https://github.com/yannickcr/eslint-plugin-react/blob/abe8381c0d6748047224c430ce47f02e40160ed0/docs/rules/jsx-max-depth.md
'react/jsx-max-depth': 'off',
},

settings: {
Expand Down

0 comments on commit 3c3074e

Please sign in to comment.