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

Fix deprecation warnings for react >= 15.5.0 #4934

Closed
wants to merge 2 commits into from

Conversation

Calyhre
Copy link
Contributor

@Calyhre Calyhre commented Apr 8, 2017

Migrate React.PropTypes to PropTypes from the prop-types package, regarding the latest react version -> https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes

react-router-redux and react-router-website are still raising this warning, until the dependencies are fixed too.
For redux, the PR is here: reduxjs/react-redux#663

I also updated eslint for the main package in order to took advantage of the new no-unuser-vars option, ignorerestsiblings, and allow the omit pattern used like here: https://github.com/Calyhre/react-router/blob/master/packages/react-router/modules/StaticRouter.js#L114

@yasserkaddour
Copy link
Contributor

I did a similar PR in #4933 😅

@Calyhre
Copy link
Contributor Author

Calyhre commented Apr 8, 2017

Oh. It wasn't there when I started :D Well done!
I'm gonna re-open another one for the lint issues then.

@Calyhre Calyhre closed this Apr 8, 2017
@yasserkaddour
Copy link
Contributor

yasserkaddour commented Apr 8, 2017

¯\_(ツ)_/¯

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants