Skip to content

Typo in declared prop type issue #1877

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

Closed
chrisahardie opened this issue Jul 4, 2018 · 3 comments
Closed

Typo in declared prop type issue #1877

chrisahardie opened this issue Jul 4, 2018 · 3 comments

Comments

@chrisahardie
Copy link

I am using React Router, which has a ReactRouterPropTypes package for defining prop types. When using it like:

User.propTypes = {
match: ReactRouterPropTypes.match.isRequired,
history: ReactRouterPropTypes.history.isRequired,

I get these errors:

493:33 error Typo in declared prop type: history react/no-typos
494:31 error Typo in declared prop type: match react/no-typos

Dependencies:

    "eslint": "4.19.0",
    "eslint-config-airbnb": "16.1.0",
    "eslint-config-airbnb-base": "12.1.0",
    "eslint-plugin-import": "2.11.0",
    "eslint-plugin-jsx-a11y": "6.0.3",
    "eslint-plugin-react": "7.7.0",
@ljharb
Copy link
Member

ljharb commented Jul 4, 2018

Indeed; typos should only be checked on React.PropTypes and the prop-types package.

@jomasti
Copy link
Contributor

jomasti commented Jul 21, 2018

I believe this was fixed in v7.8.0 with #1671. I would suggest upgrading and re-verifying.

@ljharb
Copy link
Member

ljharb commented Jul 21, 2018

Closing, but will reopen if it’s still an issue.

@ljharb ljharb closed this as completed Jul 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants