Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add forbid-foreign-prop-types rule #1055

Merged
merged 1 commit into from Feb 14, 2017

Commits on Feb 14, 2017

  1. Add forbid-foreign-prop-types rule

    People may want to use babel-plugin-transform-react-remove-prop-types
    to remove propTypes from their components in production builds, as an
    optimization. The `forbib-foreign-prop-types` rule forbids using
    another component's prop types unless they are explicitly
    imported/exported, which makes that optimization less prone to error.
    
    Fixes jsx-eslint#696
    iancmyers committed Feb 14, 2017
    Configuration menu
    Copy the full SHA
    0b25b66 View commit details
    Browse the repository at this point in the history