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

Forbid class props in react #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Forbid class props in react #24

wants to merge 1 commit into from

Commits on May 19, 2017

  1. Forbid class props in react

    In the past, we've had a custom overcommit hook protecting against using
    `class` instead of `className` as a prop. For React newcomers, this is a
    common mistake to make, so it's good to have some protection in place.
    Instead of the custom overcommit hook, we can instead just prevent this
    through the react/forbid-component-props rule [1].
    
    [1] https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md
    trotzig committed May 19, 2017
    Configuration menu
    Copy the full SHA
    7d14a24 View commit details
    Browse the repository at this point in the history