dillon1000/react

Commit

Issue#11510: added verification check for misspelled propTypes (#11524)

* added verification check for misspelled propTypes

* added flag to check if misspelled warning was shown to developer before

* added the condition to else if and improved the warning message

* moved  variable under dev section & initialized it to false

* added test to confirm the missmatch prop type warning in both  and  tests files

* removed eslint disable and split error into 2 lines

* changed expectDev to expect in tests

* added __DEV__ condition before both tests
Browse files
Changed paths3 files
First-parent comparison
M packages/react/src/ReactElementValidator.js ModifiedM packages/react/src/__tests__/ReactElementValidator-test.js ModifiedM packages/react/src/__tests__/ReactJSXElementValidator-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…