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

[shape] Add tests for Arc, AreaClosed, & Line #95

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

Flaque
Copy link
Contributor

@Flaque Flaque commented Jul 13, 2017

Also fixed a bug where rgba() was treated as a function because it wasn't in quotes and therefore would cause an undefined error.

@Flaque Flaque requested a review from hshoff July 13, 2017 02:54
@@ -13,7 +13,7 @@ export default function AreaClosed({
strokeDasharray,
strokeWidth = 2,
stroke = 'black',
fill = rgba(0,0,0,0.3),
fill = "rgba(0,0,0,0.3)",
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch. not sure if we've thought about adding .eslint for the library but I think single quotes are preferred for strings

Copy link
Contributor Author

@Flaque Flaque Jul 14, 2017

Choose a reason for hiding this comment

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

Oh good point! Sorry about that.

Side question: Is there an beautifier for the Airbnb JS style? Also, would anyone mind if I added an .eslint and checks to the travis build?

Copy link
Collaborator

Choose a reason for hiding this comment

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

beautifier as in an IDE plugin of sorts? I'm not totally sure about that one but harry might know.

I think adding linting to the root of the vx repo and running it for travis could be a good call for catching things like this (and shouldn't require adding it to every package). the number of errors flagged on the initial pass can be a little rough though and it will flag things like propTypes + defaultProps not being defined for components but could add them to the ignore list to start. Happy to give this a shot as well / recently set it up for the @data-ui repo.

I'd imagine @Harry has probably given this all some thought already, though?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I might beat you to it. 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Though I did steal your .eslintrc 😜

Copy link
Collaborator

Choose a reason for hiding this comment

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

🙌

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ho boy.
screen shot 2017-07-13 at 8 31 59 pm

@hshoff hshoff added this to the v0.0.130 milestone Jul 13, 2017
@hshoff hshoff merged commit 486c174 into airbnb:master Jul 13, 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.

3 participants