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

Change to ES6 Classes and seperate PropTypes module #23

Merged
merged 2 commits into from Apr 21, 2017

Conversation

wemyss
Copy link
Contributor

@wemyss wemyss commented Apr 20, 2017

PR for #22

…'t seem to know it. Also struggles with the way I've done the propTypes
@@ -0,0 +1,16 @@
const enhancer = WrappedComponent => class Progress extends WrappedComponent {
componentDidUpdate() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to put the base propTypes and defaultProps in here but the linter cannot detect that there is a props validation for them

@coveralls
Copy link

Coverage Status

Coverage increased (+2.4%) to 96.154% when pulling 0e866f6 on wemyss:master into e41c4cd on react-component:master.

@@ -1,35 +1,40 @@
/* eslint-disable */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not disable all rules for the whole file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I meant to have removed this!

@afc163 afc163 merged commit 0e866f6 into react-component:master Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants