-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix PropTypes linting errors #1514
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
Comments
Great idea 😄 |
@catarak |
Yes! I believe in order to get these errors to appear, you'll need to update React. You don't need to upgrade to React 17, just the latest minor/patch in v16. |
Hi, @catarak I have checked all the above specified files and found that only ResetPasswordForm.jsx shows the error related to |
You could do that, but I think a better fix would be to update React and then to actually fix the PropType errors rather than hiding them with |
Hi @catarak I have fixed all the PropType errors in the above files by replacing |
That works! |
Uh oh!
There was an error while loading. Please reload this page.
Nature of issue?
Details about the bug:
Some invalid PropType declarations (
array.isRequired
andobject.isRequired
) somehow ended up on develop. In order not to block development because of this, I disabled these lines with// eslint-disable-line
, but it's still tech debt to be addressed. Below are the files we should check:The text was updated successfully, but these errors were encountered: