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

Make itemData generic in grids and lists #66

Merged
merged 1 commit into from
Oct 3, 2018
Merged

Make itemData generic in grids and lists #66

merged 1 commit into from
Oct 3, 2018

Conversation

TrySound
Copy link
Contributor

@TrySound TrySound commented Oct 3, 2018

In this PR I am trying to achieve more sound implementation of itemData
props in all grids and lists.

To prevent empty type itemData is made optional with defaultProps.

flow script is replaced with check to allow running yarn flow status to view all errors and warnings.

In this PR I am trying to achieve more sound implementation of itemData
props in all grids and lists.

To prevent `empty` type itemData is made optional with defaultProps.

`flow` script is replaced with `flow:check` to allow running `yarn flow
status` to view all errors and warnings.
@bvaughn bvaughn merged commit 21d59ec into bvaughn:master Oct 3, 2018
Copy link
Owner

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

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

This is really great! Thanks!

@@ -5,5 +5,5 @@ before_script:
- yarn
script:
- yarn lint
- yarn flow
- yarn flow:check
Copy link
Owner

Choose a reason for hiding this comment

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

Why?

I prefer yarn flow since it's less to type and what I use in most of my other projects. 😄

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 run yarn flow often. The script with the same name overrides bin.

@@ -0,0 +1,154 @@
// @flow
Copy link
Owner

Choose a reason for hiding this comment

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

I understand why this file exists, but I'm not a fan of the name. It's the only snake_case filename in the project. 😄 I think we should rename it to test.js.flow so it will be still be Flow-checked, but it will be excluded from the NPM package.

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 name it like this to not conflict with jest. But yeah, .flow should solve the problem too.

@bvaughn
Copy link
Owner

bvaughn commented Oct 3, 2018

Published in 1.2.1

@TrySound
Copy link
Contributor Author

TrySound commented Oct 3, 2018

Thanks!

@TrySound TrySound deleted the generic-item-data branch October 3, 2018 19:37
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.

2 participants