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

feat(customPropTypes): add suggest prop type checker #944

Merged
merged 10 commits into from
Nov 27, 2016

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Nov 27, 2016

Fixes #936 and several other issues.

This PR:

  • updates Icon names, including all aliases
  • adds a suggest prop type checker for large lists of options (see below)
  • uses unminified React in dev (fixes missing React errors/warnings)
  • fixes several broken customPropType error messages

Suggest best match

We now show the top 3 matches for Icon and Flag names. The suggest prop type checker can be used on any large list of options.

image

Forgiving className order

The suggest checker allows right chevron to be considered valid against the value chevron right. As long as all the words match every word in one of the options, the prop is considered valid.

@codecov-io
Copy link

codecov-io commented Nov 27, 2016

Current coverage is 100% (diff: 100%)

Merging #944 into master will not change coverage

@@           master   #944   diff @@
====================================
  Files         137    137          
  Lines        2269   2269          
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
  Hits         2269   2269          
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update 82921e6...be95c67

@levithomason levithomason merged commit c4c50e3 into master Nov 27, 2016
@levithomason levithomason deleted the fix/icon-validation branch November 27, 2016 21:38
@levithomason levithomason changed the title feat(Flag): use suggest prop type checker feat(customPropTypes): add suggest prop type checker Nov 27, 2016
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.

Message Component Warning
2 participants