Skip to content

Commit

Permalink
[eslint config] set forbid-foreign-prop-types to "warn"
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 21, 2018
1 parent 25e711c commit 951825c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/eslint-config-airbnb/rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@ module.exports = {

// Forbids using non-exported propTypes
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
// TODO: enable?
'react/forbid-foreign-prop-types': ['off', { allowInPropTypes: true }],
// this is intentionally set to "warn". it would be "error", but it's only critical if you're using
// a babel transform to strip propTypes in production.
'react/forbid-foreign-prop-types': ['warn', { 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

0 comments on commit 951825c

Please sign in to comment.